From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.60; scroll-up gives something between error and message
Date: Mon, 24 Mar 2008 20:22:22 +0100 [thread overview]
Message-ID: <47E7FF6E.6040804@gmail.com> (raw)
In-Reply-To: <jwvod942b21.fsf-monnier+emacsbugreports@gnu.org>
Stefan Monnier wrote:
>> There is something strange with the error handling in scroll-up. When
>> calling (scroll-up 1) in an empty buffer execution of the function calling
>> it stopped and a message is given. However there is no error generated.
>
> What makes you think no error is generated?
There is no traceback, but yes I did not try. Here is a try:
(defun test-scroll ()
(interactive)
(setq debug-on-error t)
(let* ((buffer-name "test-scroll")
(buffer (get-buffer buffer-name)))
(when buffer (kill-buffer buffer))
(setq buffer (get-buffer-create buffer-name))
(switch-to-buffer buffer)
(message "here 1") (sit-for 1)
(condition-case err
(scroll-up 1)
(error (message "scroll-up error: %s" err)
(sit-for 1)))
(message "here 2") (sit-for 1)
(scroll-up 1)
(message "here 3") (sit-for 1)
))
The output is now
here 1
scroll-up error: (end-of-buffer)
here 2
let*: End of buffer
There is no *Backtrace* window shown for the second (scroll-up 1). Is
there when you test it?
next prev parent reply other threads:[~2008-03-24 19:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 18:17 23.0.60; scroll-up gives something between error and message Lennart Borgman (gmail)
2008-03-24 19:10 ` Stefan Monnier
2008-03-24 19:22 ` Lennart Borgman (gmail) [this message]
2008-03-25 0:43 ` Stefan Monnier
2008-03-25 0:57 ` Lennart Borgman (gmail)
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=47E7FF6E.6040804@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-pretest-bug@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.