From: Andreas Roehler <andreas.roehler@online.de>
Cc: Richard Stallman <rms@gnu.org>
Subject: text.texi - `buffer-substring'
Date: Fri, 23 Jun 2006 08:47:06 +0200 [thread overview]
Message-ID: <449B8E6A.5090007@online.de> (raw)
Evaluation of the given example to `buffer-substring'
produces a different result as shown in the manual.
Whereas the manual demonstrates
---------- Buffer: foo ----------
This is the contents of buffer foo
---------- Buffer: foo ----------
(buffer-substring 1 10)
=> "This is t"
I get
(buffer-substring 1 10)#("This is t" 0 1 (fontified t) 1 9 (fontified t))
ie text-properties are copied as a kind of comment
behind, not solely `along' as the info says. (Reading
the info I would understand, that the chars copied into
the returned string are propertized as the original
one, as it seems the case altogether.)
The mentioned copying effects eventually following procedures.
(setq baz (buffer-substring 1 10))
baz --> #("This is t" 0 1 (fontified t) 1 9 (fontified t))
Maybe it's a `buffer-substring' bug ?
__
Andreas Roehler
;;;;;;;;;;;;;
GNU Emacs 22.0.50.2 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2006-06-18
X server distributor `The X.Org Foundation', version 11.0.60802000
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8
default-enable-multibyte-characters: t
Major mode: Emacs-Lisp
Minor modes in effect:
icicle-mode: t
global-hi-lock-mode: t
hi-lock-mode: t
auto-image-file-mode: t
iswitchb-mode: t
recentf-mode: t
show-paren-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
abbrev-mode: t
;;;;;;;
next reply other threads:[~2006-06-23 6:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-23 6:47 Andreas Roehler [this message]
2006-06-23 6:47 ` text.texi - `buffer-substring' Miles Bader
2006-06-23 7:18 ` Andreas Roehler
2006-06-23 7:50 ` Eli Zaretskii
2006-06-24 8:31 ` 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=449B8E6A.5090007@online.de \
--to=andreas.roehler@online.de \
--cc=rms@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 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).