all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
@ 2020-12-23 16:55 Christopher Dimech
  2020-12-23 17:00 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 33+ messages in thread
From: Christopher Dimech @ 2020-12-23 16:55 UTC (permalink / raw)
  To: Help Gnu Emacs

I am displaying an info file in emacs.  But when I use the arrow keys to move up and down
the document I get

Debugger entered--Lisp error: (beginning-of-buffer)
  signal(beginning-of-buffer nil)
  previous-line(1 1)
  funcall-interactively(previous-line 1 1)
  call-interactively(previous-line nil nil)
  command-execute(previous-line)


Debugger entered--Lisp error: (end-of-buffer)
  signal(end-of-buffer nil)
  next-line(1 1)
  funcall-interactively(next-line 1 1)
  call-interactively(next-line nil nil)
  command-execute(next-line)




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

* RE: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 16:55 Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer) Christopher Dimech
@ 2020-12-23 17:00 ` Drew Adams
  2020-12-23 17:10   ` Christopher Dimech
  2020-12-23 17:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2020-12-23 17:18 ` Daniel Martín
  2 siblings, 1 reply; 33+ messages in thread
From: Drew Adams @ 2020-12-23 17:00 UTC (permalink / raw)
  To: Christopher Dimech, Help Gnu Emacs

> I am displaying an info file in emacs.  But when I use the arrow keys to move
> up and down
> the document I get
> 
> Debugger entered--Lisp error: (beginning-of-buffer)
 
> Debugger entered--Lisp error: (end-of-buffer)

Do you see that when you start Emacs with `emacs -Q'?

Do you mean that each time you hit a vertical arrow key you get such an error, or just when you do that at the beginning or end of an Info node.  The latter is expected.



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 16:55 Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer) Christopher Dimech
  2020-12-23 17:00 ` Drew Adams
@ 2020-12-23 17:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2020-12-23 17:13   ` Christopher Dimech
  2020-12-23 17:18 ` Daniel Martín
  2 siblings, 1 reply; 33+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-12-23 17:09 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech wrote:

> I am displaying an info file in emacs. But when I use the
> arrow keys to move up and down the document I get
>
> Debugger entered--Lisp error: (beginning-of-buffer)
>   signal(beginning-of-buffer nil)
>   previous-line(1 1)
>   funcall-interactively(previous-line 1 1)
>   call-interactively(previous-line nil nil)
>   command-execute(previous-line)
>
> Debugger entered--Lisp error: (end-of-buffer)
>   signal(end-of-buffer nil)
>   next-line(1 1)
>   funcall-interactively(next-line 1 1)
>   call-interactively(next-line nil nil)
>   command-execute(next-line)

That's how it should be, or how it is anyway, perhaps you
configured the debugger?

try

$ emacs -Q

then eval (info "(Emacs)")

and see it the problem remains.

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




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

* Re: RE: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 17:00 ` Drew Adams
@ 2020-12-23 17:10   ` Christopher Dimech
  2020-12-23 17:35     ` Eli Zaretskii
  0 siblings, 1 reply; 33+ messages in thread
From: Christopher Dimech @ 2020-12-23 17:10 UTC (permalink / raw)
  To: Drew Adams; +Cc: Help Gnu Emacs


> Sent: Wednesday, December 23, 2020 at 10:30 PM
> From: "Drew Adams" <drew.adams@oracle.com>
> To: "Christopher Dimech" <dimech@gmx.com>, "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: RE: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> > I am displaying an info file in emacs.  But when I use the arrow keys to move
> > up and down
> > the document I get
> >
> > Debugger entered--Lisp error: (beginning-of-buffer)
>
> > Debugger entered--Lisp error: (end-of-buffer)
>
> Do you see that when you start Emacs with `emacs -Q'?
>
> Do you mean that each time you hit a vertical arrow key you get such an error, or just
 when you do that at the beginning or end of an Info node.  The latter is expected.
>

Nat when using "emacs -Q".

Only when I reach the beginning or end of an Info node.  The problem is that I also get a
*backtrace* buffer, with the text described.




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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 17:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2020-12-23 17:13   ` Christopher Dimech
  0 siblings, 0 replies; 33+ messages in thread
