Your message dated Sat, 27 Dec 2008 23:06:19 +0200
with message-id <[email protected]>
and subject line Re: Bug#34818: emacs20: auto-insert return value
has caused the Debian Bug report #34818,
regarding emacs21: make auto-insert return t if it inserts something
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
34818: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=34818
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: emacs20
Version: 20.3-5
Severity: wishlist
I'm using auto-insert. But unlike the documentation suggests, I
added `auto-insert' in `find-file-not-found-hooks' rather than
`find-file-hooks'. This has the advantage that Emacs doesn't
waste precious milliseconds loading autoinsert.elc if I just edit
existing files.
There's a problem, though: "The functions [in
`find-file-not-found-hooks'] are called in the order given until
one of them returns non-nil." The return value of auto-insert is
not documented and seems to depend on many things.
IWBNI `auto-insert' were changed to return non-nil iff it inserts
something. In the meantime, I think I'll write a wrapper.
-- System Information
Debian Release: potato
Kernel Version: Linux PC486 2.2.1 #9 ti helmiĀ 16 18:49:49 EET 1999 i486 unknown
Versions of the packages emacs20 depends on:
ii emacsen-common 1.4.9 Common facilities for all emacsen.
ii liblockfile0 0.1-5 Shared library with NFS-safe locking functio
ii libc6 2.1.1-0pre1.3 GNU C Library: shared libraries
ii libc6 2.1.1-0pre1.3 GNU C Library: shared libraries
ii liblockfile0 0.1-5 Shared library with NFS-safe locking functio
ii libncurses4 4.2-3.1 Shared libraries for terminal handling
ii xlib6g 3.3.2.3a-10 shared libraries required by X clients
--- End Message ---
--- Begin Message ---
Sven Joachim <[email protected]> writes:
> E.g. you want to run vc-file-not-found-hook to check out a file that is
> under version control but currently has no working copy. Then it's no
> good to run auto-insert before that.
Well, that could be controlled by putting the hooks in the right
order. But anyway I don't actually use vc-file-not-found-hook.
> You're probably better off just using auto-insert-mode like everyone
> else, since the runtime cost of that is negligible.
Thank you; I was not aware of that feature. It was apparently
added on 1998-02-01 and included in the Emacs 20.4 release.
pgp24ai9BPsEx.pgp
Description: PGP signature
--- End Message ---