From: "Drew Adams" <drew.adams@oracle.com>
To: 9371@debbugs.gnu.org
Subject: bug#9371: 24.0.50; wrong-type-arg integer-or-marker-p nil in `end-of-visible-line'
Date: Thu, 25 Aug 2011 08:46:08 -0700 [thread overview]
Message-ID: <1A1E0F9F3213446F8470BCDD907F82DD@us.oracle.com> (raw)
I do not have a recipe from emacs -Q, but this backtrace should help:
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
goto-char(nil)
(if (get-text-property (point) (quote invisible)) (goto-char
(next-single-property-change (point) (quote invisible))) (goto-char
(next-overlay-change (point))))
(while (and (not (eobp)) (save-excursion (skip-chars-forward "^\n") (let
((prop (get-char-property (point) (quote invisible)))) (if (eq
buffer-invisibility-spec t) prop (or (memq prop buffer-invisibility-spec) (assq
prop buffer-invisibility-spec)))))) (skip-chars-forward "^\n") (if
(get-text-property (point) (quote invisible)) (goto-char
(next-single-property-change (point) (quote invisible))) (goto-char
(next-overlay-change (point)))) (end-of-line))
end-of-visible-line()
(save-excursion (end-of-visible-line) (point))
(let ((end (save-excursion (end-of-visible-line) (point)))) (if (or
(save-excursion (unless show-trailing-whitespace (skip-chars-forward " " end))
(= (point) end)) (and kill-whole-line (bolp))) (forward-visible-line 1)
(goto-char end)))
(if arg (forward-visible-line (prefix-numeric-value arg)) (if (eobp) (signal
(quote end-of-buffer) nil)) (let ((end (save-excursion (end-of-visible-line)
(point)))) (if (or (save-excursion (unless show-trailing-whitespace
(skip-chars-forward " " end)) (= (point) end)) (and kill-whole-line (bolp)))
(forward-visible-line 1) (goto-char end))))
(progn (if arg (forward-visible-line (prefix-numeric-value arg)) (if (eobp)
(signal (quote end-of-buffer) nil)) (let ((end (save-excursion
(end-of-visible-line) (point)))) (if (or (save-excursion (unless
show-trailing-whitespace (skip-chars-forward " " end)) (= (point) end)) (and
kill-whole-line (bolp))) (forward-visible-line 1) (goto-char end)))) (point))
(kill-region (point) (progn (if arg (forward-visible-line
(prefix-numeric-value arg)) (if (eobp) (signal (quote end-of-buffer) nil)) (let
((end (save-excursion (end-of-visible-line) (point)))) (if (or (save-excursion
(unless show-trailing-whitespace ...) (= ... end)) (and kill-whole-line (bolp)))
(forward-visible-line 1) (goto-char end)))) (point)))
kill-line(nil)
apply(kill-line nil)
...
The problematic code seems to be this part of `end-of-visible-line',
near the end:
(if (get-text-property (point) 'invisible)
(goto-char (next-single-property-change (point) 'invisible))
(goto-char (next-overlay-change (point))))
In the case at hand, `point' has an `invisible' property, but
`next-single-property-change' returns nil, which makes `goto-char' barf.
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
of 2011-08-22 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt'
next reply other threads:[~2011-08-25 15:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-25 15:46 Drew Adams [this message]
2012-03-22 7:38 ` bug#9371: 24.0.50; wrong-type-arg integer-or-marker-p nil in `end-of-visible-line' Chong Yidong
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1A1E0F9F3213446F8470BCDD907F82DD@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=9371@debbugs.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 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.