all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Redisplay bug in 22.1
@ 2007-10-02  3:32 Richard Stallman
  0 siblings, 0 replies; only message in thread
From: Richard Stallman @ 2007-10-02  3:32 UTC (permalink / raw)
  To: emacs-devel

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".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-02  3:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02  3:32 Redisplay bug in 22.1 Richard Stallman

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.