all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Ed Avis" <eda@waniasset.com>
Cc: 8163@debbugs.gnu.org
Subject: bug#8163: 23.2; Feature request: dabbrev look at filenames or buffer names
Date: Tue, 10 May 2022 05:09:32 +0200	[thread overview]
Message-ID: <8735him6c3.fsf@gnus.org> (raw)
In-Reply-To: <07CC43C25304A546B995A31E70BF56B50444C0@wcl-exc.wcl.local> (Ed Avis's message of "Thu, 3 Mar 2011 14:19:22 -0000")

"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	other threads:[~2022-05-10  3:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03 14:19 bug#8163: 23.2; Feature request: dabbrev look at filenames or buffer names Ed Avis
2022-05-10  3:09 ` Lars Ingebrigtsen [this message]
2022-05-12 16:42   ` Juri Linkov
2022-05-13 12:30     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8735him6c3.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=8163@debbugs.gnu.org \
    --cc=eda@waniasset.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.