all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* text.texi - `buffer-substring'
@ 2006-06-23  6:47 Andreas Roehler
  2006-06-23  6:47 ` Miles Bader
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andreas Roehler @ 2006-06-23  6:47 UTC (permalink / raw)
  Cc: Richard Stallman

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
;;;;;;;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-24  8:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-23  6:47 text.texi - `buffer-substring' Andreas Roehler
2006-06-23  6:47 ` Miles Bader
2006-06-23  7:18   ` Andreas Roehler
2006-06-23  7:50 ` Eli Zaretskii
2006-06-24  8:31 ` 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.