unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* goto-char doesn't stick
@ 2017-06-14  9:45 Elias Mårtenson
  2017-06-14  9:48 ` Andreas Schwab
                   ` (3 more replies)
  0 siblings, 4 replies; 30+ messages in thread
From: Elias Mårtenson @ 2017-06-14  9:45 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

I have been trying to figure out why M-. in SLIME sometimes doesn't move
point to the correct location in the file, and I discovered the following
strange behaviour:

Assuming the cursor is at some random position in buffer "z", The SLIME
code essentially does the following to move the cursor to a given location:

    (progn
      (set-buffer "z")
      (goto-char LOCATION))

When I do this, point doesn't move. Or rather, it does move, but after the
conclusion of the ‘progn’ form, the cursor returns to its original
location. This is what causes the SLIME navigation functions to not work
correctly.

Has this behaviour changed recently? I haven't seen anyone else complain
about this, but then again, I usually run Emacs compiled from git master,
so it may be that this has changed in newer versions.

Regards,
Elas

[-- Attachment #2: Type: text/html, Size: 1038 bytes --]

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

end of thread, other threads:[~2017-06-16  2:00 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-14  9:45 goto-char doesn't stick Elias Mårtenson
2017-06-14  9:48 ` Andreas Schwab
2017-06-14 10:02   ` Elias Mårtenson
2017-06-14 10:29     ` Andreas Schwab
2017-06-14 10:32       ` Elias Mårtenson
2017-06-14 11:01         ` Yuri Khan
     [not found]           ` <CADtN0WJdwdFhTL2_=ZQbADKT0p+PKCJKfkjqt7hNdQduq5bmCQ@mail.gmail.com>
2017-06-14 11:09             ` Elias Mårtenson
2017-06-14 10:22 ` Peder O. Klingenberg
2017-06-14 10:26 ` Noam Postavsky
2017-06-14 10:30   ` Elias Mårtenson
2017-06-14 11:13 ` Eli Zaretskii
2017-06-14 11:16   ` Elias Mårtenson
2017-06-14 14:33     ` Eli Zaretskii
2017-06-14 14:59       ` Elias Mårtenson
2017-06-14 15:28         ` Eli Zaretskii
2017-06-15  3:53         ` Alex
2017-06-14 14:05   ` Drew Adams
2017-06-14 14:53     ` Eli Zaretskii
2017-06-15  6:59   ` Stefan Monnier
2017-06-15 11:37     ` Noam Postavsky
2017-06-15 12:55       ` martin rudalics
2017-06-15 13:24       ` Stefan Monnier
2017-06-15 14:30         ` Eli Zaretskii
2017-06-15 17:11           ` Stefan Monnier
2017-06-15 18:25             ` Eli Zaretskii
2017-06-15 19:10               ` Elias Mårtenson
2017-06-15 19:25                 ` Eli Zaretskii
2017-06-15 22:51               ` martin rudalics
2017-06-16  2:00                 ` Stefan Monnier
2017-06-15 14:32       ` Eli Zaretskii

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).