unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* window-scroll-functions
@ 2006-09-01  6:50 martin rudalics
  2006-09-01 12:47 ` window-scroll-functions Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: martin rudalics @ 2006-09-01  6:50 UTC (permalink / raw)


When an error occurs in calling a function in `window-scroll-functions'
Emacs may behave very strangely.  With Emacs -Q inserting

(defun foo (window start)
   (error "?"))

(add-hook 'window-scroll-functions 'foo nil t)

in *scratch*, doing M-x `eval-buffer', and then C-l, Emacs shows me the
window without scrollbar, modeline, and buffer text.

In GNU Emacs 22.0.50.1 (i386-mingw-windows98.3000)
  of 2006-08-27 on MACHNO
X server distributor `Microsoft Corp.', version 4.90.3000
configured using `configure --with-gcc (3.4)'

BTW, Emacs 21.2 shows scrollbar, modeline, and buffer text for this.

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

* Re: window-scroll-functions
  2006-09-01  6:50 window-scroll-functions martin rudalics
@ 2006-09-01 12:47 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2006-09-01 12:47 UTC (permalink / raw)
  Cc: emacs-devel

    When an error occurs in calling a function in `window-scroll-functions'
    Emacs may behave very strangely.

I don't think it is a requirement to fix this.  To fix it would be an
improvement, so it would be nice to install a safe fix if someone can
find one.  But if we don't find a safe fix, I would rather make no
change.

Perhaps just using safe_run_hooks or something similar
will do the job.

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

end of thread, other threads:[~2006-09-01 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-01  6:50 window-scroll-functions martin rudalics
2006-09-01 12:47 ` window-scroll-functions Richard Stallman

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).