Article View: gnu.emacs.bug
Article #87325suspend-emacs
From: John Walters jow
Date: Sat, 01 Oct 1994 19:00
Date: Sat, 01 Oct 1994 19:00
46 lines
2426 bytes
2426 bytes
In GNU Emacs 19.25.2 of Mon Aug 15 1994 on brick.purchase.edu (rs6000-ibm-aix3.2.5)
OK ... the problem is just this:
(add-hook 'suspend-hook
'(lambda ()
(message "Please use C-x C-c to exit emacs.")
nil))
... should cause suspend-emacs to display the message _without_ suspending.
What seems to be happening however, is it is ignoring the fact that the
function is returning nil. i.e. it prints the message and suspends
regardless of whether or not the function returns nil.
BTW: I've noticed this bug since (at least ) version 19.12. Prior to 19.12
I had version 18.xx (sorry, memory fails here) with which suspend-emacs would
work as advertised.
Please mail me back (only if possible) if you think you might have a fix for
this one ...
Thanks,
John Walters
P.S.: And, ummm ... just so you don't have to bother:
The following is extracted from the docstring for `suspend-emacs' ...
Please note how it implies that if a function in suspend-hook returns nil
then suspend-emacs should not suspend.
>>> suspend-emacs: an interactive built-in function.
>>>
>>> [ ... ]
>>>
>>> Before suspending, call the functions in `suspend-hook' with no args.
>>> If any of them returns nil, don't call the rest and don't suspend.
>>> Otherwise, suspend normally and after resumption run the normal hook
>>> `suspend-resume-hook' if that is bound and non-nil.
>>>
>>> [ ... etc ... ]
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-= jow@purvid.purchase.edu }|{ /* you are not expected =-=
=-= walters@brick.purchase.edu }|{ to understand this */ =-=
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<9410011853.AA16687@brick.purchase.edu>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!brick.purchase.edu!waltersShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,abce9f9f5810d327,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-10-01 12:03:06 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!brick.purchase.edu!walters From: walters@brick.purchase.edu (John Walters (jow@purvid)) Newsgroups: gnu.emacs.bug Subject: suspend-emacs Date: 1 Oct 1994 15:00:05 -0400 Organization: GNUs Not Usenet Lines: 47 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <9410011853.AA16687@brick.purchase.edu>