From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#20385: missing charset for non-ASCII text/x-patch MIME parts in Thunderbird Date: Thu, 14 May 2015 07:10:50 +0000 Message-ID: <87h9rfiqh1.fsf_-___47843.3372606107$1431587548$gmane$org@violet.siamics.net> References: <1429555155-4695-1-git-send-email-eggert@cs.ucla.edu> <5552FDAC.4080004@cs.ucla.edu> <55534080.6010400@yandex.ru> <555369FD.30701@cs.ucla.edu> <5553D12F.7000809@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1431587548 21530 80.91.229.3 (14 May 2015 07:12:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 May 2015 07:12:28 +0000 (UTC) To: emacs-devel@gnu.org, Dmitry Gutov , Paul Eggert , 20385@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 14 09:12:17 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YsnJU-0000kr-0R for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 May 2015 09:12:12 +0200 Original-Received: from localhost ([::1]:52913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsnJT-0005Ey-AS for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 May 2015 03:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsnJP-0005Ep-Ap for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 03:12:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsnJL-00057v-5D for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 03:12:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsnJL-00057P-3A for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 03:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YsnJK-0004jw-D4 for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 03:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 May 2015 07:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20385 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 20385-submit@debbugs.gnu.org id=B20385.143158746918049 (code B ref 20385); Thu, 14 May 2015 07:12:02 +0000 Original-Received: (at 20385) by debbugs.gnu.org; 14 May 2015 07:11:09 +0000 Original-Received: from localhost ([127.0.0.1]:44291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsnIR-0004gu-9C for submit@debbugs.gnu.org; Thu, 14 May 2015 03:11:08 -0400 Original-Received: from fely.am-1.org ([78.47.74.50]:44472) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsnIM-0004gE-NX for 20385@debbugs.gnu.org; Thu, 14 May 2015 03:11:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=gcr8JJYnp5OM7g7Lbbia9WlAGkdfPrsm7j8eZ2WIhyY=; b=eRkDXHTG23BMPkcKZ2fgoYSd07ebO09tlvtLvQameaVBjoKwEDe4fiOKgRC4GCKkudJjcycWI69Dz/vizE9k+FyS3lymja6vRcVsN0t6T2b2lqvBaVAbYclS/2y827gWUlTHNmfNluQ6iJw2IbkYHkqYWQ3h7lIwzvNdO90knKw=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YsnIK-0007bJ-9e; Thu, 14 May 2015 07:11:00 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YsnIC-0008OF-U0; Thu, 14 May 2015 14:10:53 +0700 Mail-Followup-To: emacs-devel@gnu.org, Dmitry Gutov , Paul Eggert In-Reply-To: <5553D12F.7000809@yandex.ru> (Dmitry Gutov's message of "Thu, 14 May 2015 01:33:19 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102762 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >>>>> Dmitry Gutov writes: [Moving to emacs-devel@ as the issue at hand is not exactly related to #20385.] [=E2=80=A6] > 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 (=D1=82=D0=90=D0=A8) instead of the fancy quotes. Which will= complicate > reading small patches somewhat (ones I wouldn't open in an external > program otherwise). As I=E2=80=99ve pointed earlier [1], Thunderbird (on the /sending/ side) for some reason chooses /not/ to file the =E2=80=98charset=E2=80=99 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=E2=80=99 /does/) may simply leave the content undecoded (as in: raw-text.) I presume this issue (the one of /not/ including the =E2=80=98charset=E2= =80=99) 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 --=20 FSF associate member #7257 http://am-1.org/~ivan/ =E2=80=A6 3013 B6A0= 230E 334A --=-=-= Content-Type: text/x-patch; charset=utf-8; name=0001-Support-curved-quotes-in-doc-strings.patch Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >From eb392195ffdb108228c981f92ca8b5766afdcff9 Mon Sep 17 00:00:00 2001 From: Paul Eggert 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=3DUTF-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 =E2=80=98like this=E2=80=99 look better. Support quoting the new way too. (Bug#20385) * doc/lispref/tips.texi (Documentation Tips): Symbols can be quoted =E2=80=98like-this=E2=80=99 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 "=E2=80=98" and "=E2=80=99" to electric-pair-text-pairs. (elisp--form-quoted-p): Also allow "=E2=80=98" as a quoting char. (elisp-completion-at-point, elisp--preceding-sexp): Also treat "=E2=80=98" and "=E2=80=99" as quoting chars. * lisp/wid-edit.el (widget-documentation-link-regexp): Parse symbols quoted =E2=80=98like-this=E2=80=99 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 =E2=80=A6 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 th= is widget: :type 'boolean :group 'widget-documentation) =20 -(defcustom widget-documentation-link-regexp "`\\([^\n`' ]+\\)'" +(defcustom widget-documentation-link-regexp "[`=E2=80=98]\\([^\n `'=E2=80= =98=E2=80=99]+\\)['=E2=80=99]" "Regexp for matching potential links in documentation strings. The first group should be the link itself." :type 'regexp --=20 2.1.0 --=-=-=--