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

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

bug#45617: <query-replace> loses the edit region. Works in 23.3, broke i


From: Eli Zaretskii
Subject: bug#45617: <query-replace> loses the edit region. Works in 23.3, broke in 26.3
Date: Tue, 19 Jan 2021 20:39:35 +0200

> From: Juri Linkov <juri@linkov.net>
> Cc: bobfloyd@comcast.net,  45617@debbugs.gnu.org
> Date: Tue, 19 Jan 2021 19:45:09 +0200
> 
> >> The problem is that 'read-from-minibuffer' is implemented in C.
> >> If it was implemented in Lisp, it would be easy to add just
> >> 'save-mark-and-excursion', but in C this is impossible.
> >
> > You can do the equivalent of that in C, can't you?
> 
> Sorry, I can't.  Because 'save-mark-and-excursion' is a Lisp macro,
> but C doesn't have Lisp macros.

I didn't mean to suggest that you call a Lisp macro.  My suggestion
was to perform all the steps 'save-mark-and-excursion' does in C,
inline.  I don't see why would that be hard, let alone impossible.





reply via email to

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