GNU bug report logs -
#27501
24.5; hippie-expand-only-buffers not considered when buffer-local in 'try-expand-dabbrev-all-buffers
Previous Next
Reported by: Tom <tlinden <at> cpan.org>
Date: Mon, 26 Jun 2017 16:22:01 UTC
Severity: minor
Tags: fixed, patch
Merged with 16607
Found in versions 24.3, 24.5
Fixed in version 25.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
Message #9 received at control <at> debbugs.gnu.org (full text, mbox):
tags 16607 fixed
close 16607 25.1
quit
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Emilio C. Lopes <eclig <at> gmx.net> writes:
>
>> `hippie-expand' use several methods to expand text in the current buffer.
>> Some of those methods search for possible expansions in multiple Emacs
>> buffers, controlled by the variables `hippie-expand-ignore-buffers' and
>> `hippie-expand-only-buffers'.
>>
>> It would be useful to be able to set these two variables locally in a
>> Buffer (using `make-local-variable'). This would allow for example to
>> set up `hippie-expand' in Lisp buffers to only search for possible
>> expansions in other Lisp buffers.
>>
>> As it is now (Emacs 24.3) the functions in `hippie-expand' using those
>> variables do so in the context of the buffers where potential completions
>> are searched for. The patch bellow causes the lookup to occur in the
>> buffer where `hippie-expand' was invoked.
>
> I think the patch below looks reasonable, but I've never used
> hippie-expand. Are there anybody that can weigh in on this?
This was already added in Emacs 25.1.
[1: 8576251878]: 2014-06-12 09:45:52 -0400
* lisp/hippie-exp.el (try-expand-line-all-buffers) (try-expand-list-all-buffers, try-expand-dabbrev-all-buffers): Read hippie-expand-only-buffers and hippie-expand-ignore-buffers in the original buffer, in case they're buffer-local.
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=8576251878f59f686b3a14c574a402549eabcbc1
This bug report was last modified 7 years and 328 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.