From: Matt McClure <matthewlmcclure@gmail.com>
To: emacs-devel@gnu.org
Subject: Make fci-mode coexist better with line-move-visual
Date: Fri, 12 Jul 2013 16:03:07 -0400 [thread overview]
Message-ID: <CAJELnLHHEdaixowBnCn2ig56r0rHWwsSgg=P=xaTGmNaig=MVw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1843 bytes --]
I'm interested in isolating and fixing whatever prevents `line-move-visual`
from behaving as expected when `fci-mode` is on. Do you have more
information on what part of the C implementation behaves badly with
`fci-mode` and `line-move-visual`?
I also opened this as a GitHub issue against fci-mode.[1]
Background:
The Fill-Column-Indicator README[2] says:
> If line-move-visual is t, then vertical navigation can behave oddly in
several edge cases while fci-mode is enabled (this is due to a bug in
Emacs's C code). Accordingly, fci-mode sets line-move-visual to nil in
buffers in which it is enabled and restores it to its previous value when
disabled. This can be suppressed by setting fci-handle-line-move-visual to
nil. (But you shouldn't want to do this. There's no reason to use
line-move-visual if truncate-lines is t, and it doesn't make sense to use
something like fci-mode when truncate-lines is nil.)
This is a small test case that shows the unexpected behavior:
$ open -n -a Emacs --args -Q --no-site-file --eval '(progn (load-file
"fill-column-indicator.el") (fci-mode) (set-variable (quote
line-move-visual) t) (insert "\n\n \n") (goto-line 2)
(move-beginning-of-line nil) (next-line) (what-cursor-position))'
Observe that the point lands in column 2 in the above example, whereas
without `line-move-visual`, it lands in column 1 as expected:
$ open -n -a Emacs --args -Q --no-site-file --eval '(progn (load-file
"fill-column-indicator.el") (fci-mode) (insert "\n\n \n") (goto-line 2)
(move-beginning-of-line nil) (next-line) (what-cursor-position))'
[1]: https://github.com/alpaker/Fill-Column-Indicator/issues/35
[2]:
https://github.com/alpaker/Fill-Column-Indicator/blob/master/README.markdown#other-options
--
Matt McClure
http://matthewlmcclure.com
http://www.mapmyfitness.com/profile/matthewlmcclure
[-- Attachment #2: Type: text/html, Size: 2529 bytes --]
next reply other threads:[~2013-07-12 20:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-12 20:03 Matt McClure [this message]
2013-07-12 20:46 ` Make fci-mode coexist better with line-move-visual Eli Zaretskii
2013-07-12 21:34 ` Matt McClure
2013-07-13 7:06 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJELnLHHEdaixowBnCn2ig56r0rHWwsSgg=P=xaTGmNaig=MVw@mail.gmail.com' \
--to=matthewlmcclure@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.