From: Christopher Dimech @ 2020-12-23 17:13 UTC (permalink / raw)
  To: moasenwood; +Cc: help-gnu-emacs

> Sent: Wednesday, December 23, 2020 at 10:39 PM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech wrote:
>
> > I am displaying an info file in emacs. But when I use the
> > arrow keys to move up and down the document I get
> >
> > Debugger entered--Lisp error: (beginning-of-buffer)
> >   signal(beginning-of-buffer nil)
> >   previous-line(1 1)
> >   funcall-interactively(previous-line 1 1)
> >   call-interactively(previous-line nil nil)
> >   command-execute(previous-line)
> >
> > Debugger entered--Lisp error: (end-of-buffer)
> >   signal(end-of-buffer nil)
> >   next-line(1 1)
> >   funcall-interactively(next-line 1 1)
> >   call-interactively(next-line nil nil)
> >   command-execute(next-line)
>
> That's how it should be, or how it is anyway, perhaps you
> configured the debugger?
>
> try
>
> $ emacs -Q
>
> then eval (info "(Emacs)")
>
> and see it the problem remains.

No, the problem vanishes.  Must be something in my init file then.

> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 16:55 Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer) Christopher Dimech
  2020-12-23 17:00 ` Drew Adams
  2020-12-23 17:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2020-12-23 17:18 ` Daniel Martín
  2020-12-23 17:35   ` Christopher Dimech
  2 siblings, 1 reply; 33+ messages in thread
From: Daniel Martín @ 2020-12-23 17:18 UTC (permalink / raw)
  To: Christopher Dimech; +Cc: Help Gnu Emacs

Christopher Dimech <dimech@gmx.com> writes:

> I am displaying an info file in emacs.  But when I use the arrow keys to move up and down
> the document I get
>
> Debugger entered--Lisp error: (beginning-of-buffer)
>   signal(beginning-of-buffer nil)
>   previous-line(1 1)
>   funcall-interactively(previous-line 1 1)
>   call-interactively(previous-line nil nil)
>   command-execute(previous-line)
>
>
> Debugger entered--Lisp error: (end-of-buffer)
>   signal(end-of-buffer nil)
>   next-line(1 1)
>   funcall-interactively(next-line 1 1)
>   call-interactively(next-line nil nil)
>   command-execute(next-line)

I can't reproduce this problem.  Could you give some more detailed steps
to reproduce it?  How much content does the Info file have?  Can you
reproduce the problem from "emacs -Q"? Thanks.



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 17:18 ` Daniel Martín
@ 2020-12-23 17:35   ` Christopher Dimech
  2020-12-23 17:49     ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 33+ messages in thread
From: Christopher Dimech @ 2020-12-23 17:35 UTC (permalink / raw)
  To: Daniel Martín; +Cc: Help Gnu Emacs

I had debug-on-error.  Am now doing a cycle function for debug "on"
and "off".

Can I improve on the following?

(defvar debug-cycle-state 1)
(defun debug-cycle ()
   (interactive)

   (pcase typh-frame-size-state
     (1 (setq debug-on-error nil)
        (setq typh-frame-size-state 2))
     (2 (setq debug-on-error t)
        (setq debug-ignored-errors nil)
        (setq debug-on-message "unescaped character literals")
        (setq typh-frame-size-state 1)) ))

(global-set-key (kbd "H-g") #'debug-cycle)




> Sent: Wednesday, December 23, 2020 at 10:48 PM
> From: "Daniel Martín" <mardani29@yahoo.es>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech <dimech@gmx.com> writes:
> 
> > I am displaying an info file in emacs.  But when I use the arrow keys to move up and down
> > the document I get
> >
> > Debugger entered--Lisp error: (beginning-of-buffer)
> >   signal(beginning-of-buffer nil)
> >   previous-line(1 1)
> >   funcall-interactively(previous-line 1 1)
> >   call-interactively(previous-line nil nil)
> >   command-execute(previous-line)
> >
> >
> > Debugger entered--Lisp error: (end-of-buffer)
> >   signal(end-of-buffer nil)
> >   next-line(1 1)
> >   funcall-interactively(next-line 1 1)
> >   call-interactively(next-line nil nil)
> >   command-execute(next-line)
> 
> I can't reproduce this problem.  Could you give some more detailed steps
> to reproduce it?  How much content does the Info file have?  Can you
> reproduce the problem from "emacs -Q"? Thanks.
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 17:10   ` Christopher Dimech
@ 2020-12-23 17:35     ` Eli Zaretskii
  2020-12-23 17:40       ` Christopher Dimech
  0 siblings, 1 reply; 33+ messages in thread
