Gnus development mailing list
 help / color / mirror / Atom feed
From: George McNinch <gmcninch@gmail.com>
To: ding@gnus.org
Subject: message and electric-quote-mode
Date: Wed, 02 Sep 2015 21:18:03 -0400	[thread overview]
Message-ID: <82io7s47xw.fsf_-_@jobim-via-gmail.com> (raw)
In-Reply-To: <87twrlux2g.fsf@hillenius.net>


I think I'm first going to post this to the gnus-list, though perhaps it
belongs instead on emacs-devel?

If I compose a message using message-mode, and do

M-x electric-quote-mode

(so that electric-quote-mode is *enabled*)

then typing e.g. `` in the "text of the message" does nothing.

This is not the behavior I expected after reading the doc-string of
electric-quote-mode (because presumably the text of a message should be
a "text paragraph").

However, typing > and then ` two times results in a curved double quote,
as follows:

 > “

The seems to be because message-mode sets the value of the variable

comment-start

to

"> ".

(See the function

  electric-quote-post-self-insert-function

)

Indeed, if I do

  M-: (setq comment-start nil)

then typing `` results in the behavior expected when electric-quote-mode is
enabled (whether or not there is a preceding "> ").

Presumably this is "not (quite) the desired behavior", though I'm not
sure precisely what should change.

I guess I should say:

emacs-version ==> 25.0.50.15
message mode bundled with gnus-version 5.13

All the best,
george

-- 
   =---=   George McNinch <gmcninch(at)gmail.com>                        
   =---=   http://gmcninch.math.tufts.edu                             




  parent reply	other threads:[~2015-09-03  1:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-26 22:25 Local Mail Folders Lost? Aric Gregson
2015-08-27  5:20 ` Gijs Hillenius
2015-08-28 23:43   ` Aric Gregson
2015-08-29  6:48     ` Gijs Hillenius
2015-08-29 14:27       ` Dan Christensen
2015-08-29 23:34         ` Aric Gregson
2015-08-31  0:39           ` Dan Christensen
2015-08-29 23:30       ` Aric Gregson
2015-09-03  1:18   ` George McNinch [this message]
2015-09-03  3:24     ` message and electric-quote-mode Ernesto Alfonso
2015-08-31  0:32 ` Local Mail Folders Lost? Mike Kupfer

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=82io7s47xw.fsf_-_@jobim-via-gmail.com \
    --to=gmcninch@gmail.com \
    --cc=ding@gnus.org \
    /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.
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).