all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* debugging odd startup message
@ 2018-06-15 20:13 Perry E. Metzger
  2018-06-15 21:35 ` Joost Kremers
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Perry E. Metzger @ 2018-06-15 20:13 UTC (permalink / raw)
  To: emacs-devel

On emacs startup, I'm getting this message:

Warning (bytecomp): Use ‘with-current-buffer’ rather than save-excursion+set-buffer
Warning (bytecomp): ‘next-line’ is for interactive use only; use ‘forward-line’ instead.

Not sure how to figure out exactly where this is happening -- I'm
guessing some file I'm loading, but I'm unsure. I'm not
running bytecomp on startup, which also makes the error a bit odd.

Anyway, if anyone can give me suggestions on how to figure out how to
pin down what's causing this so I can fix it, I'd appreciate it.

-- 
Perry E. Metzger		perry@piermont.com



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

* Re: debugging odd startup message
  2018-06-15 20:13 debugging odd startup message Perry E. Metzger
@ 2018-06-15 21:35 ` Joost Kremers
  2018-06-15 22:46   ` Perry E. Metzger
  2018-06-15 21:48 ` Stefan Monnier
  2018-06-15 21:54 ` Noam Postavsky
  2 siblings, 1 reply; 7+ messages in thread
From: Joost Kremers @ 2018-06-15 21:35 UTC (permalink / raw)
  To: Perry E. Metzger; +Cc: emacs-devel


On Fri, Jun 15 2018, Perry E. Metzger wrote:
> On emacs startup, I'm getting this message:
>
> Warning (bytecomp): Use ‘with-current-buffer’ rather than 
> save-excursion+set-buffer
> Warning (bytecomp): ‘next-line’ is for interactive use only; use 
> ‘forward-line’ instead.
>
> Not sure how to figure out exactly where this is happening -- 
> I'm
> guessing some file I'm loading, but I'm unsure. I'm not
> running bytecomp on startup, which also makes the error a bit 
> odd.
>
> Anyway, if anyone can give me suggestions on how to figure out 
> how to
> pin down what's causing this so I can fix it, I'd appreciate it.

First thing I'd do is check the *Messages* buffer (C-h e). You 
should find the errors there as well, but sometimes the *Messages* 
buffer also tells you which file produced the error.

Otherwise, comment out any files you're loading in your init file 
one by one and see which one produces the error.

-- 
Joost Kremers
Life has its moments



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

* Re: debugging odd startup message
  2018-06-15 20:13 debugging odd startup message Perry E. Metzger
  2018-06-15 21:35 ` Joost Kremers
@ 2018-06-15 21:48 ` Stefan Monnier
  2018-06-15 21:54 ` Noam Postavsky
  2 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2018-06-15 21:48 UTC (permalink / raw)
  To: emacs-devel

"Perry E. Metzger" <perry@piermont.com> writes:

> On emacs startup, I'm getting this message:
>
> Warning (bytecomp): Use ‘with-current-buffer’ rather than save-excursion+set-buffer
> Warning (bytecomp): ‘next-line’ is for interactive use only; use ‘forward-line’ instead.
>
> Not sure how to figure out exactly where this is happening -- I'm
> guessing some file I'm loading, but I'm unsure. I'm not
> running bytecomp on startup, which also makes the error a bit odd.
>
> Anyway, if anyone can give me suggestions on how to figure out how to
> pin down what's causing this so I can fix it, I'd appreciate it.

