From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: emacs-devel@gnu.org
Subject: Re: Emacs Lisp manual issues regarding overlays, display properties, margins, etc.
Date: Tue, 02 Oct 2007 18:07:22 +0200 [thread overview]
Message-ID: <yoijbqbhh551.fsf@gamma02.me.chalmers.se> (raw)
In-Reply-To: E1IcjgF-0003op-Tk@fencepost.gnu.org
Richard Stallman <rms@gnu.org> writes:
> There seems to be something totally fishy with the way margin display
> properties work:
>
> (test-overlays
> (insert "ABC")
> (let ((o1 (make-overlay 2 3)))
> (overlay-put o1 'display '((margin left-margin) "Z")))
> (set-window-margins (get-buffer-window (current-buffer)) 8))
>
> this causes Z to appear in the margin and causes B not to appear
> in the body of the text.
>
> That seems like a bug to me. It seems to me that a property that puts
> something in the margin should not alter the appearance of the text
> it is on.
>
> Does anyone think the current behavior is desirable?
In any case, it follows the documentation
If you put such a display specification directly on text in the
buffer, the specified margin display appears _instead of_ that
buffer text itself. To put something in the margin _in association
with_ certain buffer text without preventing or altering the display
of that text, put a `before-string' property on the text and put the
display specification on the contents of the before-string.
(info "(elisp)Display Margins")
--
Johan Bockgård
next prev parent reply other threads:[~2007-10-02 16:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-28 20:34 Emacs Lisp manual issues regarding overlays, display properties, margins, etc Joe Wells
2007-09-29 11:44 ` Johan Bockgård
[not found] ` <mailman.1468.1191066364.18990.bug-gnu-emacs@gnu.org>
2007-09-29 16:38 ` Joe Wells
2007-10-01 13:47 ` Johan Bockgård
2007-10-01 17:40 ` Richard Stallman
2007-10-01 17:57 ` Joe Wells
2007-10-02 15:29 ` Richard Stallman
2007-10-02 16:07 ` Johan Bockgård [this message]
2007-10-08 18:04 ` Richard Stallman
2007-10-02 16:23 ` Joe Wells
2007-10-02 19:20 ` Stefan Monnier
2007-10-03 18:38 ` Richard Stallman
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=yoijbqbhh551.fsf@gamma02.me.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
--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.