emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dabbrev-completion doc string


From: Luc Teirlinck
Subject: Re: dabbrev-completion doc string
Date: Fri, 25 Nov 2005 18:05:57 -0600 (CST)

Resending, since I got an invalid address error for emacs-pretest-bug
the first time.

Drew Adams wrote:

   IIUC, a nil ARG means to search only the current buffer.

I apparently did not read the docstring carefully enough.  The first
paragraph says exactly that.

   Perhaps this all hinges on the meaning of "if there is a suitable one
   already" - just what does that mean? I suspect that explaining what
   "suitable" means here, in user terms, would mean explaining that only the
   current buffer is to be searched. But I could be wrong.

On reading through the source code, I am the one who is confused now.
Whether the old list is suitable or not is determined by an `and'
expression.  But that `and' expression includes
`dabbrev--last-abbreviation' and this happens after
`dabbrev--reset-global-variables' got called which always sets
`dabbrev--last-abbreviation' to nil.

The way I understand it, the `and' expression _always_ returns nil and
the old completion list is _never_ suitable.

I must be misunderstanding something.  I tried to CC the listed
maintainer, but that apparently resulted in an invalid address error.

Sincerely,

Luc.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]