You can add something like

    (trace-function 'byte-compile)

at the beginning of your ~/.emacs file.  Or alternatively something like

    (debug-on-entry 'byte-compile)

might give you more information.


        Stefan




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

* Re: debugging odd startup message
  2018-06-15 20:13 debugging odd startup message Perry E. Metzger
  2018-06-15 21:35 ` Joost Kremers
  2018-06-15 21:48 ` Stefan Monnier
@ 2018-06-15 21:54 ` Noam Postavsky
  2018-06-15 22:43   ` Perry E. Metzger
  2 siblings, 1 reply; 7+ messages in thread
From: Noam Postavsky @ 2018-06-15 21:54 UTC (permalink / raw)
  To: Perry E. Metzger; +Cc: Emacs developers

On 15 June 2018 at 16:13, Perry E. Metzger <perry@piermont.com> wrote:
> On emacs startup, I'm getting this message:
>
> Warning (bytecomp): Use ‘with-current-buffer’ rather than save-excursion+set-buffer
> Warning (bytecomp): ‘next-line’ is for interactive use only; use ‘forward-line’ instead.

It's a warning inside some defadvice, I think. You can get a better
message (i.e., with filename) by setting after-init-time to non-nil.

Previous occurrence:

https://lists.gnu.org/archive/html/emacs-devel/2017-01/msg00290.html
https://lists.gnu.org/archive/html/emacs-devel/2017-02/msg00625.html



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

* Re: debugging odd startup message
  2018-06-15 21:54 ` Noam Postavsky
@ 2018-06-15 22:43   ` Perry E. Metzger
  2018-06-16  0:59     ` Perry E. Metzger
  0 siblings, 1 reply; 7+ messages in thread
From: Perry E. Metzger @ 2018-06-15 22:43 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: Emacs developers

On Fri, 15 Jun 2018 17:54:57 -0400 Noam Postavsky
<npostavs@gmail.com> wrote:
> On 15 June 2018 at 16:13, Perry E. Metzger <perry@piermont.com>
> wrote:
> > On emacs startup, I'm getting this message:
> >
> > Warning (bytecomp): Use ‘with-current-buffer’ rather than
> > save-excursion+set-buffer Warning (bytecomp): ‘next-line’ is for
> > interactive use only; use ‘forward-line’ instead.  
> 
> It's a warning inside some defadvice, I think. You can get a better
> message (i.e., with filename) by setting after-init-time to non-nil.

So, this is the crazy thing, if I run:

emacs -q --eval '(setq after-init-time nil)' -l ~/.emacs

the error message vanishes entirely. Nothing goes wrong at all.

This is a giant WTF to me.

Perry
-- 
Perry E. Metzger		perry@piermont.com



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

* Re: debugging odd startup message
  2018-06-15 21:35 ` Joost Kremers
@ 2018-06-15 22:46   ` Perry E. Metzger
  0 siblings, 0 replies; 7+ messages in thread
From: Perry E. Metzger @ 2018-06-15 22:46 UTC (permalink / raw)
  To: Joost Kremers; +Cc: emacs-devel

On Fri, 15 Jun 2018 23:35:41 +0200 Joost Kremers
<joostkremers@fastmail.fm> wrote:
> On Fri, Jun 15 2018, Perry E. Metzger wrote:
> > On emacs startup, I'm getting this message:
> >
> > Warning (bytecomp): Use ‘with-current-buffer’ rather than 
> > save-excursion+set-buffer
> > Warning (bytecomp): ‘next-line’ is for interactive use only; use 
> > ‘forward-line’ instead.

> First thing I'd do is check the *Messages* buffer (C-h e). You 
> should find the errors there as well, but sometimes the *Messages* 
> buffer also tells you which file produced the error.
> 
> Otherwise, comment out any files you're loading in your init file 
> one by one and see which one produces the error.

I have narrowed this down to a single file being loaded, which has
neither "with-current-buffer" or "next-line" in it.

I have to admit to being very very confused. :(

-- 
Perry E. Metzger		perry@piermont.com



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

* Re: debugging odd startup message
  2018-06-15 22:43   ` Perry E. Metzger
@ 2018-06-16  0:59     ` Perry E. Metzger
  0 siblings, 0 replies; 7+ messages in thread
From: Perry E. Metzger @ 2018-06-16  0:59 UTC (permalink / raw)
  To: Emacs developers

On Fri, 15 Jun 2018 18:43:56 -0400 "Perry E. Metzger"
<perry@piermont.com> wrote:
> So, this is the crazy thing, if I run:
> 
> emacs -q --eval '(setq after-init-time nil)' -l ~/.emacs
> 
> the error message vanishes entirely. Nothing goes wrong at all.
> 
> This is a giant WTF to me.

I blew away my elpa directory, reinstalled all my packages, and now
the error has gone away. I have no explanation for any of this, but I
suppose for the moment my problem is gone.

Perry
-- 
Perry E. Metzger		perry@piermont.com



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

end of thread, other threads:[~2018-06-16  0:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-15 20:13 debugging odd startup message Perry E. Metzger
2018-06-15 21:35 ` Joost Kremers
2018-06-15 22:46   ` Perry E. Metzger
2018-06-15 21:48 ` Stefan Monnier
2018-06-15 21:54 ` Noam Postavsky
2018-06-15 22:43   ` Perry E. Metzger
2018-06-16  0:59     ` Perry E. Metzger

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.