unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Identifying initialization error after invalid read syntax: ?
@ 2022-06-10  4:21 goncholden via Users list for the GNU Emacs text editor
  2022-06-10 10:18 ` Michael Heerdegen
  0 siblings, 1 reply; 3+ messages in thread
From: goncholden via Users list for the GNU Emacs text editor @ 2022-06-10  4:21 UTC (permalink / raw)
  To: goncholden via Users list for the GNU Emacs text editor

How can I identify the problem emanating from the following initialization error?

Warning (initialization): An error occurred while loading ‘/home/hagbard/.emacs’:

Invalid read syntax: ?

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

* Re: Identifying initialization error after invalid read syntax: ?
  2022-06-10  4:21 Identifying initialization error after invalid read syntax: ? goncholden via Users list for the GNU Emacs text editor
@ 2022-06-10 10:18 ` Michael Heerdegen
  2022-06-10 16:40   ` Tassilo Horn
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Heerdegen @ 2022-06-10 10:18 UTC (permalink / raw)
  To: help-gnu-emacs

goncholden via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> How can I identify the problem emanating from the following
> initialization error?
>
> Warning (initialization): An error occurred while loading
> ‘/home/hagbard/.emacs’:
>
> Invalid read syntax: ?

Explicitly loading the file (e.g. with L from dired) tells you the exact
column and line numbers of the problem.  Byte compiling also helps (as
most of the time).

Please see my answer in the "visible-whitespace-mode" thread for the
cause.

Michael.




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

* Re: Identifying initialization error after invalid read syntax: ?
  2022-06-10 10:18 ` Michael Heerdegen
@ 2022-06-10 16:40   ` Tassilo Horn
  0 siblings, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2022-06-10 16:40 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: help-gnu-emacs

Michael Heerdegen <michael_heerdegen@web.de> writes:

>> How can I identify the problem emanating from the following
>> initialization error?
>>
>> Warning (initialization): An error occurred while loading
>> ‘/home/hagbard/.emacs’:
>>
>> Invalid read syntax: ?
>
> Explicitly loading the file (e.g. with L from dired) tells you the
> exact column and line numbers of the problem.  Byte compiling also
> helps (as most of the time).

In addition, starting emacs with --debug-init might also shed some
light.

Bye,
Tassilo



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

end of thread, other threads:[~2022-06-10 16:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-10  4:21 Identifying initialization error after invalid read syntax: ? goncholden via Users list for the GNU Emacs text editor
2022-06-10 10:18 ` Michael Heerdegen
2022-06-10 16:40   ` Tassilo Horn

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