unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Undebuggable error in .emacs
@ 2013-07-12 14:32 Michal Sojka
  2013-07-16 13:36 ` Kevin Rodgers
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Sojka @ 2013-07-12 14:32 UTC (permalink / raw)
  To: Emacs mailing list

Hi all,

I experience strange behavior of my emacs that looks like an emacs bug.
My emacs is GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
of 2013-04-13 on trouble, modified by Debian.

After upgrading the org-mode to the latest version (8.0.6) and starting
emacs, I get this well known message:

    Warning (initialization): An error occurred while loading `/home/wsh/.emacs':

    End of file during parsing: /home/wsh/.emacs

    To ensure normal operation, you should investigate and remove the
    cause of the error in your initialization file.  Start Emacs with
    the `--debug-init' option to view a complete error backtrace.

When I run `emacs --debug-init', no error is detected and emacs starts
without executing the most of my .emacs. By trying to comment out
various parts of my (huge) .emacs, I figured out that commenting the
following line prevents the error. The line in question is:

    (setq notmuch-wash-original-regexp "^\\(--+\s?\\([oO]riginal [mM]essage\\|Messaggio Originale\\)\s?--+\s*\\|\s*_____*\s*\n\n\\(Da:\\|Von:\\) .*\\)$"

The interesting thing is that this line has nothing to do with org-mode.
It configures behavior of the notmuch email client.

Does anybody know how to allow having the above line in my .emacs?

Thanks,
-Michal



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

* Re: Undebuggable error in .emacs
       [not found] <mailman.938.1373639533.12400.help-gnu-emacs@gnu.org>
@ 2013-07-12 16:29 ` Barry Margolin
  0 siblings, 0 replies; 4+ messages in thread
From: Barry Margolin @ 2013-07-12 16:29 UTC (permalink / raw)
  To: help-gnu-emacs

In article <mailman.938.1373639533.12400.help-gnu-emacs@gnu.org>,
 Michal Sojka <sojkam1@fel.cvut.cz> wrote:

> Hi all,
> 
> I experience strange behavior of my emacs that looks like an emacs bug.
> My emacs is GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
> of 2013-04-13 on trouble, modified by Debian.
> 
> After upgrading the org-mode to the latest version (8.0.6) and starting
> emacs, I get this well known message:
> 
>     Warning (initialization): An error occurred while loading 
>     `/home/wsh/.emacs':
> 
>     End of file during parsing: /home/wsh/.emacs
> 
>     To ensure normal operation, you should investigate and remove the
>     cause of the error in your initialization file.  Start Emacs with
>     the `--debug-init' option to view a complete error backtrace.
> 
> When I run `emacs --debug-init', no error is detected and emacs starts
> without executing the most of my .emacs. By trying to comment out
> various parts of my (huge) .emacs, I figured out that commenting the
> following line prevents the error. The line in question is:
> 
>     (setq notmuch-wash-original-regexp "^\\(--+\s?\\([oO]riginal 
>     [mM]essage\\|Messaggio 
>     Originale\\)\s?--+\s*\\|\s*_____*\s*\n\n\\(Da:\\|Von:\\) .*\\)$"
> 
> The interesting thing is that this line has nothing to do with org-mode.
> It configures behavior of the notmuch email client.
> 
> Does anybody know how to allow having the above line in my .emacs?

That line is missing a close parenthesis at the end. Add it.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


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

* Re: Undebuggable error in .emacs
  2013-07-12 14:32 Undebuggable error in .emacs Michal Sojka
@ 2013-07-16 13:36 ` Kevin Rodgers
  2013-07-22 10:15   ` Michal Sojka
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Rodgers @ 2013-07-16 13:36 UTC (permalink / raw)
  To: help-gnu-emacs

On 7/12/13 8:32 AM, Michal Sojka wrote:
...
> When I run `emacs --debug-init', no error is detected and emacs starts
> without executing the most of my .emacs. By trying to comment out
> various parts of my (huge) .emacs, I figured out that commenting the
> following line prevents the error. The line in question is:
>
>      (setq notmuch-wash-original-regexp "^\\(--+\s?\\([oO]riginal [mM]essage\\|Messaggio Originale\\)\s?--+\s*\\|\s*_____*\s*\n\n\\(Da:\\|Von:\\) .*\\)$"
>
> The interesting thing is that this line has nothing to do with org-mode.
> It configures behavior of the notmuch email client.
>
> Does anybody know how to allow having the above line in my .emacs?

Close the unbalanced open parenthesis: (setq notmuch-wash-original-regexp "...")
                                                                                ^

-- 
Kevin Rodgers
Denver, Colorado, USA




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

* Re: Undebuggable error in .emacs
  2013-07-16 13:36 ` Kevin Rodgers
@ 2013-07-22 10:15   ` Michal Sojka
  0 siblings, 0 replies; 4+ messages in thread
From: Michal Sojka @ 2013-07-22 10:15 UTC (permalink / raw)
  To: Kevin Rodgers, help-gnu-emacs

Hi Kevin,

On Tue, Jul 16 2013, Kevin Rodgers wrote:
> On 7/12/13 8:32 AM, Michal Sojka wrote:
> ...
>> When I run `emacs --debug-init', no error is detected and emacs starts
>> without executing the most of my .emacs. By trying to comment out
>> various parts of my (huge) .emacs, I figured out that commenting the
>> following line prevents the error. The line in question is:
>>
>>      (setq notmuch-wash-original-regexp "^\\(--+\s?\\([oO]riginal [mM]essage\\|Messaggio Originale\\)\s?--+\s*\\|\s*_____*\s*\n\n\\(Da:\\|Von:\\) .*\\)$"
>>
>> The interesting thing is that this line has nothing to do with org-mode.
>> It configures behavior of the notmuch email client.
>>
>> Does anybody know how to allow having the above line in my .emacs?
>
> Close the unbalanced open parenthesis: (setq notmuch-wash-original-regexp "...")

Thanks for your reply. I have the parenthesis on the next line and I
forgot to include it in my email. But I figured out that I have a
missing closing parenthesis at another place. I discovered this with
emacs compiled from bzr repo -- this version complained about parse
error.

Cheers,
-Michal



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

end of thread, other threads:[~2013-07-22 10:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-12 14:32 Undebuggable error in .emacs Michal Sojka
2013-07-16 13:36 ` Kevin Rodgers
2013-07-22 10:15   ` Michal Sojka
     [not found] <mailman.938.1373639533.12400.help-gnu-emacs@gnu.org>
2013-07-12 16:29 ` Barry Margolin

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