[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

next-single-property-change and narrowed buffers

From: Magnus Henoch
Subject: next-single-property-change and narrowed buffers
Date: Fri, 08 Sep 2006 15:04:00 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (berkeley-unix)

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 ()
  (with-current-buffer (get-buffer-create "*test-nspc*")
    (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 (powerpc-unknown-netbsd3.99.23, X toolkit, Xaw3d scroll 
 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]