From: Ivan Shmakov <ivan@siamics.net>
To: emacs-devel@gnu.org, Dmitry Gutov <dgutov@yandex.ru>,
Paul Eggert <eggert@cs.ucla.edu>,
20385@debbugs.gnu.org
Subject: missing charset for non-ASCII text/x-patch MIME parts in Thunderbird
Date: Thu, 14 May 2015 07:10:50 +0000 [thread overview]
Message-ID: <87h9rfiqh1.fsf_-_@violet.siamics.net> (raw)
In-Reply-To: <5553D12F.7000809@yandex.ru> (Dmitry Gutov's message of "Thu, 14 May 2015 01:33:19 +0300")
[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]
>>>>> Dmitry Gutov <dgutov@yandex.ru> writes:
[Moving to emacs-devel@ as the issue at hand is not exactly
related to #20385.]
[…]
> For some reason still unclear to me (I have English locale and
> language set everywhere I can see), it displays a group of cyrillic
> characters (тАШ) instead of the fancy quotes. Which will complicate
> reading small patches somewhat (ones I wouldn't open in an external
> program otherwise).
As I’ve pointed earlier [1], Thunderbird (on the /sending/ side)
for some reason chooses /not/ to file the ‘charset’
Content-Type: field for text/x-patch MIME parts. In the absence
of the explicitly-stated encoding, the receiving side may resort
to guessing, or (if the buffer model so allows, and Emacs’
/does/) may simply leave the content undecoded (as in:
raw-text.)
I presume this issue (the one of /not/ including the ‘charset’)
is specific to Thunderbird. As an example, please look at a
fragment of the original patch thus MIMEd from Gnus.
[1] news:878ud0k8qh.fsf_-_@violet.siamics.net
http://debbugs.gnu.org/20499#108
--
FSF associate member #7257 http://am-1.org/~ivan/ … 3013 B6A0 230E 334A
[-- Attachment #2: 0001-Support-curved-quotes-in-doc-strings.patch --]
[-- Type: text/x-patch, Size: 2822 bytes --]
From eb392195ffdb108228c981f92ca8b5766afdcff9 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Wed, 13 May 2015 00:10:00 -0700
Subject: [PATCH] Support curved quotes in doc strings
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Emacs's traditional doc string style has been to quote symbols
`like this'. This worked well on now-obsolete terminals where
` and ' were symmetric quotes, but nowadays curved quotes
‘like this’ look better. Support quoting the new way too.
(Bug#20385)
* doc/lispref/tips.texi (Documentation Tips): Symbols can be quoted
‘like-this’ as well as `like-this'.
* etc/NEWS: Mention this.
* lisp/cedet/srecode/texi.el (srecode-texi-texify-docstring):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
(lisp-cl-font-lock-keywords-2):
* lisp/finder.el (finder-font-lock-keywords):
* lisp/gnus/gnus-art.el (gnus-button-alist):
* lisp/help-mode.el (help-xref-symbol-regexp)
(help-xref-info-regexp, help-xref-url-regexp):
* lisp/international/mule-cmds.el (help-xref-mule-regexp-template):
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
Add "‘" and "’" to electric-pair-text-pairs.
(elisp--form-quoted-p): Also allow "‘" as a quoting char.
(elisp-completion-at-point, elisp--preceding-sexp):
Also treat "‘" and "’" as quoting chars.
* lisp/wid-edit.el (widget-documentation-link-regexp):
Parse symbols quoted ‘like-this’ as well as `like-this'.
---
doc/lispref/tips.texi | 33 ++++++++++++++++++---------------
etc/NEWS | 4 ++++
lisp/cedet/srecode/texi.el | 2 +-
lisp/emacs-lisp/checkdoc.el | 5 +++--
lisp/emacs-lisp/lisp-mode.el | 8 ++++----
lisp/finder.el | 2 +-
lisp/gnus/gnus-art.el | 8 ++++----
lisp/help-mode.el | 7 ++++---
lisp/international/mule-cmds.el | 2 +-
lisp/progmodes/elisp-mode.el | 24 +++++++++++++-----------
lisp/wid-edit.el | 2 +-
11 files changed, 54 insertions(+), 43 deletions(-)
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi
index cc1f0e4..912d746 100644
…
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 0a95783..dac3b1e 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -2863,7 +2863,7 @@ The following properties have special meanings for this widget:
:type 'boolean
:group 'widget-documentation)
-(defcustom widget-documentation-link-regexp "`\\([^\n`' ]+\\)'"
+(defcustom widget-documentation-link-regexp "[`‘]\\([^\n `'‘’]+\\)['’]"
"Regexp for matching potential links in documentation strings.
The first group should be the link itself."
:type 'regexp
--
2.1.0
next prev parent reply other threads:[~2015-05-14 7:10 UTC|newest]
Thread overview: 102+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-20 18:39 bug#20385: [PROPOSED PATCH] Support quoting 'like this' in doc strings Paul Eggert
2015-04-20 19:37 ` Stefan Monnier
2015-04-21 0:18 ` Paul Eggert
2015-04-21 0:53 ` Drew Adams
2015-04-21 1:14 ` Stefan Monnier
2015-04-21 1:30 ` Drew Adams
2015-04-21 1:58 ` Stefan Monnier
2015-04-21 3:45 ` Paul Eggert
2015-04-21 14:52 ` Eli Zaretskii
2015-04-21 18:04 ` Stefan Monnier
2015-04-21 18:25 ` Eli Zaretskii
2015-04-21 19:34 ` Stefan Monnier
2015-04-21 19:50 ` Eli Zaretskii
2015-04-21 20:01 ` Dmitry Gutov
2015-04-22 7:00 ` Eli Zaretskii
2015-04-22 13:52 ` Drew Adams
2015-04-22 13:59 ` Nicolas Petton
2015-04-22 14:52 ` Drew Adams
2015-04-22 23:36 ` Paul Eggert
2015-04-23 0:23 ` Nicolas Petton
2015-04-23 6:45 ` Paul Eggert
2015-04-23 9:14 ` Nicolas Petton
2015-04-23 10:22 ` Paul Eggert
2015-04-23 11:15 ` Nicolas Petton
2015-04-23 17:32 ` Paul Eggert
2015-04-23 18:23 ` Drew Adams
2015-04-23 19:38 ` Paul Eggert
2015-04-23 20:07 ` Drew Adams
2015-04-23 20:12 ` Eli Zaretskii
2015-04-23 23:24 ` Paul Eggert
2015-04-24 0:24 ` Drew Adams
2015-04-24 4:47 ` Paul Eggert
2015-04-23 19:47 ` Nicolas Petton
2015-04-23 19:57 ` Dmitry Gutov
2015-04-23 2:19 ` Drew Adams
2015-04-23 6:45 ` Paul Eggert
2015-04-23 14:51 ` Drew Adams
2015-04-23 15:32 ` Drew Adams
2015-04-23 17:11 ` Paul Eggert
2015-04-23 19:55 ` Dmitry Gutov
2015-04-23 20:03 ` Eli Zaretskii
2015-04-23 20:13 ` Drew Adams
2015-04-24 6:11 ` Eli Zaretskii
2015-04-24 3:04 ` Dmitry Gutov
2015-04-24 6:46 ` Eli Zaretskii
2015-04-24 13:43 ` Artur Malabarba
2015-04-21 18:44 ` Nicolas Petton
2015-04-21 20:30 ` Stefan Monnier
2015-04-22 0:49 ` Paul Eggert
2015-04-22 23:37 ` Paul Eggert
2015-04-23 6:30 ` Eli Zaretskii
2015-04-21 18:35 ` Ivan Shmakov
2015-04-21 18:42 ` Eli Zaretskii
2015-04-21 19:37 ` Ivan Shmakov
2015-04-21 19:52 ` Eli Zaretskii
[not found] ` <mailman.1406.1429745828.904.bug-gnu-emacs@gnu.org>
2015-04-23 12:11 ` Alan Mackenzie
2015-04-23 12:35 ` Eli Zaretskii
2015-04-23 12:45 ` Alan Mackenzie
2015-04-23 13:06 ` Eli Zaretskii
[not found] ` <mailman.1407.1429745888.904.bug-gnu-emacs@gnu.org>
2015-04-23 12:27 ` Alan Mackenzie
2015-04-23 19:42 ` Paul Eggert
2015-05-13 7:30 ` bug#20385: [PATCH] Support curved quotes " Paul Eggert
2015-05-13 12:16 ` Dmitry Gutov
2015-05-13 15:13 ` Paul Eggert
2015-05-13 22:33 ` Dmitry Gutov
2015-05-14 3:24 ` Paul Eggert
2015-05-14 10:49 ` Dmitry Gutov
2015-05-15 7:49 ` Paul Eggert
2015-05-15 17:24 ` Dmitry Gutov
2015-05-15 18:54 ` Paul Eggert
2015-05-15 19:09 ` Dmitry Gutov
2015-05-15 21:13 ` Paul Eggert
2015-05-15 21:48 ` Dmitry Gutov
2015-05-15 23:52 ` Paul Eggert
2015-05-16 0:08 ` Dmitry Gutov
2015-05-16 0:11 ` Dmitry Gutov
2015-05-16 1:48 ` Paul Eggert
2015-05-16 8:27 ` Dmitry Gutov
2015-05-19 23:27 ` Paul Eggert
2015-05-20 2:22 ` Dmitry Gutov
2015-05-21 7:21 ` Paul Eggert
2015-05-21 10:01 ` Dmitry Gutov
2015-05-21 14:58 ` Paul Eggert
2015-05-22 3:41 ` Dmitry Gutov
2015-05-16 9:51 ` Andreas Schwab
2015-05-16 1:23 ` Drew Adams
2015-05-16 6:20 ` Paul Eggert
2015-05-16 7:36 ` Eli Zaretskii
2015-05-14 7:10 ` Ivan Shmakov [this message]
2015-05-14 8:28 ` bug#20385: missing charset for non-ASCII text/x-patch MIME parts in Thunderbird Stephen J. Turnbull
2015-05-14 8:28 ` Stephen J. Turnbull
2015-05-14 7:10 ` bug#20385: " Ivan Shmakov
2015-05-14 7:20 ` bug#20385: Support curved quotes in doc strings Ivan Shmakov
2015-05-14 14:55 ` Eli Zaretskii
2015-05-14 20:05 ` Ivan Shmakov
2015-05-14 20:12 ` Eli Zaretskii
2015-05-14 20:30 ` Ivan Shmakov
[not found] <<1429555155-4695-1-git-send-email-eggert@cs.ucla.edu>
2015-04-20 20:16 ` bug#20385: [PROPOSED PATCH] Support quoting 'like this' " Drew Adams
[not found] ` <<jwvtwwabnhp.fsf-monnier+emacsbugs@gnu.org>
[not found] ` <<5535974D.9050207@cs.ucla.edu>
[not found] ` <<jwvvbgqs2ud.fsf-monnier+emacsbugs@gnu.org>
[not found] ` <<5535C7F3.7020107@cs.ucla.edu>
[not found] ` <<83618p5y9w.fsf@gnu.org>
[not found] ` <<jwvk2x59x4g.fsf-monnier+emacsbugs@gnu.org>
[not found] ` <<83vbgp49ve.fsf@gnu.org>
[not found] ` <<jwv8udl9syp.fsf-monnier+emacsbugs@gnu.org>
[not found] ` <<83pp6x45x5.fsf@gnu.org>
[not found] ` <<5536ACB3.9040707@yandex.ru>
[not found] ` <<83lhhk4phe.fsf@gnu.org>
[not found] ` <<fe3d90cd-056a-49a6-a049-6df07e710663@default>
[not found] ` <<87a8y0jmba.fsf@petton.fr>
[not found] ` <<6837d058-ba18-461b-8af6-2c4e6d767348@default>
[not found] ` <<55383081.4010106@cs.ucla.edu>
[not found] ` <<87a8xzae0o.fsf@petton.fr>
[not found] ` <<55389500.8000404@cs.ucla.edu>
[not found] ` <<878udj9pfq.fsf@petton.fr>
[not found] ` <<5538C7EC.9010105@cs.ucla.edu>
[not found] ` <<877ft39juq.fsf@petton.fr>
[not found] ` <<55392C91.1010300@cs.ucla.edu>
[not found] ` <<84f4aea9-c3ef-44c5-ac06-0df72d223e8c@default>
[not found] ` <<55394A2E.8020002@cs.ucla.edu>
[not found] ` <<f978526c-c5e3-405d-ae75-63b9ed5d4537@default>
[not found] ` <<83lhhizjqw.fsf@gnu.org>
2015-04-23 20:15 ` Drew Adams
2015-04-24 6:12 ` Eli Zaretskii
[not found] ` <<55394E30.8040307@yandex.ru>
[not found] ` <<83oamezk77.fsf@gnu.org>
[not found] ` <<4b159230-cd7e-4cb9-a778-3ad7ed2ae301@default>
[not found] ` <<83k2x2ys1b.fsf@gnu.org>
2015-04-24 14:11 ` Drew Adams
2015-04-24 14:40 ` Eli Zaretskii
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=87h9rfiqh1.fsf_-_@violet.siamics.net \
--to=ivan@siamics.net \
--cc=20385@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@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.