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

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

bug#30212: 26.0.91; [PATCH] push mark before moving point in shell outpu


From: Eli Zaretskii
Subject: bug#30212: 26.0.91; [PATCH] push mark before moving point in shell output
Date: Wed, 18 Apr 2018 09:10:52 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Tue, 17 Apr 2018 22:24:05 +0200
> Cc: 30212@debbugs.gnu.org
> 
> Alex Branham <alex.branham@gmail.com> writes:
> 
> > Since shell commands move point, I find it useful to push the mark so
> > that I can navigate around different output using C-u C-SPC. This
> > patch adds the push-mark call that's necessary to
> > shell-command--save-pos-or-erase.
> 
> [...]
> 
> >      (when pos
> > +      (push-mark pos t)
> >        (goto-char (point-max))
> 
> Hm...  I don't think it would be a good idea to set the mark
> unexpectedly -- people have certain expectations on what commands set
> the mark, and setting it for every command in shell mode would be
> unusual and get in the way of people's work habits, I think.

If the commands in questions tend to move very far away, it is
accepted Emacs behavior to push a mark before such large moves.





reply via email to

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