From: Eli Zaretskii @ 2020-12-23 17:35 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Christopher Dimech <dimech@gmx.com>
> Date: Wed, 23 Dec 2020 18:10:23 +0100
> Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
> 
> Only when I reach the beginning or end of an Info node.  The problem is that I also get a
> *backtrace* buffer, with the text described.

Did you turn on debug-on-error, per chance?



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 17:35     ` Eli Zaretskii
@ 2020-12-23 17:40       ` Christopher Dimech
  0 siblings, 0 replies; 33+ messages in thread
From: Christopher Dimech @ 2020-12-23 17:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

Yes, I found it was non-nil.


> Sent: Wednesday, December 23, 2020 at 11:05 PM
> From: "Eli Zaretskii" <eliz@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> > From: Christopher Dimech <dimech@gmx.com>
> > Date: Wed, 23 Dec 2020 18:10:23 +0100
> > Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
> >
> > Only when I reach the beginning or end of an Info node.  The problem is that I also get a
> > *backtrace* buffer, with the text described.
>
> Did you turn on debug-on-error, per chance?
>
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 17:35   ` Christopher Dimech
@ 2020-12-23 17:49     ` Emanuel Berg via Users list for the GNU Emacs text editor
  2020-12-23 17:56       ` Christopher Dimech
  0 siblings, 1 reply; 33+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-12-23 17:49 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech wrote:

> (pcase typh-frame-size-state
>   (1 (setq debug-on-error nil)
>      (setq typh-frame-size-state 2))
>   (2 (setq debug-on-error t)
>      (setq debug-ignored-errors nil)
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here we see how where the problem originated, because
`debug-ignored-errors' by default contains both
beginning-of-buffer and end-of-buffer.

Here we also see what happens when you muck around with global
variables from defuns...

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 17:49     ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2020-12-23 17:56       ` Christopher Dimech
  2020-12-23 18:49         ` Christopher Dimech
  2020-12-23 18:52         ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 2 replies; 33+ messages in thread
From: Christopher Dimech @ 2020-12-23 17:56 UTC (permalink / raw)
  To: moasenwood; +Cc: help-gnu-emacs

