GNU bug report logs - #20116
24.4.91; [PATCH]Don't use iswitchb in erc.

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>

Date: Mon, 16 Mar 2015 07:47:02 UTC

Severity: normal

Tags: patch

Found in version 24.4.91

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 20116 <at> debbugs.gnu.org
Subject: bug#20116: 24.4.91; [PATCH]Don't use iswitchb in erc.
Date: Mon, 16 Mar 2015 15:01:09 +0100
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.