GNU bug report logs - #16607
hippie-expand, a patch

Previous Next

Package: emacs;

Reported by: Emilio C. Lopes <eclig <at> gmx.net>

Date: Fri, 31 Jan 2014 07:58:02 UTC

Severity: minor

Tags: fixed, patch

Merged with 27501

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 #13 received at control <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 16607 <at> debbugs.gnu.org, "Emilio C. Lopes" <eclig <at> gmx.net>
Subject: Re: bug#16607: hippie-expand, a patch
Date: Sun, 02 Jul 2017 15:35:43 -0400
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.