From: Luc Teirlinck <teirllm@dms.auburn.edu>
Subject: Yet another problem with default-text-properties
Date: Wed, 19 May 2004 22:50:55 -0500 (CDT) [thread overview]
Message-ID: <200405200350.i4K3otO18738@raven.dms.auburn.edu> (raw)
Consider the following ielm run:
*** Welcome to IELM *** Type (describe-mode) for help.
ELISP> (make-local-variable 'default-text-properties)
default-text-properties
ELISP> (setq default-text-properties '(foo 69))
(foo 69)
ELISP> (setq char-property-alias-alist '((foo bar)))
((foo bar))
ELISP> (setq str "01")
"01"
ELISP> (get-text-property 1 'foo str)
69
ELISP>
Now this might look perfectly as expected.
However, does this mean that whenever one constructs any strings, or
calls any command that could be constructing strings, that are not
directly related to the current buffer's mode, one should always bind
default-text-properties to nil? For instance, enriched mode specifies
a buffer-local value for default-text-properties. That value seems to
be meant for text to be inserted in the buffer, but it will also apply
to completely unrelated strings constructed while the buffer is
current.
Does that not seem somewhat bizarre?
Sincerely,
Luc.
next reply other threads:[~2004-05-20 3:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-20 3:50 Luc Teirlinck [this message]
2004-05-20 13:17 ` Yet another problem with default-text-properties 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200405200350.i4K3otO18738@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).