unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56496: 28.1; add-abbrev should respect active region
@ 2022-07-11 12:43 Howard Melman
  2022-07-11 13:34 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Howard Melman @ 2022-07-11 12:43 UTC (permalink / raw)
  To: 56496

add-mode-abbrev and add-global-abbrev use the text in the
buffer as the expansion and then prompt for an abbrev.  If
given a numeric argument it's used as the number of words to
use as the expansion or if 0 to use the region.

I think it would be nice if these commands respected an
active region and just used it without having to use a 0 arg.

-- 

Howard





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#56496: 28.1; add-abbrev should respect active region
  2022-07-11 12:43 bug#56496: 28.1; add-abbrev should respect active region Howard Melman
@ 2022-07-11 13:34 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-07-11 13:34 UTC (permalink / raw)
  To: Howard Melman; +Cc: 56496

Howard Melman <hmelman@gmail.com> writes:

> add-mode-abbrev and add-global-abbrev use the text in the
> buffer as the expansion and then prompt for an abbrev.  If
> given a numeric argument it's used as the number of words to
> use as the expansion or if 0 to use the region.
>
> I think it would be nice if these commands respected an
> active region and just used it without having to use a 0 arg.

Yup.  I've now fixed this in Emacs 29.

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-11 13:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11 12:43 bug#56496: 28.1; add-abbrev should respect active region Howard Melman
2022-07-11 13:34 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).