GNU bug report logs -
#20116
24.4.91; [PATCH]Don't use iswitchb in erc.
Previous Next
Full log
Message #11 received at 20116 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> Using completing-read allow ido user to use ido, helm users helm etc...
>
> Indeed, thanks.
>
>> + (switch-to-buffer
>> + (completing-read "Switch-to: "
>> + (mapcar 'buffer-name
>> + (erc-buffer-list
>> + nil
>> + (when arg erc-server-process)))
>> + nil t nil nil
>> + (when (boundp 'erc-modified-channels-alist)
>> + (buffer-name (caar (last erc-modified-channels-alist)))))))
>
> Compared to `C-x b' this loses the ability to obey the
> completion-category-overrides setting for buffers (i.e. it won't
> default to substring matches). Also it won't obey
> read-buffer-completion-ignore-case.
>
> I suggest you try and use `read-buffer' instead of `completing-read'.
> IIUC this will require changes at the C level to add a `predicate'
> argument to `read-buffer'. And I see this will then have to break
> backward compatibility since read-buffer-function will end up with
> a new argument.
IOW you suggest using something that doesn't exists yet, sorry, but this
is out of my scope, well you have my patch "A titre informatif" in case
somebody wants to make this change (I personally don't use erc, but I
have users that do use it).
Thanks.
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
This bug report was last modified 10 years and 73 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.