2014-03-11 20:35 GMT+01:00 Mosè Giordano <giordano.m...@libero.it>: > 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è _______________________________________________ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel