unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4550: 23.1; give users a choice for quitting backtrace buffer
@ 2009-09-24 17:00 Drew Adams
  2011-07-13 13:54 ` Lars Magne Ingebrigtsen
  2012-10-06 17:37 ` martin rudalics
  0 siblings, 2 replies; 16+ messages in thread
From: Drew Adams @ 2009-09-24 17:00 UTC (permalink / raw)
  To: bug-gnu-emacs

emacs -Q
 
This change in debug.el is not good:
 
Revision 1.107 - (view) (download) (annotate) - [select for diffs] 
Fri Apr 18 01:29:23 2008 UTC (17 months, 1 week ago) by monnier 
Branch: MAIN 
CVS Tags: font-backend-base 
Branch point for: font-backend 
Changes since 1.106: +4 -3 lines 
Diff to previous 1.106 
(debug): Revert to bury-buffer since quit-window is not better anyway.
 
In my case, this change means that the debugger frame is iconified
each time, and this includes some times when the debugger is still
active, which makes it impossible to access/use. (*)
 
The point is that `bury-buffer' is unacceptable for my use - it is
practically impossible for me to use the debugger in Emacs 23.  I can
live with no action at all (which keeps the *Backtrace* frame around)
or with `quit-window' in place of `bury-buffer'. I cannot live with
`bury-buffer'.  So I redefine `debug', just to change that one silly
function call.
 
The solution is to call a function that is the value of a user option:
`debugger-quit-function'. I don't care what the default value is -
make it `bury-buffer' if you want.
 
The user option's value should have :type `function' or, better, a
`choice' between nil and `function', where nil would mean do nothing.
If the :type is just `function' a user can of course use function
`ignore' to do nothing, but that is not so obvious for some users, so
in that case, please call that out in the doc string.
 
The code would then do this, in place of calling (bury-buffer):
 
;; If the option can have value nil:
(when debugger-quit-function
  (funcall debugger-quit-function))
 
;; If the option value can only be a function:
(funcall debugger-quit-function)
 
I would then customize the option to `quit-window' (or nil or
`ignore').
 

---
(*) No, I'm not going to try to figure out what's happening in those
cases where it is iconified when still active; it's hard enough using
the debugger when broken like this, without trying to debug the
debugger.  In case it helps, I will say however that I don't remember
seeing that when `bury-buffer' was used briefly during Emacs 22
development - back then it was iconified only when empty (finished),
IIRC.
 

In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
 of 2009-07-29 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'
 







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

end of thread, other threads:[~2012-10-08 13:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-24 17:00 bug#4550: 23.1; give users a choice for quitting backtrace buffer Drew Adams
2011-07-13 13:54 ` Lars Magne Ingebrigtsen
2011-07-13 15:29   ` Drew Adams
2011-07-13 15:35     ` Lars Magne Ingebrigtsen
2011-07-13 15:52       ` Drew Adams
2011-07-13 16:21         ` Lars Magne Ingebrigtsen
2011-07-13 16:53           ` Drew Adams
2011-07-16 17:41             ` Stefan Monnier
2011-07-17  9:39             ` martin rudalics
2011-07-17 10:18               ` Štěpán Němec
2011-07-17 12:06                 ` martin rudalics
2011-07-17 12:21                   ` Štěpán Němec
2011-07-17 13:00                     ` martin rudalics
2011-07-18 13:45               ` Stefan Monnier
2012-10-06 17:37 ` martin rudalics
2012-10-08 13:28   ` Drew Adams

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