By the way, there is still some issue that for installation on MSWindows
makefile-temp generate some scanty bbdb-loaddefs.el file, and I have to
do `M-x update-directory-autoloads' manually to get the full content.
I think that the problem is that the makefile command line is:
$(emacs) -l autoload \
--eval '(setq generated-autoload-file "'`pwd`/$@'")' \
--eval '(setq make-backup-files nil)' \
-f batch-update-autoloads `pwd`
and I have launched the makefile with MSYS make rather than Mingw
make, so the absolute paths are in MSYS convention (i.e. path
c:/Programme/GNU/installation/bbdb-git/bbdb/lisp/
is shown as:
/c/Programme/GNU/installation/bbdb-git/bbdb/lisp/
which EMACS does not find as it considers it as
c:/c/Programme/GNU/installation/bbdb-git/bbdb/lisp/
I have tried with mingw32-make, but there is some issue also, some
antislash happens and spoil some path.
I think that latest emacs version have some ability to handle MSYS path
--- after all, latest versions of emacs can build under MSYS.
Since this is some temporary makefile, a work-around is attached
hereinafter:
# Cheap BBDB makefile -*- Makefile -*-
# Copyright (C) 2010-2014 Roland Winkler <wink...@gnu.org>
#
# This file is part of the Insidious Big Brother Database (aka BBDB),
#
# BBDB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# BBDB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with BBDB. If not, see <http://www.gnu.org/licenses/>.
### Commentary:
# This file provides a cheap workaround for (most of) those users
# who like to use the latest BBDB, but do not have autotools installed.
# This file can compile BBDB's lisp code on most systems. Yet it is not
# intended to be foolproof!
cur_dir=$(shell pwd -W | sed 's!/!\\\\!g')
srcdir = .
prefix = /usr/local
lispdir = $(DESTDIR)/usr/local/share/emacs/site-lisp/bbdb
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
RM = /bin/rm -f
LN_S = /bin/ln -s
CP = /bin/cp
EMACS = emacs
# Command line flags for Emacs.
EMACSOPT =
# The actual Emacs command run in the targets below.
emacs = LC_ALL=C $(EMACS) --batch --directory=./ $(EMACSOPT)
# If you want to use BBDB with VM this should point to your vm/lisp directory.
# See also the target all below.
VMDIR =
VM = -eval '(unless (string-match "$(VMDIR)" "") (push "$(VMDIR)" load-path))'
.SUFFIXES: .elc .el .tar .Z .gz .uu
SRCS = bbdb.el bbdb-site.el bbdb-com.el bbdb-print.el bbdb-anniv.el \
bbdb-migrate.el bbdb-snarf.el \
bbdb-mua.el bbdb-message.el bbdb-rmail.el \
bbdb-gnus.el bbdb-mhe.el bbdb-vm.el bbdb-pgp.el bbdb-sc.el \
bbdb-ispell.el
# ELC = $(patsubst %.el,%.elc,$(SRCS)) # GNU Make
ELC = bbdb.elc bbdb-site.elc bbdb-com.elc bbdb-print.elc bbdb-anniv.elc \
bbdb-migrate.elc bbdb-snarf.elc \
bbdb-mua.elc bbdb-message.elc bbdb-rmail.elc \
bbdb-gnus.elc bbdb-mhe.elc bbdb-pgp.elc bbdb-sc.elc \
bbdb-ispell.elc
all: bbdb-loaddefs.el bbdb
bbdb: bbdb-loaddefs.el $(ELC)
vm: bbdb-vm.elc
bbdb-loaddefs.el: $(SRCS)
# 2011-12-11: We switched from bbdb-autoloads.el to bbdb-loaddefs.el.
# If the user still has an old bbdb-autoloads.el in the BBDB
# lisp directory (and keeps loading it from the emacs init file),
# we might get strange error messages that things fail.
# So we throw an error if these old files are found.
$(info curdir=$(cur_dir))
@if test -f bbdb-autoloads.el -o -f bbdb-autoloads.elc; then \
(echo "*** ERROR: Old file(s) \`bbdb-autoloads.el(c)' found ***" ; \
echo "*** Delete these files; do not load them from your init file
***") && \
false ; \
fi
-$(RM) $@;
@echo "(provide 'bbdb-loaddefs)" > $@;
@echo "(if (and load-file-name (file-name-directory load-file-name))"
>> $@;
@echo " (add-to-list 'load-path (file-name-directory
load-file-name)))" >> $@;
@echo "" >> $@;
# Generated autoload-file must have an absolute path,
# $(srcdir) can be relative.
$(emacs) -l autoload \
--eval '(setq generated-autoload-file "$(cur_dir)\\$@")' \
--eval '(setq make-backup-files nil)' \
-f batch-update-autoloads "$(cur_dir)"
.PHONY: no-bbdb-loaddefs
no-bbdb-loaddefs:
.el.elc:
$(emacs) -f batch-byte-compile $<
# Not perfect, but better than nothing: If we do not have / do not use
# autotools, we simply copy bbdb-site.el.in to bbdb-site.el.
bbdb-site.el: bbdb-site.el.in
$(CP) $< $@
bbdb-site.elc: bbdb-site.el
$(emacs) -f batch-byte-compile $(@:.elc=.el)
bbdb.elc: bbdb.el bbdb-site.elc
$(emacs) -f batch-byte-compile $(@:.elc=.el)
bbdb-com.elc: bbdb.elc bbdb-com.el
$(emacs) -f batch-byte-compile $(@:.elc=.el)
bbdb-mua.elc: bbdb.elc bbdb-com.elc bbdb-mua.el
$(emacs) -eval '(unless (string= "$(VMDIR)" "") (push "$(VMDIR)"
load-path) (load "vm" t t))' \
-f batch-byte-compile $(@:.elc=.el)
bbdb-rmail.elc: bbdb.elc bbdb-com.elc bbdb-mua.elc bbdb-rmail.el
$(emacs) -f batch-byte-compile $(@:.elc=.el)
bbdb-gnus.elc: bbdb.elc bbdb-com.elc bbdb-mua.elc bbdb-gnus.el
$(emacs) -f batch-byte-compile $(@:.elc=.el)
bbdb-mhe.elc: bbdb.elc bbdb-com.elc bbdb-mua.elc bbdb-mhe.el
$(emacs) -f batch-byte-compile $(@:.elc=.el)
# VM is not part of GNU Emacs
bbdb-vm.elc: bbdb.elc bbdb-com.elc bbdb-mua.elc bbdb-vm.el
$(emacs) $(VM) -f batch-byte-compile $(@:.elc=.el)
bbdb-sc.elc: bbdb.elc bbdb-com.elc bbdb-mua.elc bbdb-sc.el
$(emacs) -f batch-byte-compile $(@:.elc=.el)
bbdb-print.elc: bbdb.elc bbdb-com.elc bbdb-print.el
$(emacs) -f batch-byte-compile $(@:.elc=.el)
bbdb-migrate.elc: bbdb.elc bbdb-migrate.el
$(emacs) -f batch-byte-compile $(@:.elc=.el)
bbdb-anniv.elc: bbdb.elc bbdb-com.elc bbdb-anniv.el
$(emacs) -f batch-byte-compile $(@:.elc=.el)
bbdb-ispell.elc: bbdb.elc bbdb-ispell.el
$(emacs) -f batch-byte-compile $(@:.elc=.el)
bbdb-snarf.elc: bbdb.elc bbdb-com.elc bbdb-snarf.el
$(emacs) -f batch-byte-compile $(@:.elc=.el)
install-el: all
$(INSTALL) -d -m 0755 "$(lispdir)/"
for elc in *.elc; do \
el=`basename $$elc c`; \
if test -f "$(srcdir)/$$el"; then \
echo "Install $$el in $(lispdir)/"; \
$(INSTALL_DATA) "${srcdir}/$$el" "$(lispdir)/"; \
fi; \
done;
for el in bbdb-loaddefs.el; do \
echo "Install $$el in $(lispdir)/"; \
$(INSTALL_DATA) $$el "$(lispdir)/"; \
done;
install-elc: all
$(INSTALL) -d -m 0755 "$(lispdir)/"
for elc in bbdb-loaddefs.el *.elc; do \
echo "Install $$elc in $(lispdir)/"; \
$(INSTALL_DATA) $$elc "$(lispdir)/"; \
done;
uninstall:
for elc in *.elc; do \
$(RM) "$(lispdir)/$$elc"; \
done
for el in *.el; do \
$(RM) "$(lispdir)/$$el"; \
done
# Assorted clean-up targets
clean:
-$(RM) bbdb*.elc TAGS
distclean: clean
maintainer-clean: distclean
-$(RM) bbdb-loaddefs.el # Generated file
-$(RM) Makefile
extraclean: maintainer-clean
-$(RM) *~ \#*
TAGS: $(SRCS)
etags $(SRCS)
Vincent
----------------------------------------
> Date: Fri, 3 Jan 2014 23:44:00 -0600
> From: wink...@gnu.org
> To: bbdb-info@lists.sourceforge.net
> Subject: [BBDB] ChangeLog 2014-01-03
>
> The ChangeLog attached below describes several unrelated changes,
> some of which have previously been discussed on this list
>
> - avoid hard-coded references to xfield notes
> (is there a better name for the new command bbdb-edit-foo?)
>
> - after editing always update display in all BBDB buffers
>
> - clean up supercite support
>
> - bbdb-pgp.el for BBDB 3
>
> - more flexible editing of xfields
>
> - clean up handling of redundant email addresses
>
> - check more carefully/frequently that BBDB is editable
>
> - display records for messages more flexibly
>
> - handle new records more carefully
>
> - various bug fixes
>
> Comments welcome!
>
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> Update copyright year in all files.
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> Avoid hard-coded references to xfield notes.
> * lisp/bbdb.el (bbdb-default-xfield, bbdb-edit-foo)
> (bbdb-annotate-field, bbdb-mua-edit-field): New variables.
> (bbdb-auto-notes-rules): Fix docstring.
> * lisp/bbdb-com.el (bbdb-edit-foo): New command.
> (bbdb-search, bbdb-read-record): Use bbdb-default-xfield.
> (bbdb-insert-field): Do not handle initial value.
> (bbdb-prompt-for-new-field): Replace arg init by arg record to
> handle initial value here.
> * lisp/bbdb.el (bbdb-insert-field-menu): Change accordingly.
> * lisp/bbdb-mua.el (bbdb-annotate-record): Use
> bbdb-annotate-field. Allow empty strings for removing an xfield.
> (bbdb-mua-annotate-field-interactive): New function.
> (bbdb-mua-annotate-sender, bbdb-mua-annotate-recipients): Use it.
> New optional arg field.
> (bbdb-mua-edit-field-interactive, bbdb-mua-edit-field)
> (bbdb-mua-edit-field-sender, bbdb-mua-edit-field-recipients): Use
> variable bbdb-mua-edit-field.
> (bbdb-mua-edit-field-recipients): Use bbdb-default-xfield.
> * lisp/bbdb-snarf.el (bbdb-snarf-notes): Use bbdb-default-xfield.
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> After editing always update display in all BBDB buffers.
> * lisp/bbdb.el (bbdb-delete-record-internal): Rename optional arg
> remhash to completely. Undisplay record if non-nil.
> (bbdb-maybe-update-display): Update record in all BBDB buffers.
> (bbdb-change-record): Call it.
> (bbdb-redisplay-records): Remove.
> (bbdb-undisplay-records): New optional arg all-buffers.
> (bbdb-revert-buffer): Use it.
> * lisp/bbdb-com.el (bbdb-insert-field, bbdb-transpose-fields)
> (bbdb-delete-field-or-record, bbdb-delete-records)
> (bbdb-merge-records, bbdb-sort-addresses, bbdb-sort-phones)
> (bbdb-sort-xfields, bbdb-add-mail-alias)
> * lisp/bbdb-mua.el (bbdb-mua-edit-field): Do not call
> bbdb-maybe-update-display.
> * README: update accordingly.
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> Clean up supercite support.
> * lisp/bbdb.el (bbdb-utilities-sc): New custom group
> (bbdb-initialize): Update docstring.
> * lisp/bbdb-sc.el: Update doc.
> (bbdb-sc-attribution-field): Rename from
> bbdb/sc-attribution-field, keeping the old name as obsolete alias.
> (bbdb-sc-update-records-p): New variable.
> (bbdb-sc-update-attrib-p): Rename from bbdb/sc-replace-attr-p.
> (bbdb-sc-last-attrib): Rename from bbdb/sc-last-attribution. Make
> it internal variable.
> (bbdb-sc-set-attrib): Rename from bbdb/sc-set-attr, keeping the
> old name as obsolete alias.
> (bbdb-sc-update-from): Rename from bbdb/sc-default, keeping the
> old name as obsolete alias.
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> Overhaul lisp/bbdb-pgp.el for BBDB 3.
> * lisp/bbdb-pgp.el (bbdb-pgp-field): Rename from bbdb/pgp-field.
> (bbdb-pgp-default): Rename from bbdb/pgp-default-action.
> (bbdb-pgp-ranked-actions, bbdb-pgp-headers)
> (bbdb-pgp-method-alist): New variables.
> (bbdb/pgp-quiet): Obsolete.
> (bbdb-pgp-method): Rename from bbdb/pgp-method. Include support
> for PGP-auto format.
> (bbdb-read-xfield-pgp-mail): New function.
> (bbdb-pgp): Rename from bbdb/pgp-sign. Consider all message
> recipients in bbdb-pgp-headers. Use bbdb-pgp-ranked-actions,
> bbdb-pgp-headers, and bbdb-pgp-method-alist.
> * lisp/bbdb.el (bbdb-utilities-pgp): New custom group
> (bbdb-init-forms): Add init form for bbdb-pgp.
> (bbdb-initialize): Update docstring accordingly.
> * lisp/Makefile.am, lisp/makefile-temp: Support
> lisp/bbdb-pgp.el.
>
> 2014-01-03 Gijs Hillenius <g...@hillenius.com>
> * lisp/bbdb-pgp.el: Adapt for BBDB 3. Remove outdated mailcrypt
> interface.
> (bbdb/pgp-method): New default mml-pgpmime.
> (bbdb/pgp-get-pgp): Use bbdb-message-search and bbdb-record-field.
>
> 2014-01-03 Kevin Davidson <t...@quadstone.com>
> * lisp/bbdb-pgp.el: New file (taken from BBDB 2).
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> More flexible editing of xfields.
> * lisp/bbdb.el (bbdb-read-string): Rename optional arg default to
> init. New optional arg require-match.
> * lisp/bbdb-com.el (bbdb-read-organization)
> (bbdb-record-edit-address, bbdb-completing-read-mails): Rename
> optional arg default to init.
> (bbdb-insert-field): Simplify.
> (bbdb-read-xfield): New function.
> (bbdb-prompt-for-new-field, bbdb-edit-field): Use it.
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> * lisp/bbdb.el (bbdb-init-forms): Add init form for anniv.
> (bbdb-initialize): Update docstring accordingly.
> * lisp/bbdb-anniv.el: Update doc accordingly.
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> Clean up handling of redundant email addresses.
> * lisp/bbdb.el (bbdb-ignore-redundant-mails): Rename from
> bbdb-canonicalize-redundant-mails, keeping the latter as obsolete
> alias.
> (bbdb-add-mails, bbdb-canonicalize-mail-function): Fix docstring.
> * lisp/bbdb-com.el (bbdb-mail-redundant-re): New function
> (bbdb-delete-redundant-mails): Move here from lisp/bbdb-mua.el.
> Merge with command bbdb-delete-duplicate-mails and make the latter
> an obsolete alias. New optional args query and update.
> * lisp/bbdb-mua.el (bbdb-annotate-message): Use
> bbdb-mail-redundant-re and bbdb-delete-redundant-mails.
> (bbdb-mail-redundant-p): Remove.
> (bbdb-canonical-hosts): Update docstring.
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> Check more carefully/frequently that BBDB is editable.
> * lisp/bbdb.el (bbdb-editable): Move here from lisp/bbdb-com.el.
> Revert BBDB buffer if possible.
> * lisp/bbdb.el (bbdb-record-set-field)
> * lisp/bbdb-com.el (bbdb-read-record, bbdb-create-internal)
> (bbdb-merge-records, bbdb-sort-addresses, bbdb-sort-phones)
> (bbdb-sort-xfields)
> * lisp/bbdb-snarf.el (bbdb-snarf): Check that BBDB is editable.
> * lisp/bbdb-mua.el (bbdb-update-records): Obey bbdb-read-only.
> (bbdb-annotate-message): Ignore bbdb-read-only.
> (bbdb-auto-notes): Check that BBDB is editable.
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> * lisp/bbdb.el (bbdb-check-name, bbdb-extract-address-components):
> Fix docstring.
> * lisp/bbdb-com.el (bbdb-search-duplicates): Fix warning message.
> Sort records.
> * lisp/bbdb-mua.el (bbdb-auto-notes)
> (bbdb-mua-update-interactive-p): Fix docstring.
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> Display records for messages more flexibly.
> * lisp/bbdb-mua.el (bbdb-update-records, bbdb-mua-update-records):
> New optional arg sort.
> (bbdb-mua-display-records): New optional arg all.
> (bbdb-mua-display-all-records): New command.
> (bbdb-mua-display-all-recipients): Renamed from
> bbdb-display-all-recipients.
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> Handle new records more carefully.
> * lisp/bbdb.el (bbdb-empty-record): New function.
> (bbdb-change-record): Use bbdb-create-hook. Fix docstring.
> (bbdb-insert-record-internal, bbdb-overwrite-record-internal): Fix
> docstring.
> * lisp/bbdb-com.el (bbdb-create): Do not use bbdb-create-hook.
> (bbdb-create-internal): Make arg name optional and allow a nil
> value. Check validity of arguments only if new arg check is
> non-nil.
> (bbdb-merge-records): Return record.
> * lisp/bbdb-mua.el (bbdb-annotate-message): Use bbdb-empty-record.
> Handle case that arg create-p is a function. Do not use
> bbdb-create-hook.
> * lisp/bbdb-snarf.el (bbdb-snarf): Use bbdb-empty-record. Return
> record. Do not use bbdb-create-hook.
>
> 2014-01-03 Roland Winkler <wink...@gnu.org>
> * lisp/bbdb-snarf.el (bbdb-snarf-rule-interactive): Use
> symbol-name.
>
>
> BBDB is available at
> http://savannah.nongnu.org/projects/bbdb/
> To check it out, use
> git clone git://git.savannah.nongnu.org/bbdb.git
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> bbdb-info@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bbdb-info
> BBDB Home Page: http://bbdb.sourceforge.net/
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/