GNU bug report logs -
#59290
29.0.50; [PATCH] Buffer-localize temporary-goal-column
Previous Next
Reported by: dick <dick.r.chiang <at> gmail.com>
Date: Tue, 15 Nov 2022 23:01:02 UTC
Severity: wishlist
Tags: moreinfo, patch
Found in version 29.0.50
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: dick <dick.r.chiang <at> gmail.com>
> Date: Tue, 15 Nov 2022 16:52:10 -0500
>
> emacs -Q -l cl-lib --eval " \
> (with-temp-buffer \
> (save-excursion \
> (insert \"עִבְרִית\nעִבְרִית\")) \
> (call-interactively (function next-line)) \
> (with-temp-buffer \
> (save-excursion (insert \"English\nEnglish\")) \
> (call-interactively (function next-line)) \
> (cl-assert (zerop (current-column)))))"
>
>
> >From 44ca27270bdd7786ddb36469149128b6d18aac9a Mon Sep 17 00:00:00 2001
> From: dickmao <dick.r.chiang <at> gmail.com>
> Date: Tue, 15 Nov 2022 16:03:48 -0500
> Subject: [PATCH] Temporary goal column leaks
>
> * lisp/simple.el (temporary-goal-column): Buffer-localize.
> * test/lisp/simple-tests.el (line-move-visual-goal-column-leakage):
> Test it.
Thanks, but please provide a meaningful commit log message with an
explanation of the problem and the solution. AFAIU, it isn't
self-evident. For example, if I invoke the program interactively in a
running Emacs session, the problem doesn't happen. Your test seems to
acknowledge that, as is evidenced by this:
> +(ert-deftest line-move-visual-goal-column-leakage ()
> + (skip-unless (not noninteractive)) <<<<<<<<<<<<<<<<<<<<<<<
but without any explanation.
With the root cause of this stated explicitly, it might be that we
will want or at least consider a different solution.
This bug report was last modified 1 year and 318 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.