all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: emacs-devel@gnu.org
Subject: Redisplay bug in 22.1
Date: Mon, 01 Oct 2007 23:32:59 -0400	[thread overview]
Message-ID: <E1IcYVH-0000wR-2P@fencepost.gnu.org> (raw)

Would someone please DTRT then ack?

From: Joe Wells <jbw@macs.hw.ac.uk>
Date: Mon, 01 Oct 2007 16:31:55 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: bugs and documentation issues: cursors,
	text/overlay properties (display, before-string, after-string,
	invisible, intangible), column numbers

ISSUE 4:  A before-string property on a range of characters causes
cursor problems.  If point is just before all of the characters
with the before-string property, the cursor is displayed _after_
the string which is the value of the before-string
property.  (This issue was first reported in 2002.)

(progn
  (delete-other-windows)
  (kill-buffer (get-buffer-create "test"))
  (set-buffer (get-buffer-create "test"))
  (insert "AB")
  (let ((o (make-overlay 2 3))) ;; covering the B
    (overlay-put o 'before-string "YZ")
    ;;(overlay-put o 'display "C")
    )
  (goto-char 2) ;; point now between A and B
  (display-buffer (current-buffer))
  )

In the above example, because the characters "YZ" are logically
part of the display of "B", and because point is between "A"
and "B", then logically the cursor should be presented before
the "YZ".

                 reply	other threads:[~2007-10-02  3:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=E1IcYVH-0000wR-2P@fencepost.gnu.org \
    --to=rms@gnu.org \
    --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.