[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13122: save-excursion not saving point
From: |
Eli Zaretskii |
Subject: |
bug#13122: save-excursion not saving point |
Date: |
Sat, 27 Apr 2019 09:57:24 +0300 |
> From: Tino Calancha <tino.calancha@gmail.com>
> Date: Sat, 27 Apr 2019 04:53:56 +0900
>
> ;; Following expression should eval as non-nil
> (let ((pos 3))
> (with-temp-buffer
> (insert "abcdef")
> (goto-char pos)
> (save-excursion (transpose-chars 2))
> (= pos (point))))
> => nil
Why did you think it should evaluate to non-nil? The ELisp manual has
a warning near the end of description of save-excursion; I think it's
relevant to this use case.