From: Philipp Stephani <p.stephani2@gmail.com>
To: Philip Kaludercic <philipk@posteo.net>
Cc: 47879@debbugs.gnu.org
Subject: bug#47879: [PATCH] Ignore mode hooks when analysing diffs
Date: Sun, 18 Apr 2021 22:18:29 +0200 [thread overview]
Message-ID: <CAArVCkSuWwOxi2YU+RgqQYxq2n2LCQV_74-xq-rmCDyTEkyCCw@mail.gmail.com> (raw)
In-Reply-To: <878s5fpg1a.fsf@posteo.net>
Am So., 18. Apr. 2021 um 21:09 Uhr schrieb Philip Kaludercic
<philipk@posteo.net>:
>
>
> This fixes a bug related to log-edit-generate-changelog-from-diff.
>
> When I tried to invoke this command in a commit buffer, the error
>
> signal: Unmatched bracket or quote
>
> was raised. The reason was that I added paredit-mode to
> emacs-lisp-mode-hook, that when invoked calls check-parens. This raises
> an error when the diff contains a partial s-expression, which is almost
> always the case.
I have the following in my emacs-lisp-mode-hook:
(with-demoted-errors "Error enabling Paredit: %s" (paredit-mode))
Enabling Paredit unconditionally is too invasive; it will also break
file visiting if the file has a syntax error.
Alternatively, bind paredit-override-check-parens-function to e.g.
(lambda (_) t).
prev parent reply other threads:[~2021-04-18 20:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-18 19:08 bug#47879: [PATCH] Ignore mode hooks when analysing diffs Philip Kaludercic
2021-04-18 19:25 ` Eli Zaretskii
2021-04-18 20:08 ` Philip Kaludercic
2021-04-21 14:12 ` Stefan Kangas
2021-04-21 14:23 ` Eli Zaretskii
2021-04-21 14:36 ` Philip Kaludercic
2021-04-21 14:45 ` Stefan Kangas
2021-04-21 14:52 ` Philip Kaludercic
2021-05-03 10:28 ` Lars Ingebrigtsen
2021-04-18 20:18 ` Philipp Stephani [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAArVCkSuWwOxi2YU+RgqQYxq2n2LCQV_74-xq-rmCDyTEkyCCw@mail.gmail.com \
--to=p.stephani2@gmail.com \
--cc=47879@debbugs.gnu.org \
--cc=philipk@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.