unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* emacs frontend and quote highlight
@ 2020-11-07 13:05 zimoun
  2021-08-02  2:03 ` David Bremner
  0 siblings, 1 reply; 5+ messages in thread
From: zimoun @ 2020-11-07 13:05 UTC (permalink / raw)
  To: notmuch

Dear,

(Please keep me CC since I do not subscribe to the mailing list.)

Thank you for this great tool.

I reading all the emails from GNU Guix project via the Emacs frontend of
Notmuch.  Sometimes, the patches are attached inline and something like
that happens:

--8<---------------cut here---------------start------------->8---
[..]
 ;;;
@@ -179,7 +180,7 @@ to call-with-database."
                                     make-device-nodes
                                     (wal-mode? #t)
                                     #:allow-other-keys)
-  "Initialize the given ROOT directory. Use BOOTCFG and BOOTCFG-LOCATION to
+  "Initialize the given ROOT directory.  Use BOOTCFG and BOOTCFG-LOCATION to
 install the bootloader configuration.

 If REGISTER-CLOSURES? is true, register REFERENCES-GRAPHS in the store.  If
@@ -187,6 +188,20 @@ DEDUPLICATE? is true, then also deduplicate files common
[..]
--8<---------------cut here---------------end--------------->8---

Therefore, all the highlighting of quotes is broken.  Because the
attached inline patch does not respect the open/close quote.  And worse
this misleading highlight is propagated to all the thread.

My questions are:

 - Is it possible to control the open/closing message per message?  Even
   when viewing all the thread.
 - Is it possible to globally turn off the highlight of quotes?

Thank you in advance for any comment or tips.

All the best,
simon

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

* Re: emacs frontend and quote highlight
  2020-11-07 13:05 emacs frontend and quote highlight zimoun
@ 2021-08-02  2:03 ` David Bremner
  2021-08-17 14:35   ` zimoun
  0 siblings, 1 reply; 5+ messages in thread
From: David Bremner @ 2021-08-02  2:03 UTC (permalink / raw)
  To: zimoun, notmuch

zimoun <zimon.toutoune@gmail.com> writes:
>
> Therefore, all the highlighting of quotes is broken.  Because the
> attached inline patch does not respect the open/close quote.  And worse
> this misleading highlight is propagated to all the thread.
>
> My questions are:
>
>  - Is it possible to control the open/closing message per message?  Even
>    when viewing all the thread.
>  - Is it possible to globally turn off the highlight of quotes?

I don't seem to have any highlighting of quotes. Is this a text/plain
part? If so, what is the value of notmuch-show-insert-text/plain-hook?

d

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

* Re: emacs frontend and quote highlight
  2021-08-02  2:03 ` David Bremner
@ 2021-08-17 14:35   ` zimoun
  2021-08-21 15:22     ` David Bremner
  0 siblings, 1 reply; 5+ messages in thread
From: zimoun @ 2021-08-17 14:35 UTC (permalink / raw)
  To: David Bremner, notmuch

Hi,

On Sun, 01 Aug 2021 at 23:03, David Bremner <david@tethera.net> wrote:
> zimoun <zimon.toutoune@gmail.com> writes:
>>
>> Therefore, all the highlighting of quotes is broken.  Because the
>> attached inline patch does not respect the open/close quote.  And worse
>> this misleading highlight is propagated to all the thread.
>>
>> My questions are:
>>
>>  - Is it possible to control the open/closing message per message?  Even
>>    when viewing all the thread.
>>  - Is it possible to globally turn off the highlight of quotes?
>
> I don't seem to have any highlighting of quotes. Is this a text/plain
> part? If so, what is the value of notmuch-show-insert-text/plain-hook?

The value is:

--8<---------------cut here---------------start------------->8---
notmuch-show-insert-text/plain-hook is a variable defined in ‘notmuch-show.el’.
Its value is
(notmuch-wash-wrap-long-lines notmuch-wash-tidy-citations notmuch-wash-elide-blank-lines notmuch-wash-excerpt-citations)

  This variable may be risky if used as a file-local variable.
  You can customize this variable.

Documentation:
Functions used to improve the display of text/plain parts.
--8<---------------cut here---------------end--------------->8---

Well, maybe I misconfigure something but if I open a quote " then all
the text after is highlighted until the next quote.  And sometime, this
next quote does not happen. :-)

All the best,
simon

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

* Re: emacs frontend and quote highlight
  2021-08-17 14:35   ` zimoun
@ 2021-08-21 15:22     ` David Bremner
  2021-09-21  7:05       ` zimoun
  0 siblings, 1 reply; 5+ messages in thread
From: David Bremner @ 2021-08-21 15:22 UTC (permalink / raw)
  To: zimoun, notmuch

zimoun <zimon.toutoune@gmail.com> writes:

> The value is:
>
> --8<---------------cut here---------------start------------->8---
> notmuch-show-insert-text/plain-hook is a variable defined in ‘notmuch-show.el’.
> Its value is
> (notmuch-wash-wrap-long-lines notmuch-wash-tidy-citations notmuch-wash-elide-blank-lines notmuch-wash-excerpt-citations)

I tried with this value, and still could not duplicate the problem.

> Well, maybe I misconfigure something but if I open a quote " then all
> the text after is highlighted until the next quote.  And sometime, this
> next quote does not happen. :-)

I wonder of this is some other minor mode you have enabled. Can you try
with a minimal configuration of emacs, using e.g. emacs -q and manually
loading notmuch? There is a script devel/try-emacs-mua in the notmuch
source that can make this easier.

d

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

* Re: emacs frontend and quote highlight
  2021-08-21 15:22     ` David Bremner
@ 2021-09-21  7:05       ` zimoun
  0 siblings, 0 replies; 5+ messages in thread
From: zimoun @ 2021-09-21  7:05 UTC (permalink / raw)
  To: David Bremner, notmuch

Hi David,

On Sat, 21 Aug 2021 at 08:22, David Bremner <david@tethera.net> wrote:
> zimoun <zimon.toutoune@gmail.com> writes:

> I tried with this value, and still could not duplicate the problem.
>
>> Well, maybe I misconfigure something but if I open a quote " then all
>> the text after is highlighted until the next quote.  And sometime, this
>> next quote does not happen. :-)
>
> I wonder of this is some other minor mode you have enabled. Can you try
> with a minimal configuration of emacs, using e.g. emacs -q and manually
> loading notmuch? There is a script devel/try-emacs-mua in the notmuch
> source that can make this easier.

Indeed, it comes from ’font-lock-mode’, IIUC.

My questions was:

 1) Is it possible to control the open/closing message per message?  Even
   when viewing all the thread.
 2) Is it possible to globally turn off the highlight of quotes?

Therefore, ’font-lock-mode’ answers to #2. :-)

About #1, I simply switch to the tree view; for now, it is enough for my
needs.  I will invest energy when I need more. :-)

Thanks for the help.


Cheers,
simon

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

end of thread, other threads:[~2021-09-21  7:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-07 13:05 emacs frontend and quote highlight zimoun
2021-08-02  2:03 ` David Bremner
2021-08-17 14:35   ` zimoun
2021-08-21 15:22     ` David Bremner
2021-09-21  7:05       ` zimoun

Code repositories for project(s) associated with this inbox:

	notmuch.git.git (no URL configured)

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 NNTP newsgroup(s).