all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Glenn Morris <rgm@gnu.org>, 21588-done@debbugs.gnu.org
Cc: Alan Mackenzie <acm@muc.de>, Paul Eggert <eggert@cs.ucla.edu>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#21588: 25.0.50: Single quotes becoming curvy quotes in message function
Date: Tue, 29 Sep 2015 21:05:01 -0400	[thread overview]
Message-ID: <CAFyQvY0oRvSan66GXtVDneTAhrZmGutDysprjAYfrTF_fDt7Ow@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY3WYzjXYo=dXGq1yNn1sgoZHz9CQKdO_YnC=_uRQUp_Cg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2940 bytes --]

Hi Glenn,

Can you please re-open this bug if the below argument makes sense?

It doesn't feel right that (message "'Hey'") gets displayed as ’Hey’. The
display looks "buggy" with the default value of text-quoting-style. A user
shouldn't be perplexed with that kind of display in an emacs -Q session. It
just feels wrong.

It would make more sense to have the default value of text-quoting-style as
'grave. That way, (message "'Hey'") prints 'Hey' and (message "`Hey'")
prints `Hey'; there are not surprises.

If we really want the curved quotes rendering, 'Hey' should NOT be rendered
as ’Hey’. It might be fine to render `Hey' as ‘Hey’. But having the default
setup render a common string like 'Hey' with identical curved quotes just
looks wrong.


Please review and reconsider based on the output given by the elisp snippet
in my previous email.

IMO, we are missing a "middle ground" option where if text-quoting-style is
set to 'middle-ground, (message "'Hey'") would yield 'Hey' (preserved
apostrophes) and (message "`Hey'") would give ‘Hey’ (balanced curved
quotes).

If the middle-ground option is decided to not be added, then fine. But
please don't have the unbalanced curved quotes ’Hey’ as the default.

I ended up opening this bug report after having quite a few emacs packages
print stuff with unbalanced curved quotes and that hit my OCD bar.



--
Kaushal Modi

On Tue, Sep 29, 2015 at 6:54 PM, Kaushal Modi <kaushal.modi@gmail.com>
wrote:

> Thanks for the reply.
>
> Among all the noise about curved quotes, I missed out the discussion about
> text-quoting-style. I started paying attention to that only recently when
> Paul reverted curved quote stuff in the documentation.
>
> I should have looked at NEWS; sorry about that.
>
> I got my answer; I need to set text-quoting-style to 'straight.
>
> For reference,
>
> (progn
>   (message "text-quoting-style = default")
>   (let ((text-quoting-style))
>     (message "'Hey'")
>     (message "`Hey'"))
>   (message "text-quoting-style = curve")
>   (let ((text-quoting-style 'curve))
>     (message "'Hey'")
>     (message "`Hey'"))
>   (message "text-quoting-style = straight")
>   (let ((text-quoting-style 'straight))
>     (message "'Hey'")
>     (message "`Hey'"))
>   (message "text-quoting-style = grave")
>   (let ((text-quoting-style 'grave))
>     (message "'Hey'")
>     (message "`Hey'")))
>
> gives
>
>
> text-quoting-style = default
> ’Hey’
> ‘Hey’
> text-quoting-style = curve
> ’Hey’
> ‘Hey’
> text-quoting-style = straight
> 'Hey' [2 times]
> text-quoting-style = grave
> 'Hey'
> `Hey'
>
>
>
>
>
>
> --
> Kaushal Modi
>
> On Tue, Sep 29, 2015 at 5:32 PM, Glenn Morris <rgm@gnu.org> wrote:
>
>>
>> This has been discussed to death and is documented in NEWS.
>> I'm not sure what else there could be left to say.
>>
>
>

[-- Attachment #2: Type: text/html, Size: 8305 bytes --]

  reply	other threads:[~2015-09-30  1:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-29 21:17 bug#21588: 25.0.50: Single quotes becoming curvy quotes in message function Kaushal Modi
2015-09-29 21:32 ` Glenn Morris
2015-09-29 22:54   ` Kaushal Modi
2015-09-30  1:05     ` Kaushal Modi [this message]
2015-09-30 22:40       ` Paul Eggert
2015-10-01  3:54         ` Kaushal Modi
2015-10-02  6:51           ` Paul Eggert
2015-10-02 16:50             ` Kaushal Modi
2015-09-30 21:10 ` Drew Adams

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=CAFyQvY0oRvSan66GXtVDneTAhrZmGutDysprjAYfrTF_fDt7Ow@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=21588-done@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=eggert@cs.ucla.edu \
    --cc=monnier@iro.umontreal.ca \
    --cc=rgm@gnu.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.
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.