From: Richard Stallman <rms@gnu.org>
Subject: [mange@freemail.hu: next-single-property-change and narrowed buffers]
Date: Fri, 08 Sep 2006 16:29:57 -0400 [thread overview]
Message-ID: <E1GLmz7-0003pb-Tk@fencepost.gnu.org> (raw)
Would someone please fix this and DTRT?
------- Start of forwarded message -------
From: Magnus Henoch <mange@freemail.hu>
To: emacs-pretest-bug@gnu.org
Jabber-Id: legoscia@jabber.cd.chalmers.se
Date: Fri, 08 Sep 2006 15:04:00 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: next-single-property-change and narrowed buffers
X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO
autolearn=failed version=3.0.4
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
The docsting of next-single-property-change promises that it will
never return a value equal to the position given, but it does if the
buffer is narrowed and the next property change occurs after the
narrowed region. Test case:
(defun test-nspc ()
(interactive)
(with-current-buffer (get-buffer-create "*test-nspc*")
(fundamental-mode)
(erase-buffer)
(insert (make-string 100 ?\ ))
(add-text-properties 25 50 '(test-nspc t))
(narrow-to-region 1 49)
(let ((pos (point-min)))
(while pos
(message "pos is %s" pos)
(let ((old-pos pos))
(setq pos (next-single-property-change pos 'test-nspc))
(when (and pos (<= pos old-pos))
(error "%s is <= %s" pos old-pos)))))))
If emacs crashed, and you have the emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/22.0.50/etc/DEBUG for instructions.
In GNU Emacs 22.0.50.4 (powerpc-unknown-netbsd3.99.23, X toolkit, Xaw3d scroll bars)
of 2006-08-21 on zemdatav
X server distributor `The XFree86 Project, Inc', version 11.0.40500000
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: en_US.UTF-8
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: utf-8
default-enable-multibyte-characters: t
Major mode: Custom
Minor modes in effect:
shell-dirtrack-mode: t
display-time-mode: t
jabber-activity-mode: t
jabber-mode-line-mode: t
iswitchb-mode: t
icomplete-mode: t
tooltip-mode: t
mouse-wheel-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
Recent input:
<tab> <return> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <up> <up> <up> <up> <up> <up> <up> <up>
C-e C-h v <return> <C-s-down> <tab> <tab> <return>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <tab> <tab> <return>
<tab> <return> 1 C-x b C-s <return> C-x k <return>
y e s <return> M-x r e p o r t SPC e m SPC <return
>
Recent messages:
mouse-2, RET: customize variable
Creating customization items...
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
Message from spenatmannen in Iccarus
Hide the value of this option.
To install your edits, invoke [State] and choose the Set operation
Change the state of this item.
Wrote /home/magnus/emacs-custom.el
_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------
next reply other threads:[~2006-09-08 20:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-08 20:29 Richard Stallman [this message]
2006-09-08 21:29 ` Fwd: next-single-property-change and narrowed buffers Stefan Monnier
2006-09-09 16:40 ` Magnus Henoch
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=E1GLmz7-0003pb-Tk@fencepost.gnu.org \
--to=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).