> Sent: Wednesday, December 23, 2020 at 11:19 PM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech wrote:
> 
> > (pcase typh-frame-size-state
> >   (1 (setq debug-on-error nil)
> >      (setq typh-frame-size-state 2))
> >   (2 (setq debug-on-error t)
> >      (setq debug-ignored-errors nil)
>        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Here we see how where the problem originated, because
> `debug-ignored-errors' by default contains both
> beginning-of-buffer and end-of-buffer.
> 
> Here we also see what happens when you muck around with global
> variables from defuns...

It also overrides the variable ‘debug-on-error’.

How would be best to have the function?

> -- 
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
> 
> 
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 17:56       ` Christopher Dimech
@ 2020-12-23 18:49         ` Christopher Dimech
  2020-12-23 18:52         ` Emanuel Berg via Users list for the GNU Emacs text editor
  1 sibling, 0 replies; 33+ messages in thread
From: Christopher Dimech @ 2020-12-23 18:49 UTC (permalink / raw)
  To: Christopher Dimech; +Cc: help-gnu-emacs, moasenwood

I am really getting confused about debug-ignored-errors and how to
change debugging options "on" and "off" in my init file.

> Sent: Wednesday, December 23, 2020 at 11:26 PM
> From: "Christopher Dimech" <dimech@gmx.com>
> To: moasenwood@zoho.eu
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> > Sent: Wednesday, December 23, 2020 at 11:19 PM
> > From: "Emanuel Berg via Users list for the GNU Emacs text editor" <help-gnu-emacs@gnu.org>
> > To: help-gnu-emacs@gnu.org
> > Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
> >
> > Christopher Dimech wrote:
> > 
> > > (pcase typh-frame-size-state
> > >   (1 (setq debug-on-error nil)
> > >      (setq typh-frame-size-state 2))
> > >   (2 (setq debug-on-error t)
> > >      (setq debug-ignored-errors nil)
> >        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > Here we see how where the problem originated, because
> > `debug-ignored-errors' by default contains both
> > beginning-of-buffer and end-of-buffer.
> > 
> > Here we also see what happens when you muck around with global
> > variables from defuns...
> 
> It also overrides the variable ‘debug-on-error’.
> 
> How would be best to have the function?
> 
> > -- 
> > underground experts united
> > http://user.it.uu.se/~embe8573
> > https://dataswamp.org/~incal
> > 
> > 
> >
> 
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 17:56       ` Christopher Dimech
  2020-12-23 18:49         ` Christopher Dimech
@ 2020-12-23 18:52         ` Emanuel Berg via Users list for the GNU Emacs text editor
  2020-12-23 18:59           ` Christopher Dimech
  1 sibling, 1 reply; 33+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-12-23 18:52 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech wrote:

> How would be best to have the function?

Well, what's the intention of the function?

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 18:52         ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2020-12-23 18:59           ` Christopher Dimech
  2020-12-23 19:07             ` Emanuel Berg via Users list for the GNU Emacs text editor
  2020-12-24  4:09             ` Michael Heerdegen
  0 siblings, 2 replies; 33+ messages in thread
From: Christopher Dimech @ 2020-12-23 18:59 UTC (permalink / raw)
  To: moasenwood; +Cc: help-gnu-emacs

I would like to debug all errors (including those that are customarily ignored)
using option 2.  And for option 1, I want to put all debugging off.
debug-ignored-errors is messing me up.

> Sent: Thursday, December 24, 2020 at 12:22 AM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech wrote:
>
> > How would be best to have the function?
>
> Well, what's the intention of the function?
>
> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 18:59           ` Christopher Dimech
@ 2020-12-23 19:07             ` Emanuel Berg via Users list for the GNU Emacs text editor
  2020-12-24  4:55               ` Christopher Dimech
  2020-12-24  4:09             ` Michael Heerdegen
  1 sibling, 1 reply; 33+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-12-23 19:07 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech wrote:

> I would like to debug all errors (including those that are
> customarily ignored) using option 2.

OK, then set `debug-on-error' to `t' and
`debug-ignored-errors' to the empty list.

> And for option 1, I want to put all debugging off.

OK, set debug-on-error to nil.

I disencourage from doing this BTW, since many of the ignored
so-called "errors" are really better of being ignored...

> debug-ignored-errors is messing me up.

Are you sure that's where it started? :)

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 18:59           ` Christopher Dimech
  2020-12-23 19:07             ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2020-12-24  4:09             ` Michael Heerdegen
  2020-12-24  4:58               ` Christopher Dimech
  1 sibling, 1 reply; 33+ messages in thread
From: Michael Heerdegen @ 2020-12-24  4:09 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech <dimech@gmx.com> writes:

> I would like to debug all errors (including those that are customarily
> ignored)

Most of the time setting `debug-ignored-errors' to nil is not necessary
and can be quite annoying.  You may want to remember the variable name
and have a command at hand to change the value, but IME having it nil is
not a nice default choice.

Michael.




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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-23 19:07             ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2020-12-24  4:55               ` Christopher Dimech
  2020-12-24  5:27                 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 33+ messages in thread
From: Christopher Dimech @ 2020-12-24  4:55 UTC (permalink / raw)
  To: moasenwood; +Cc: help-gnu-emacs


> Sent: Thursday, December 24, 2020 at 12:37 AM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech wrote:
>
> > I would like to debug all errors (including those that are
> > customarily ignored) using option 2.
>
> OK, then set `debug-on-error' to `t' and
> `debug-ignored-errors' to the empty list.
>
> > And for option 1, I want to put all debugging off.
>
> OK, set debug-on-error to nil.
>
> I disencourage from doing this BTW, since many of the ignored
> so-called "errors" are really better of being ignored...
>
> > debug-ignored-errors is messing me up.
>
> Are you sure that's where it started? :)

Well, ideally it would be good to have  an additional option that
puts debug-ignored-errors to how it was set up initially.

> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24  4:09             ` Michael Heerdegen
@ 2020-12-24  4:58               ` Christopher Dimech
  2020-12-24  5:34                 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2020-12-24 14:24                 ` Eli Zaretskii
  0 siblings, 2 replies; 33+ messages in thread
From: Christopher Dimech @ 2020-12-24  4:58 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: help-gnu-emacs

> Sent: Thursday, December 24, 2020 at 9:39 AM
> From: "Michael Heerdegen" <michael_heerdegen@web.de>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech <dimech@gmx.com> writes:
>
> > I would like to debug all errors (including those that are customarily
> > ignored)
>
> Most of the time setting `debug-ignored-errors' to nil is not necessary
> and can be quite annoying.  You may want to remember the variable name
> and have a command at hand to change the value, but IME having it nil is
> not a nice default choice.

Have the point moving to the top of the buffer should not really be considered
an error.  I agree that nil is not a very good choice. too

> Michael.
>
>
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24  4:55               ` Christopher Dimech
@ 2020-12-24  5:27                 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2020-12-24  5:39                   ` Christopher Dimech
  0 siblings, 1 reply; 33+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-12-24  5:27 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech wrote:

> Well, ideally it would be good to have an additional option
> that puts debug-ignored-errors to how it was set
> up initially.

You can store it another variable before you change it, then
use that to reset.

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24  4:58               ` Christopher Dimech
@ 2020-12-24  5:34                 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2020-12-24  5:44                   ` Christopher Dimech
  2020-12-24 14:24                 ` Eli Zaretskii
  1 sibling, 1 reply; 33+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-12-24  5:34 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech wrote:

> Have the point moving to the top of the buffer should not
> really be considered an error. I agree that nil is not
> a very good choice. too

Well, Emacs is from 1976. People were thinking of it like
programmers. That's actually part of the appeal, even now.

In the user experience sense, it isn't an error, no.
People aren't computers, thanks heaven.

But luckily, this computer/programmer/user discrepancy, which
is unavoidable if one wants to have a common interface, this
particular situation is very easy to solve ... even/especially
with programming!

And the solution spells ... *drumroll* ...

debug-ignored-errors !

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24  5:27                 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2020-12-24  5:39                   ` Christopher Dimech
  2020-12-24  6:31                     ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 33+ messages in thread
From: Christopher Dimech @ 2020-12-24  5:39 UTC (permalink / raw)
  To: moasenwood; +Cc: help-gnu-emacs

What usually happens in that I make a mistake in my emacs init file and emacs complains.
If after loading emacs, I call (setq debug-on-error t), would the debug on the loading error
work?  Or would I need ho have (setq debug-on-error t) before emacs is called.


> Sent: Thursday, December 24, 2020 at 10:57 AM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech wrote:
>
> > Well, ideally it would be good to have an additional option
> > that puts debug-ignored-errors to how it was set
> > up initially.
>
> You can store it another variable before you change it, then
> use that to reset.
>
> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24  5:34                 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2020-12-24  5:44                   ` Christopher Dimech
  0 siblings, 0 replies; 33+ messages in thread
From: Christopher Dimech @ 2020-12-24  5:44 UTC (permalink / raw)
  To: moasenwood; +Cc: help-gnu-emacs

> Sent: Thursday, December 24, 2020 at 11:04 AM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech wrote:
>
> > Have the point moving to the top of the buffer should not
> > really be considered an error. I agree that nil is not
> > a very good choice. too
>
> Well, Emacs is from 1976. People were thinking of it like
> programmers. That's actually part of the appeal, even now.

Seems everything got started the same way.  From a fuckup. :)

> In the user experience sense, it isn't an error, no.
> People aren't computers, thanks heaven.

Wouldn't that make it even worse? :)

> But luckily, this computer/programmer/user discrepancy, which
> is unavoidable if one wants to have a common interface, this
> particular situation is very easy to solve ... even/especially
> with programming!
>
> And the solution spells ... *drumroll* ...
>
> debug-ignored-errors !

I really needed to think there.

> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24  5:39                   ` Christopher Dimech
@ 2020-12-24  6:31                     ` Emanuel Berg via Users list for the GNU Emacs text editor
  2020-12-24  6:48                       ` Christopher Dimech
  0 siblings, 1 reply; 33+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-12-24  6:31 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech wrote:

> What usually happens in that I make a mistake in my emacs
> init file and emacs complains. If after loading emacs,
> I call (setq debug-on-error t), would the debug on the
> loading error work? Or would I need ho have (setq
> debug-on-error t) before emacs is called.

I'm not following, sorry...

Correct the mistake without involving the debugger is what
I would do, anyway.

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24  6:31                     ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2020-12-24  6:48                       ` Christopher Dimech
  2020-12-24  8:10                         ` Michael Heerdegen
  0 siblings, 1 reply; 33+ messages in thread
From: Christopher Dimech @ 2020-12-24  6:48 UTC (permalink / raw)
  To: moasenwood; +Cc: help-gnu-emacs


> Sent: Thursday, December 24, 2020 at 12:01 PM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech wrote:
>
> > What usually happens in that I make a mistake in my emacs
> > init file and emacs complains. If after loading emacs,
> > I call (setq debug-on-error t), would the debug on the
> > loading error work? Or would I need ho have (setq
> > debug-on-error t) before emacs is called.
>
> I'm not following, sorry...

Suppose I run the command "emacs" on a terminal and there is a problem in my init file.

If I want to debug the error, could I enable (setq debug-on-error t) from emacs.
Or would I have to include (setq debug-on-error t) in my init file before calling
"emacs" on the terminal?


> Correct the mistake without involving the debugger is what
> I would do, anyway.

Or course, if one can.

> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24  6:48                       ` Christopher Dimech
@ 2020-12-24  8:10                         ` Michael Heerdegen
  2020-12-24  8:23                           ` Christopher Dimech
  0 siblings, 1 reply; 33+ messages in thread
From: Michael Heerdegen @ 2020-12-24  8:10 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech <dimech@gmx.com> writes:

> Or would I have to include (setq debug-on-error t) in my init file
> before calling "emacs" on the terminal?

Isn't `t' the default?

Michael.




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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24  8:10                         ` Michael Heerdegen
@ 2020-12-24  8:23                           ` Christopher Dimech
  2020-12-24 11:10                             ` Michael Heerdegen
  0 siblings, 1 reply; 33+ messages in thread
From: Christopher Dimech @ 2020-12-24  8:23 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: help-gnu-emacs

Its value is nil whan I do "emacs -Q".

> Sent: Thursday, December 24, 2020 at 1:40 PM
> From: "Michael Heerdegen" <michael_heerdegen@web.de>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech <dimech@gmx.com> writes:
>
> > Or would I have to include (setq debug-on-error t) in my init file
> > before calling "emacs" on the terminal?
>
> Isn't `t' the default?
>
> Michael.
>
>
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24  8:23                           ` Christopher Dimech
@ 2020-12-24 11:10                             ` Michael Heerdegen
  2020-12-24 11:28                               ` Christopher Dimech
  2020-12-24 11:29                               ` Christopher Dimech
  0 siblings, 2 replies; 33+ messages in thread
From: Michael Heerdegen @ 2020-12-24 11:10 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech <dimech@gmx.com> writes:

> Its value is nil whan I do "emacs -Q".

How did you test that?

Michael.




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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24 11:10                             ` Michael Heerdegen
@ 2020-12-24 11:28                               ` Christopher Dimech
  2020-12-24 11:29                               ` Christopher Dimech
  1 sibling, 0 replies; 33+ messages in thread
From: Christopher Dimech @ 2020-12-24 11:28 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: help-gnu-emacs

Using "C-h v"

> Sent: Thursday, December 24, 2020 at 4:40 PM
> From: "Michael Heerdegen" <michael_heerdegen@web.de>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech <dimech@gmx.com> writes:
>
> > Its value is nil whan I do "emacs -Q".
>
> How did you test that?
>
> Michael.
>
>
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24 11:10                             ` Michael Heerdegen
  2020-12-24 11:28                               ` Christopher Dimech
@ 2020-12-24 11:29                               ` Christopher Dimech
  2020-12-24 12:43                                 ` Michael Heerdegen
  1 sibling, 1 reply; 33+ messages in thread
From: Christopher Dimech @ 2020-12-24 11:29 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: help-gnu-emacs

Using "C-h v"

> Sent: Thursday, December 24, 2020 at 4:40 PM
> From: "Michael Heerdegen" <michael_heerdegen@web.de>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
>
> Christopher Dimech <dimech@gmx.com> writes:
>
> > Its value is nil whan I do "emacs -Q".
>
> How did you test that?
>
> Michael.
>
>
>



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24 11:29                               ` Christopher Dimech
@ 2020-12-24 12:43                                 ` Michael Heerdegen
  2020-12-24 16:35                                   ` Drew Adams
  0 siblings, 1 reply; 33+ messages in thread
From: Michael Heerdegen @ 2020-12-24 12:43 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech <dimech@gmx.com> writes:

> Using "C-h v"

Ah ok, I think I recall that the default value had been changed some
time ago.

Yes, you can set the variable at the beginning of your config file or
wherever you want, and reset it later if you want, at the end of your
file, or in `after-init-hook'.

Regards,

Michael.




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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24  4:58               ` Christopher Dimech
  2020-12-24  5:34                 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2020-12-24 14:24                 ` Eli Zaretskii
  1 sibling, 0 replies; 33+ messages in thread
From: Eli Zaretskii @ 2020-12-24 14:24 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Christopher Dimech <dimech@gmx.com>
> Date: Thu, 24 Dec 2020 05:58:55 +0100
> Cc: help-gnu-emacs@gnu.org
> 
> Have the point moving to the top of the buffer should not really be considered
> an error.

It isn't.  Trying to move _past_ that is.



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

* RE: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24 12:43                                 ` Michael Heerdegen
@ 2020-12-24 16:35                                   ` Drew Adams
  2020-12-25  4:21                                     ` Michael Heerdegen
  0 siblings, 1 reply; 33+ messages in thread
From: Drew Adams @ 2020-12-24 16:35 UTC (permalink / raw)
  To: Michael Heerdegen, help-gnu-emacs

> Ah ok, I think I recall that the default value had been changed some
> time ago.

Not sure what the discussion is about here, but
AFAIK, the default value of `debug-on-error' has
always been nil.



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

* Re: Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer)
  2020-12-24 16:35                                   ` Drew Adams
@ 2020-12-25  4:21                                     ` Michael Heerdegen
  0 siblings, 0 replies; 33+ messages in thread
From: Michael Heerdegen @ 2020-12-25  4:21 UTC (permalink / raw)
  To: help-gnu-emacs

Drew Adams <drew.adams@oracle.com> writes:

> [...] AFAIK, the default value of `debug-on-error' has always been
> nil.

Right, seems I remembered wrong.

Thanks,

Michael.




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

end of thread, other threads:[~2020-12-25  4:21 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-23 16:55 Info file in emacs.gives Lisp error: (beginning-of-buffer) (end-of-buffer) Christopher Dimech
2020-12-23 17:00 ` Drew Adams
2020-12-23 17:10   ` Christopher Dimech
2020-12-23 17:35     ` Eli Zaretskii
2020-12-23 17:40       ` Christopher Dimech
2020-12-23 17:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-23 17:13   ` Christopher Dimech
2020-12-23 17:18 ` Daniel Martín
2020-12-23 17:35   ` Christopher Dimech
2020-12-23 17:49     ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-23 17:56       ` Christopher Dimech
2020-12-23 18:49         ` Christopher Dimech
2020-12-23 18:52         ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-23 18:59           ` Christopher Dimech
2020-12-23 19:07             ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-24  4:55               ` Christopher Dimech
2020-12-24  5:27                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-24  5:39                   ` Christopher Dimech
2020-12-24  6:31                     ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-24  6:48                       ` Christopher Dimech
2020-12-24  8:10                         ` Michael Heerdegen
2020-12-24  8:23                           ` Christopher Dimech
2020-12-24 11:10                             ` Michael Heerdegen
2020-12-24 11:28                               ` Christopher Dimech
2020-12-24 11:29                               ` Christopher Dimech
2020-12-24 12:43                                 ` Michael Heerdegen
2020-12-24 16:35                                   ` Drew Adams
2020-12-25  4:21                                     ` Michael Heerdegen
2020-12-24  4:09             ` Michael Heerdegen
2020-12-24  4:58               ` Christopher Dimech
2020-12-24  5:34                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-24  5:44                   ` Christopher Dimech
2020-12-24 14:24                 ` Eli Zaretskii

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.