From: Keith David Bershatsky <esq@lawlist.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 22762@debbugs.gnu.org
Subject: bug#22762: 25.1.50; Enhancement/Feature Request: window-local `overlay_arrow_variable_list`
Date: Mon, 22 Feb 2016 10:36:04 -0800 [thread overview]
Message-ID: <m2y4ack2y3.wl%esq@lawlist.com> (raw)
In-Reply-To: <m2fuwlpl8j.wl%esq@lawlist.com>
Because the cursor position remains anchored at a previous position in a non-selected window, my preference would be that the bitmap either remains where it is in the non-selected window OR that it completely disappear until the window is selected again. After evaluating the following example, I move the cursor upwards or downwards with the arrow key and find myself visually distracted by the bitmap moving in the non-selected window -- especially knowing that the cursor is anchored at a different position in that non-selected window. When I switch to the non-selected window, the bitmap jumps back to where the cursor was previously anchored.
I like the feature of the `overlay-arrow-variable-list`, but find myself leaning towards using a plain overlay in the fringe with the 'window property to avoid the above-described visual distraction.
(add-to-list 'overlay-arrow-variable-list 'hello-world-symbol-triangle)
(put 'hello-world-symbol-triangle 'overlay-arrow-bitmap 'right-triangle)
(defun my-set-position ()
(let* (
(pbol (point-at-bol))
(my-point-marker (point-marker)) )
(setq hello-world-symbol-triangle
(cond
((bolp)
my-point-marker)
(t
(copy-marker pbol))))))
(add-hook 'post-command-hook 'my-set-position nil t)
(switch-to-buffer-other-window (current-buffer))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
At Mon, 22 Feb 2016 17:59:45 +0200,
Eli Zaretskii wrote:
>
> * * *
>
> I'm not sure I understand the use case. Could you please describe a
> sequence of steps that lead to the confusing display?
prev parent reply other threads:[~2016-02-22 18:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-22 1:49 bug#22762: 25.1.50; Enhancement/Feature Request: window-local `overlay_arrow_variable_list` Keith David Bershatsky
2016-02-22 15:59 ` Eli Zaretskii
2016-02-22 18:36 ` Keith David Bershatsky [this message]
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=m2y4ack2y3.wl%esq@lawlist.com \
--to=esq@lawlist.com \
--cc=22762@debbugs.gnu.org \
--cc=eliz@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.