ada-mode-users
[Top][All Lists]
Advanced

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

Re: C-c C-s not always returning to the expected location


From: Stephen Leake
Subject: Re: C-c C-s not always returning to the expected location
Date: Sun, 03 Oct 2021 01:28:16 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt)

Manuel Gómez <mgrojo@gmail.com> writes:

> Hello,
>
> I'm still having some difficulties after upgrading to 7.1.
>
> For example, returning to the previous location (C-c C-s) after a
> navigation to the declaration of an entity (C-c C-d) seems a bit
> chaotic, or I don't get the behaviour, compared to v4.00. Sometimes,
> after a C-c C-d going to an entity in the same file, an immediate C-c
> C-s goes to an unexpected place, instead of the location where C-c C-d
> was invoked. The only pattern that I have discover is that after that
> "erroneous" C-c C-s, a subsequent C-u C-SPC goes back to the correct
> place, so it's like there is some spurious mark in the stack.

That's because C-c C-s is bound to pop-global-mark, which uses the
global mark ring, while C-SPC is bound to set-mark-command, which uses
the local mark ring. It is somewhat confusing, but it's standard Emacs
usage, not an ada-mode feature.

I don't know what ada-mode 4.0 did in this area, but I think earlier
versions of Emacs did not have the local and global mark rings.

-- 
-- Stephe



reply via email to

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