all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Error messages
@ 2007-09-10 19:07 Anton V. Belyaev
  2007-09-10 20:31 ` Tassilo Horn
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Anton V. Belyaev @ 2007-09-10 19:07 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I use Emacs from CVS and it has a lot of errors and incompatibilities.
When some error occurs, I get just a message, for example

Invalid function: "..."

is there any way to get to debugger instead of this message, to be
able to fix the error?
I believe this is a common situation and enabling the debugger in this
case is very simple, but I didnt find a way to do it.

Thanks.

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

* Re: Error messages
  2007-09-10 19:07 Error messages Anton V. Belyaev
@ 2007-09-10 20:31 ` Tassilo Horn
  2007-09-11  8:14   ` Anton V. Belyaev
  2007-09-11  8:14 ` Tim X
  2007-09-11  8:37 ` Peter Dyballa
  2 siblings, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2007-09-10 20:31 UTC (permalink / raw)
  To: help-gnu-emacs

"Anton V. Belyaev" <anton.belyaev@gmail.com> writes:

Hi Anton,

> is there any way to get to debugger instead of this message, to be
> able to fix the error?

,----[ C-h f toggle-debug-on-error RET ]
| toggle-debug-on-error is an interactive compiled Lisp function in `menu-bar.el'.
| It is bound to <menu-bar> <options> <debug-on-error>.
| (toggle-debug-on-error &optional INTERACTIVELY)
| 
| Toggle whether to enter Lisp debugger when an error is signaled.
| In an interactive call, record this option as a candidate for saving
| by "Save Options" in Custom buffers.
`----

Bye,
Tassilo

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

* Re: Error messages
  2007-09-10 20:31 ` Tassilo Horn
@ 2007-09-11  8:14   ` Anton V. Belyaev
  0 siblings, 0 replies; 5+ messages in thread
From: Anton V. Belyaev @ 2007-09-11  8:14 UTC (permalink / raw)
  To: help-gnu-emacs

On Sep 11, 12:31 am, Tassilo Horn <tass...@member.fsf.org> wrote:
> "Anton V. Belyaev" <anton.bely...@gmail.com> writes:
>
> Hi Anton,
>
> > is there any way to get to debugger instead of this message, to be
> > able to fix the error?
>
> ,----[ C-h f toggle-debug-on-error RET ]
> | toggle-debug-on-error is an interactive compiled Lisp function in `menu-bar.el'.
> | It is bound to <menu-bar> <options> <debug-on-error>.
> | (toggle-debug-on-error &optional INTERACTIVELY)
> |
> | Toggle whether to enter Lisp debugger when an error is signaled.
> | In an interactive call, record this option as a candidate for saving
> | by "Save Options" in Custom buffers.
> `----
>
> Bye,
> Tassilo

Thanks a lot, Tassilo! This works.
The strange thing is that I tried setting debug-on-error variable
before (I knew about it from ELisp docs), and it didnt work.

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

* Re: Error messages
  2007-09-10 19:07 Error messages Anton V. Belyaev
  2007-09-10 20:31 ` Tassilo Horn
@ 2007-09-11  8:14 ` Tim X
  2007-09-11  8:37 ` Peter Dyballa
  2 siblings, 0 replies; 5+ messages in thread
From: Tim X @ 2007-09-11  8:14 UTC (permalink / raw)
  To: help-gnu-emacs

"Anton V. Belyaev" <anton.belyaev@gmail.com> writes:

> Hello,
>
> I use Emacs from CVS and it has a lot of errors and incompatibilities.
> When some error occurs, I get just a message, for example
>
> Invalid function: "..."
>
> is there any way to get to debugger instead of this message, to be
> able to fix the error?
> I believe this is a common situation and enabling the debugger in this
> case is very simple, but I didnt find a way to do it.
>
> Thanks.
>

,----[ C-h f toggle-debug-on-error RET ]
| toggle-debug-on-error is an interactive compiled Lisp function in `menu-bar.el'.
| It is bound to  <menu-bar> <options> <debug-on-error> .
| (toggle-debug-on-error &optional INTERACTIVELY)
| 
| Toggle whether to enter Lisp debugger when an error is signaled.
| In an interactive call, record this option as a candidate for saving
| by "Save Options" in Custom buffers.
| 
| [back]
`----

-- 
tcross (at) rapttech dot com dot au

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

* Re: Error messages
  2007-09-10 19:07 Error messages Anton V. Belyaev
  2007-09-10 20:31 ` Tassilo Horn
  2007-09-11  8:14 ` Tim X
@ 2007-09-11  8:37 ` Peter Dyballa
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2007-09-11  8:37 UTC (permalink / raw)
  To: Anton V. Belyaev; +Cc: help-gnu-emacs


Am 10.09.2007 um 21:07 schrieb Anton V. Belyaev:

> is there any way to get to debugger instead of this message, to be
> able to fix the error?

Launch GNU Emacs with the option --debug-init – still no debugger  
(gdb or such) will launch, you'll get a bit more output, some  
backtrace of Elisp calls and arguments, that led to the error. When  
your lucky you might see a number where the error happened. Then use  
the function goto-char!


You can prepare your user init file with (cond (= 23 emacs-major- 
version) ... or (if (< 23 emacs-major-version) ...

--
Greetings

   Pete

The problem with the French is that they don't have a word for
«entrepreneur».                              - George W. Bush

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

end of thread, other threads:[~2007-09-11  8:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-10 19:07 Error messages Anton V. Belyaev
2007-09-10 20:31 ` Tassilo Horn
2007-09-11  8:14   ` Anton V. Belyaev
2007-09-11  8:14 ` Tim X
2007-09-11  8:37 ` Peter Dyballa

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.