GNU bug report logs - #72282
History entries shouldn't have the exact region hardwired in

Previous Next

Package: emacs;

Reported by: Dan Jacobson <jidanni <at> jidanni.org>

Date: Wed, 24 Jul 2024 23:23:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Dan Jacobson <jidanni <at> jidanni.org>
Cc: 72282 <at> debbugs.gnu.org
Subject: bug#72282: History entries shouldn't have the exact region hardwired in
Date: Mon, 19 Aug 2024 09:49:13 +0300
>> So maybe for all history items, they shouldn't have the exact region hardwired in.
>
> Currently this can be achieved with a 'declare' form,
> but I don't know why this is not enabled consistently
> for region arguments of more commands:
>
> diff --git a/lisp/simple.el b/lisp/simple.el
> @@ -4944,6 +4944,9 @@ shell-command-on-region
>  The differences are especially prominent when the region includes
>  more than one line, i.e. when piping to a shell commands with embedded
>  newlines."
> +  (declare (interactive-args
> +	    (start (use-region-beginning))
> +	    (end (use-region-end))))
>    (interactive (let (string)
>  		 (unless (mark)
>  		   (user-error "The mark is not set now, so there is no region"))

Unfortunately, with this patch the bootstrap fails with:

  Loading lisp/simple.el (source)...
  Error: error ("Eager macro-expansion failure: (void-function seq-position)")
  Eager macro-expansion failure: (void-function seq-position)

because seq.el is loaded after simple.el.




This bug report was last modified 301 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.