auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] GNU AUCTeX branch, master, updated. fa1daf8cf4c624dc1


From: Mosè Giordano
Subject: Re: [AUCTeX-devel] GNU AUCTeX branch, master, updated. fa1daf8cf4c624dc17f584d821f774527579cc97
Date: Tue, 11 Mar 2014 21:52:01 +0100

2014-03-11 20:35 GMT+01:00 Mosè Giordano <address@hidden>:
> Why this change?  My `completing-read-multiple' never returns nil, if
> no input is inserted it returns `("")' which isn't nil.  Am I missing
> something?  I'm running GNU Emacs 24.3, if that helps.

Ok, the behavior of `completing-read-multiple' has been changed since
the release of GNU Emacs 24.3 with this commit:
http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/112063

The return value of `completing-read-multiple' with empty input is
used elsewhere (e.g. in style/biblatex.el), so we have, at least, two
possibilities:
- everywhere check if the return value is `nil' or `("")';
- treat the two different behaviors inside
`TeX-completing-read-multiple' and always use it.  It could be defined
this way
--8<---------------cut here---------------start------------->8---
(defun TeX-completing-read-multiple
  (prompt table &optional predicate require-match initial-input
      hist def inherit-input-method)
  (let ((list
     (completing-read-multiple
      prompt table &optional predicate require-match initial-input
      hist def inherit-input-method)))
    (if (equal list '(""))
    nil
      list)))
--8<---------------cut here---------------end--------------->8---
or something better, in order to make `TeX-completing-read-multiple'
return always nil with empty input.

What do you think?

Bye,
Mosè



reply via email to

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