bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8163: 23.2; Feature request: dabbrev look at filenames or buffer nam


From: Lars Ingebrigtsen
Subject: bug#8163: 23.2; Feature request: dabbrev look at filenames or buffer names
Date: Tue, 10 May 2022 05:09:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

"Ed Avis" <eda@waniasset.com> writes:

> Start emacs and start editing a file called abcdef:
>
> C-x C-f abcdef RET
>
> In that buffer type abcde and then press M-/ to run dabbrev-expand.
>
> Desired result: dabbrev looks at the buffer name (or the name of the
> file it is visiting) and uses that to complete the string to 'abcdef'.
> It could use the names of all open buffers as part of its pool.
>
> Current result: No dynamic expansion for 'abcde' found
>
> This would be useful in many programming languages where the filename
> usually matches the name of a class or function.  It is common to create
> the file first and start typing the code.

Makes sense to me.  I've now added this to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]