From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Sep 2015 11:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 21568@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14432682034731 (code B ref -1); Sat, 26 Sep 2015 11:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Sep 2015 11:50:03 +0000 Received: from localhost ([127.0.0.1]:44083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfnzN-0001E2-HB for submit@debbugs.gnu.org; Sat, 26 Sep 2015 07:50:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37395) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfnzM-0001Dl-0G for submit@debbugs.gnu.org; Sat, 26 Sep 2015 07:50:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfnzK-0000nX-HO for submit@debbugs.gnu.org; Sat, 26 Sep 2015 07:49:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfnzK-0000nT-Ef for submit@debbugs.gnu.org; Sat, 26 Sep 2015 07:49:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfnzJ-0003rP-CQ for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2015 07:49:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfnzE-0000iF-2s for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2015 07:49:57 -0400 Received: from mail-la0-x22a.google.com ([2a00:1450:4010:c03::22a]:35948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfnzD-0000hm-PG for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2015 07:49:52 -0400 Received: by laclj5 with SMTP id lj5so26580920lac.3 for ; Sat, 26 Sep 2015 04:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:message-id:mime-version:content-type; bh=l/w/g5NZd2ZX6bfvYFqk+jrW3CzItzrUWSpPII/urQI=; b=Zfl6tSceWUaLTFdGajIzKHf0NKGl00jWv+EMjaWbQxvsYGS1iAj0jdTWRau4R5Hdz3 q7m2jW0hds4m9ucPHCnXOyLz1ZvGThEdYlUoNRz9sg5yrLY1brn/ahQHf0z21JGEj7r2 CVEGo7i1QZ34aPyGSiJQXgiuwhX9BI9Ya5mHrINShIFlmYaRFM2zutIMg/bIt1BtnKxw 7gTNW5WMLD85shkKRoDHGFQZGsJXjvVcs7dFsm6kr3xAA/YKaLayNOewZN4iCFE/KsfG FadN4kPEDyje//aHd6QFYxqj+hc/I3bEt0nV0pmSJSv8zlOBFtjqkoPSa+FqlFwKVhJ/ 3/rg== X-Received: by 10.25.81.3 with SMTP id f3mr1984762lfb.44.1443268190758; Sat, 26 Sep 2015 04:49:50 -0700 (PDT) Received: from [192.168.100.7] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id d139sm949298lfe.31.2015.09.26.04.49.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Sep 2015 04:49:50 -0700 (PDT) Date: Sat, 26 Sep 2015 13:49:48 +0200 From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Message-Id: <1443268188.7436.0@smtp.gmail.com> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-ewiT+RYdU0MVQOKmv/qf" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-ewiT+RYdU0MVQOKmv/qf Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable With the introduction of the fat arrow (=3D>) function notation in ECMAScript 6, why not make them prettier by default when prettify-symbols-mode is turned on? I propose the following patch, which also adds pretty versions of >=3D and <=3D while we're at it: From fa37953359f50748801717d259350d7e352cff60 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Simen=3D20Heggest=3DC3=3DB8yl?=3D Date: Wed, 23 Sep 2015 21:49:24 +0200 Subject: [PATCH] Add prettify-symbols-alist for js-mode * lisp/progmodes/js.el (js--prettify-symbols-alist): New defconst. (js-mode): Use it. --- lisp/progmodes/js.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 6a800f8..f214015 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -1724,6 +1724,12 @@ This performs fontification according to=20 `js--class-styles'." (js-syntax-propertize-regexp end)))))) (point) end)) +(defconst js--prettify-symbols-alist + '(("=3D>" . ?=E2=87=92) + (">=3D" . ?=E2=89=A5) + ("<=3D" . ?=E2=89=A4)) + "Alist of symbol prettifications for JavaScript.") + ;;; Indentation (defconst js--possibly-braceless-keyword-re @@ -3495,6 +3501,7 @@ If one hasn't been set, or if it's stale, prompt=20 for a new one." (setq-local open-paren-in-column-0-is-defun-start nil) (setq-local font-lock-defaults (list js--font-lock-keywords)) (setq-local syntax-propertize-function #'js-syntax-propertize) + (setq-local prettify-symbols-alist js--prettify-symbols-alist) (setq-local parse-sexp-ignore-comments t) (setq-local parse-sexp-lookup-properties t) --=20 2.5.1 = --=-ewiT+RYdU0MVQOKmv/qf Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
With the introduction of the fat arrow (=3D>) function notation in<= /div>
ECMAScript 6, why not make them prettier by default when
prettify-symbols-mode is turned on?

I propose th= e following patch, which also adds pretty versions of >=3D
and= <=3D while we're at it:


Fr= om fa37953359f50748801717d259350d7e352cff60 Mon Sep 17 00:00:00 2001
<= div>From: =3D?UTF-8?q?Simen=3D20Heggest=3DC3=3DB8yl?=3D <simenheg@gmail.= com>
Date: Wed, 23 Sep 2015 21:49:24 +0200
Subject: = [PATCH] Add prettify-symbols-alist for js-mode

* l= isp/progmodes/js.el (js--prettify-symbols-alist): New defconst.
(= js-mode): Use it.
---
 lisp/progmodes/js.el | 7 ++= +++++
 1 file changed, 7 insertions(+)

<= div>diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
inde= x 6a800f8..f214015 100644
--- a/lisp/progmodes/js.el
++= + b/lisp/progmodes/js.el
@@ -1724,6 +1724,12 @@ This performs fon= tification according to `js--class-styles'."
     =       (js-syntax-propertize-regexp end))))))
&nbs= p;   (point) end))
 
+(defconst js--prettify-= symbols-alist
+  '(("=3D>" . ?=E2=87=92)
+ &nbs= p;  (">=3D" . ?=E2=89=A5)
+    ("<=3D" . ?= =E2=89=A4))
+  "Alist of symbol prettifications for JavaScri= pt.")
+
 ;;; Indentation
 
 (defconst js--possibly-braceless-keyword-re
@@ -3495,6 +3= 501,7 @@ If one hasn't been set, or if it's stale, prompt for a new one."
   (setq-local open-paren-in-column-0-is-defun-start nil= )
   (setq-local font-lock-defaults (list js--font-lock= -keywords))
   (setq-local syntax-propertize-function #= 'js-syntax-propertize)
+  (setq-local prettify-symbols-alist= js--prettify-symbols-alist)
 
   (setq-= local parse-sexp-ignore-comments t)
   (setq-local pars= e-sexp-lookup-properties t)
-- 
2.5.1
<= div>
= --=-ewiT+RYdU0MVQOKmv/qf-- From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Sep 2015 13:33:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Cc: 21568@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144327436719560 (code B ref 21568); Sat, 26 Sep 2015 13:33:03 +0000 Received: (at 21568) by debbugs.gnu.org; 26 Sep 2015 13:32:47 +0000 Received: from localhost ([127.0.0.1]:44140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zfpao-000557-4p for submit@debbugs.gnu.org; Sat, 26 Sep 2015 09:32:46 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:34332) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zfpaf-0004zq-8F for 21568@debbugs.gnu.org; Sat, 26 Sep 2015 09:32:39 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NVA00300D4VGE00@a-mtaout20.012.net.il> for 21568@debbugs.gnu.org; Sat, 26 Sep 2015 16:32:35 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVA003P6DMB5480@a-mtaout20.012.net.il>; Sat, 26 Sep 2015 16:32:35 +0300 (IDT) Date: Sat, 26 Sep 2015 16:32:42 +0300 From: Eli Zaretskii In-reply-to: <1443268188.7436.0@smtp.gmail.com> X-012-Sender: halo1@inter.net.il Message-id: <834mihgvb9.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <1443268188.7436.0@smtp.gmail.com> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Sat, 26 Sep 2015 13:49:48 +0200 > From: Simen Heggestøyl > > With the introduction of the fat arrow (=>) function notation in > ECMAScript 6, why not make them prettier by default when > prettify-symbols-mode is turned on? > > I propose the following patch, which also adds pretty versions of >= > and <= while we're at it: Thanks, but please add a coding cookie to the file, so that UTF-8 encoded characters in it will always decoded correctly. From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Sep 2015 16:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 21568@debbugs.gnu.org Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.1443283210933 (code B ref 21568); Sat, 26 Sep 2015 16:01:01 +0000 Received: (at 21568) by debbugs.gnu.org; 26 Sep 2015 16:00:10 +0000 Received: from localhost ([127.0.0.1]:45104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfrtP-0000Ew-G9 for submit@debbugs.gnu.org; Sat, 26 Sep 2015 12:00:09 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:33368) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfrtJ-0000Dw-0H for 21568@debbugs.gnu.org; Sat, 26 Sep 2015 12:00:05 -0400 Received: by lahh2 with SMTP id h2so123630307lah.0 for <21568@debbugs.gnu.org>; Sat, 26 Sep 2015 09:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version:content-type; bh=TXSn0G8IFR12L+GLFeqfGqdy+6TzOA/L/Mx+9Qx/7Tg=; b=RO42UYBIch5ZLHU8SJB3E71KDD6j5ykn1yT7sAUdUkwiCb5h+BDJ/g4NXcueR+y06G kTIGgSicM/VqVafU74n0/3NNOt4/4NbOsW+ZN+bBPpry/nzzvew0RP7u/gHN9R4uQpQ6 BO6w2hFeJFMg2DiBR+lbU+OC/cuNR4JmU8G+nrV7LPbc0b5dqaQk0yllg3Zgc2LVH3aH qMyR3RELJvo2H0xJqwR5SaGuUN8GO+ij9UP2bxYj/lXue4WOqloyXoOQ7AWO8oEsebMZ 1HiC8XLYIpvOMkZ0AiUs6NxFfe9KdlnjY44NO5OZGTX6ozOo8oqesNNv/ttGTsc+67Vu 51rg== X-Received: by 10.112.162.34 with SMTP id xx2mr3220159lbb.109.1443283199881; Sat, 26 Sep 2015 08:59:59 -0700 (PDT) Received: from [192.168.100.7] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id h39sm1066058lfi.4.2015.09.26.08.59.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Sep 2015 08:59:59 -0700 (PDT) Date: Sat, 26 Sep 2015 17:59:58 +0200 From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Message-Id: <1443283198.7442.0@smtp.gmail.com> In-Reply-To: <834mihgvb9.fsf@gnu.org> References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-ZMm8HcrWnwUHX9BIuXck" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-ZMm8HcrWnwUHX9BIuXck Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On Sat, Sep 26, 2015 at 3:32 PM, Eli Zaretskii wrote: > Thanks, but please add a coding cookie to the file, so that UTF-8 > encoded characters in it will always decoded correctly. Alright. Better? From a51d8ceaa7e6114cf775a4f01e16a7cf1403e075 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Simen=3D20Heggest=3DC3=3DB8yl?=3D Date: Wed, 23 Sep 2015 21:49:24 +0200 Subject: [PATCH] Add prettify-symbols-alist for js-mode * lisp/progmodes/js.el (js--prettify-symbols-alist): New defconst. (js-mode): Use it. --- lisp/progmodes/js.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 6a800f8..ab994f3 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -1724,6 +1724,12 @@ This performs fontification according to=20 `js--class-styles'." (js-syntax-propertize-regexp end)))))) (point) end)) +(defconst js--prettify-symbols-alist + '(("=3D>" . ?=E2=87=92) + (">=3D" . ?=E2=89=A5) + ("<=3D" . ?=E2=89=A4)) + "Alist of symbol prettifications for JavaScript.") + ;;; Indentation (defconst js--possibly-braceless-keyword-re @@ -3495,6 +3501,7 @@ If one hasn't been set, or if it's stale, prompt=20 for a new one." (setq-local open-paren-in-column-0-is-defun-start nil) (setq-local font-lock-defaults (list js--font-lock-keywords)) (setq-local syntax-propertize-function #'js-syntax-propertize) + (setq-local prettify-symbols-alist js--prettify-symbols-alist) (setq-local parse-sexp-ignore-comments t) (setq-local parse-sexp-lookup-properties t) @@ -3564,4 +3571,8 @@ If one hasn't been set, or if it's stale, prompt=20 for a new one." (provide 'js) +;; Local Variables: +;; coding: utf-8 +;; End: + ;; js.el ends here --=20 2.5.3 = --=-ZMm8HcrWnwUHX9BIuXck Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, Sep 26, 2015 at 3:32 PM, Eli Zaretskii <eliz@gnu.org> wrote:<= br>
Thanks, but please add a coding cookie to the file, so that UTF= -8 encoded characters in it will always decoded correctly.
<= br>
Alright. Better?


From = a51d8ceaa7e6114cf775a4f01e16a7cf1403e075 Mon Sep 17 00:00:00 2001
From: =3D?UTF-8?q?Simen=3D20Heggest=3DC3=3DB8yl?=3D <simenheg@gmail.com= >
Date: Wed, 23 Sep 2015 21:49:24 +0200
Subject: [PA= TCH] Add prettify-symbols-alist for js-mode

* lisp= /progmodes/js.el (js--prettify-symbols-alist): New defconst.
(js-= mode): Use it.
---
 lisp/progmodes/js.el | 11 ++++= +++++++
 1 file changed, 11 insertions(+)

diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
i= ndex 6a800f8..ab994f3 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -1724,6 +1724,12 @@ This performs = fontification according to `js--class-styles'."
    &nb= sp;       (js-syntax-propertize-regexp end))))))
&= nbsp;   (point) end))
 
+(defconst js--pretti= fy-symbols-alist
+  '(("=3D>" . ?=E2=87=92)
+ &= nbsp;  (">=3D" . ?=E2=89=A5)
+    ("<=3D" . = ?=E2=89=A4))
+  "Alist of symbol prettifications for JavaScr= ipt.")
+
 ;;; Indentation
 
 (defconst js--possibly-braceless-keyword-re
@@ -3495,6 += 3501,7 @@ If one hasn't been set, or if it's stale, prompt for a new one."<= /div>
   (setq-local open-paren-in-column-0-is-defun-start ni= l)
   (setq-local font-lock-defaults (list js--font-loc= k-keywords))
   (setq-local syntax-propertize-function = #'js-syntax-propertize)
+  (setq-local prettify-symbols-alis= t js--prettify-symbols-alist)
 
   (setq= -local parse-sexp-ignore-comments t)
   (setq-local par= se-sexp-lookup-properties t)
@@ -3564,4 +3571,8 @@ If one hasn't = been set, or if it's stale, prompt for a new one."
 
 (provide 'js)
 
+;; Local Variables:
+;; coding: utf-8
+;; End:
+
 ;; j= s.el ends here
-- 
2.5.3

= --=-ZMm8HcrWnwUHX9BIuXck-- From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Xue Fuqiao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 00:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Cc: Eli Zaretskii , dancol@dancol.org, 21568@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144331436313254 (code B ref 21568); Sun, 27 Sep 2015 00:40:02 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 00:39:23 +0000 Received: from localhost ([127.0.0.1]:45323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zfzzv-0003Ri-4r for submit@debbugs.gnu.org; Sat, 26 Sep 2015 20:39:23 -0400 Received: from mail-io0-f175.google.com ([209.85.223.175]:34414) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zfzzt-0003RY-1Y for 21568@debbugs.gnu.org; Sat, 26 Sep 2015 20:39:21 -0400 Received: by iofb144 with SMTP id b144so144512564iof.1 for <21568@debbugs.gnu.org>; Sat, 26 Sep 2015 17:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=q10h1vxoyuBdcARL8VgtSpj0wPkB65ZbyIwzeZRoQ+4=; b=qdN3p27d05eoWvHt+258TAAhzWMkcPADwl8XsY+7MVyh8kpOwzm1ryRSsIQQvtBmDf I1ryWxBOh/MWQEu7ys/xbzaztKFPzuu2RexbxnInleoaL+PJGunE7gd2bgAKcWZNwJd9 sBAX9eGAX9h4OjXqEHjgcePop3qnSSGCgiNKgxtnYl4hM9mm0EhG9exEdLXGV0mM8WsA PJSgL5hmnCItVmeVzjL/hqfe9iPbW/xonDtJRV2xlE8obH7Nad4vcuEEr+jJJk9y3EZc jdqjNYOQA3Vg4AJiBjfbuZOukKO8XoU+3cHlNporxGrofv8uXJb+xAa/3mXiFIlHMqNS NqcA== MIME-Version: 1.0 X-Received: by 10.107.16.80 with SMTP id y77mr11692003ioi.183.1443314360391; Sat, 26 Sep 2015 17:39:20 -0700 (PDT) Received: by 10.79.94.2 with HTTP; Sat, 26 Sep 2015 17:39:20 -0700 (PDT) In-Reply-To: <1443283198.7442.0@smtp.gmail.com> References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> Date: Sun, 27 Sep 2015 08:39:20 +0800 Message-ID: From: Xue Fuqiao Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sat, Sep 26, 2015 at 11:59 PM, Simen Heggest=C3=B8yl wrote: > Alright. Better? LGTM. WDYT, Dmitry and Daniel? BTW, Dmitry, maybe you can also apply it to js2-mode. > From a51d8ceaa7e6114cf775a4f01e16a7cf1403e075 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Simen=3D20Heggest=3DC3=3DB8yl?=3D > Date: Wed, 23 Sep 2015 21:49:24 +0200 > Subject: [PATCH] Add prettify-symbols-alist for js-mode > > * lisp/progmodes/js.el (js--prettify-symbols-alist): New defconst. > (js-mode): Use it. > --- > lisp/progmodes/js.el | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el > index 6a800f8..ab994f3 100644 > --- a/lisp/progmodes/js.el > +++ b/lisp/progmodes/js.el > @@ -1724,6 +1724,12 @@ This performs fontification according to > `js--class-styles'." > (js-syntax-propertize-regexp end)))))) > (point) end)) > > +(defconst js--prettify-symbols-alist > + '(("=3D>" . ?=E2=87=92) > + (">=3D" . ?=E2=89=A5) > + ("<=3D" . ?=E2=89=A4)) > + "Alist of symbol prettifications for JavaScript.") > + > ;;; Indentation > > (defconst js--possibly-braceless-keyword-re > @@ -3495,6 +3501,7 @@ If one hasn't been set, or if it's stale, prompt fo= r a > new one." > (setq-local open-paren-in-column-0-is-defun-start nil) > (setq-local font-lock-defaults (list js--font-lock-keywords)) > (setq-local syntax-propertize-function #'js-syntax-propertize) > + (setq-local prettify-symbols-alist js--prettify-symbols-alist) > > (setq-local parse-sexp-ignore-comments t) > (setq-local parse-sexp-lookup-properties t) > @@ -3564,4 +3571,8 @@ If one hasn't been set, or if it's stale, prompt fo= r a > new one." > > (provide 'js) > > +;; Local Variables: > +;; coding: utf-8 > +;; End: > + > ;; js.el ends here > -- > 2.5.3 > From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 02:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Xue Fuqiao , Simen =?UTF-8?Q?Heggest=C3=B8yl?= Cc: 21568@debbugs.gnu.org Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144331932620635 (code B ref 21568); Sun, 27 Sep 2015 02:03:02 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 02:02:06 +0000 Received: from localhost ([127.0.0.1]:45391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg1Hx-0005Mk-Mn for submit@debbugs.gnu.org; Sat, 26 Sep 2015 22:02:06 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:34603) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg1Hu-0005MR-NF for 21568@debbugs.gnu.org; Sat, 26 Sep 2015 22:02:03 -0400 Received: by wicfx3 with SMTP id fx3so63493523wic.1 for <21568@debbugs.gnu.org>; Sat, 26 Sep 2015 19:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=zudNoivsRAYWoRjTJa7OmMGLYhoN9rI5/SUFgQU/sus=; b=UWT8VRgSm4VAPvc7BYKBAlg32zphhk6KqAn3M2djUAxwnyXb0wLeBkMxIHVN4vxcOB jbZ+fmrkcNWIDtRydQFyTcg+3Dh33avCZl6QQKhqrJZEFJ7PRkNOtnL/5jo+amLYE2lo UBqwvIW54ESnrnQn73nO7x8RToa6/ulu80g/z089fualw1HBBuSZehwhXKvT5Si9EdWB IJ0yJ62M2uyCmyBqh3Cu8yx9o8tSuINMowTbFdPBVe2yZ0eTry5AjAYE4VV3v7MTf8Ga YcgOQ2u20FP/bl4xBGf08uoUXA0gNy0cVS+2yJDL4huUDz4DWQNaAni8HkIA0SM0Vb+H Mg5A== X-Received: by 10.194.184.166 with SMTP id ev6mr15103386wjc.125.1443319321946; Sat, 26 Sep 2015 19:02:01 -0700 (PDT) Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id s16sm10784708wik.13.2015.09.26.19.02.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Sep 2015 19:02:00 -0700 (PDT) References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> From: Dmitry Gutov Message-ID: <56074E0F.6060209@yandex.ru> Date: Sun, 27 Sep 2015 05:01:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Thunderbird/41.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 09/27/2015 03:39 AM, Xue Fuqiao wrote: > LGTM. WDYT, Dmitry and Daniel? The patch looks fine to me, but I have no idea if Eli meant to add the cookie at the bottom, or whether that request really makes sense at all. So I'd prefer if he replies as well. > BTW, Dmitry, maybe you can also apply it to js2-mode. No need: it inherits from js-mode already. From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 06:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144333384911450 (code B ref 21568); Sun, 27 Sep 2015 06:05:02 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 06:04:09 +0000 Received: from localhost ([127.0.0.1]:45457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg54D-0002yb-Jt for submit@debbugs.gnu.org; Sun, 27 Sep 2015 02:04:09 -0400 Received: from mtaout28.012.net.il ([80.179.55.184]:40916) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg54B-0002yS-HT for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 02:04:08 -0400 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NVB00N00NHYD300@mtaout28.012.net.il> for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 09:03:44 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVB00G58NI8QW50@mtaout28.012.net.il>; Sun, 27 Sep 2015 09:03:44 +0300 (IDT) Date: Sun, 27 Sep 2015 09:04:09 +0300 From: Eli Zaretskii In-reply-to: <56074E0F.6060209@yandex.ru> X-012-Sender: halo1@inter.net.il Message-id: <83r3lkfleu.fsf@gnu.org> References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Dmitry Gutov > Date: Sun, 27 Sep 2015 05:01:51 +0300 > Cc: 21568@debbugs.gnu.org > > On 09/27/2015 03:39 AM, Xue Fuqiao wrote: > > > LGTM. WDYT, Dmitry and Daniel? > > The patch looks fine to me, but I have no idea if Eli meant to add the > cookie at the bottom I have no preferences in this regard. > or whether that request really makes sense at all. In general, ELisp files don't have to have these cookies, but I'd prefer such changes to trigger adding them, if only for educational purposes, so our contributors are aware of this subtle issue. > So I'd prefer if he replies as well. The patch is fine with me. From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 06:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144333437712161 (code B ref 21568); Sun, 27 Sep 2015 06:13:01 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 06:12:57 +0000 Received: from localhost ([127.0.0.1]:45461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg5Cj-0003A5-Gn for submit@debbugs.gnu.org; Sun, 27 Sep 2015 02:12:57 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:35713) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg5Ch-00039x-U5 for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 02:12:56 -0400 Received: by wicge5 with SMTP id ge5so66219409wic.0 for <21568@debbugs.gnu.org>; Sat, 26 Sep 2015 23:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=ilcJ63SgnXvVlkSAZX+lhNNhuGhrVSDUkwOEgN7SwvM=; b=yeTqHKLkWMvUjiS5TlSYsePMhp68fXsqS905qpeI3kG19QsQulCM7MFhYgN9f0FxP6 nVB7xUClBA1GE/iaIV4frFh3FJLOulWZiMgH86xjSxAOuXKO9noQVhcz8V/iXQQF8uCQ KVksscq1RnZKiZR6oy312M4XynR3ng8XD0TLE/tLsqc7LGUCz4t3y7ymXDmGCmm3QE7d nLC3zPoLH1+1RiStohwdSCr3onuTtzCtpvPNh56/7M6xTNiMNwMhTqbQILFzXGe6EsxY qW7eCwGUbJcVZaHHnv5MRpPeuSK0+SwrEy6SvM/7b2yMrEZpxHo0nqqEwB9C2YS+Squf U+Pg== X-Received: by 10.180.82.7 with SMTP id e7mr11933143wiy.19.1443334375222; Sat, 26 Sep 2015 23:12:55 -0700 (PDT) Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id jq10sm11525006wjc.40.2015.09.26.23.12.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Sep 2015 23:12:54 -0700 (PDT) References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> From: Dmitry Gutov Message-ID: <560788DB.6000104@yandex.ru> Date: Sun, 27 Sep 2015 09:12:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Thunderbird/41.0 MIME-Version: 1.0 In-Reply-To: <83r3lkfleu.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 09/27/2015 09:04 AM, Eli Zaretskii wrote: > I have no preferences in this regard. Thanks. Simen, please install. > In general, ELisp files don't have to have these cookies, but I'd > prefer such changes to trigger adding them, if only for educational > purposes, so our contributors are aware of this subtle issue. I'd prefer there not to be any subtle issues here, or that, at least, most contributors wouldn't have to be aware of them. From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 07:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144333893618689 (code B ref 21568); Sun, 27 Sep 2015 07:29:01 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 07:28:56 +0000 Received: from localhost ([127.0.0.1]:45478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg6OG-0004rN-GL for submit@debbugs.gnu.org; Sun, 27 Sep 2015 03:28:56 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:57031) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg6OD-0004rD-S6 for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 03:28:55 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NVB00F00RFYRE00@a-mtaout21.012.net.il> for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 10:28:52 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVB00FC8RG2OT70@a-mtaout21.012.net.il>; Sun, 27 Sep 2015 10:28:52 +0300 (IDT) Date: Sun, 27 Sep 2015 10:28:57 +0300 From: Eli Zaretskii In-reply-to: <560788DB.6000104@yandex.ru> X-012-Sender: halo1@inter.net.il Message-id: <83oagofhhi.fsf@gnu.org> References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org > From: Dmitry Gutov > Date: Sun, 27 Sep 2015 09:12:43 +0300 > > > In general, ELisp files don't have to have these cookies, but I'd > > prefer such changes to trigger adding them, if only for educational > > purposes, so our contributors are aware of this subtle issue. > > I'd prefer there not to be any subtle issues here, or that, at least, > most contributors wouldn't have to be aware of them. Me too. But we don't have a better solution yet. From unknown Mon Aug 18 19:22:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Subject: bug#21568: closed (Re: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode) Message-ID: References: <1443341455.1929.0@smtp.gmail.com> <1443268188.7436.0@smtp.gmail.com> X-Gnu-PR-Message: they-closed 21568 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 21568@debbugs.gnu.org Date: Sun, 27 Sep 2015 08:11:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1443341463-22519-1" This is a multi-part message in MIME format... ------------=_1443341463-22519-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #21568: [PATCH] Add prettify-symbols-alist for js-mode which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 21568@debbugs.gnu.org. --=20 21568: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21568 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1443341463-22519-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 21568-done) by debbugs.gnu.org; 27 Sep 2015 08:11:00 +0000 Received: from localhost ([127.0.0.1]:45497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg72y-0005r0-4x for submit@debbugs.gnu.org; Sun, 27 Sep 2015 04:11:00 -0400 Received: from mail-la0-f49.google.com ([209.85.215.49]:35900) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg72w-0005qr-Bn for 21568-done@debbugs.gnu.org; Sun, 27 Sep 2015 04:10:58 -0400 Received: by laclj5 with SMTP id lj5so38698395lac.3 for <21568-done@debbugs.gnu.org>; Sun, 27 Sep 2015 01:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version:content-type; bh=5yyui9ZFYmPi00RSppi2H0aJauCP+i/1a+CNO5bh2+E=; b=IazmHeeOYqSCkGeoW3RPyGlERRFTNhlygNiEaGZ+3duaJ0NkDsomQs0rECPOguqxRK /YT+qNYQU3qEte7ErBjLC6F6dSMJRWc8qG/CnOE1J6SqB+UgB/KUWpyfLvHorACT9Kr7 l7joi2ZL+Ii0Jwc8ZZN4tY74aclHybh8jWuhOk18zVuv2O7p9O+GJ41OxEwHzGyzOkjM rqhYQ6rD15VrFFLEJthFZOmi0byuLr2T/44+Fokd/sBA5/baCctqMBdO3+Mlh5imVItQ 4aHVZItiXaOP6WYk02jBq1BkKARyL55CLscAHtrpzOeDbRcIBEWt1Tprcje9xe+SaikS JfjQ== X-Received: by 10.152.120.164 with SMTP id ld4mr3813448lab.84.1443341457557; Sun, 27 Sep 2015 01:10:57 -0700 (PDT) Received: from [192.168.100.7] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id kk2sm1368513lbc.18.2015.09.27.01.10.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Sep 2015 01:10:56 -0700 (PDT) Date: Sun, 27 Sep 2015 10:10:55 +0200 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: Re: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode To: Dmitry Gutov Message-Id: <1443341455.1929.0@smtp.gmail.com> In-Reply-To: <560788DB.6000104@yandex.ru> References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-T9Sv82DZaxhxqZgHrBPl" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21568-done Cc: xfq.free@gmail.com, Eli Zaretskii , 21568-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-T9Sv82DZaxhxqZgHrBPl Content-Type: text/plain; charset=utf-8; format=flowed On Sun, Sep 27, 2015 at 8:12 AM, Dmitry Gutov wrote: > Thanks. Simen, please install. Done! -- Simen --=-T9Sv82DZaxhxqZgHrBPl Content-Type: text/html; charset=utf-8 On Sun, Sep 27, 2015 at 8:12 AM, Dmitry Gutov <dgutov@yandex.ru> wrote:
Thanks. Simen, please install.

Done!

-- Simen
--=-T9Sv82DZaxhxqZgHrBPl-- ------------=_1443341463-22519-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Sep 2015 11:50:03 +0000 Received: from localhost ([127.0.0.1]:44083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfnzN-0001E2-HB for submit@debbugs.gnu.org; Sat, 26 Sep 2015 07:50:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37395) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfnzM-0001Dl-0G for submit@debbugs.gnu.org; Sat, 26 Sep 2015 07:50:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfnzK-0000nX-HO for submit@debbugs.gnu.org; Sat, 26 Sep 2015 07:49:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfnzK-0000nT-Ef for submit@debbugs.gnu.org; Sat, 26 Sep 2015 07:49:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfnzJ-0003rP-CQ for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2015 07:49:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfnzE-0000iF-2s for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2015 07:49:57 -0400 Received: from mail-la0-x22a.google.com ([2a00:1450:4010:c03::22a]:35948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfnzD-0000hm-PG for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2015 07:49:52 -0400 Received: by laclj5 with SMTP id lj5so26580920lac.3 for ; Sat, 26 Sep 2015 04:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:message-id:mime-version:content-type; bh=l/w/g5NZd2ZX6bfvYFqk+jrW3CzItzrUWSpPII/urQI=; b=Zfl6tSceWUaLTFdGajIzKHf0NKGl00jWv+EMjaWbQxvsYGS1iAj0jdTWRau4R5Hdz3 q7m2jW0hds4m9ucPHCnXOyLz1ZvGThEdYlUoNRz9sg5yrLY1brn/ahQHf0z21JGEj7r2 CVEGo7i1QZ34aPyGSiJQXgiuwhX9BI9Ya5mHrINShIFlmYaRFM2zutIMg/bIt1BtnKxw 7gTNW5WMLD85shkKRoDHGFQZGsJXjvVcs7dFsm6kr3xAA/YKaLayNOewZN4iCFE/KsfG FadN4kPEDyje//aHd6QFYxqj+hc/I3bEt0nV0pmSJSv8zlOBFtjqkoPSa+FqlFwKVhJ/ 3/rg== X-Received: by 10.25.81.3 with SMTP id f3mr1984762lfb.44.1443268190758; Sat, 26 Sep 2015 04:49:50 -0700 (PDT) Received: from [192.168.100.7] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id d139sm949298lfe.31.2015.09.26.04.49.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Sep 2015 04:49:50 -0700 (PDT) Date: Sat, 26 Sep 2015 13:49:48 +0200 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: [PATCH] Add prettify-symbols-alist for js-mode To: bug-gnu-emacs@gnu.org Message-Id: <1443268188.7436.0@smtp.gmail.com> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-ewiT+RYdU0MVQOKmv/qf" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-ewiT+RYdU0MVQOKmv/qf Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable With the introduction of the fat arrow (=3D>) function notation in ECMAScript 6, why not make them prettier by default when prettify-symbols-mode is turned on? I propose the following patch, which also adds pretty versions of >=3D and <=3D while we're at it: From fa37953359f50748801717d259350d7e352cff60 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Simen=3D20Heggest=3DC3=3DB8yl?=3D Date: Wed, 23 Sep 2015 21:49:24 +0200 Subject: [PATCH] Add prettify-symbols-alist for js-mode * lisp/progmodes/js.el (js--prettify-symbols-alist): New defconst. (js-mode): Use it. --- lisp/progmodes/js.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 6a800f8..f214015 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -1724,6 +1724,12 @@ This performs fontification according to=20 `js--class-styles'." (js-syntax-propertize-regexp end)))))) (point) end)) +(defconst js--prettify-symbols-alist + '(("=3D>" . ?=E2=87=92) + (">=3D" . ?=E2=89=A5) + ("<=3D" . ?=E2=89=A4)) + "Alist of symbol prettifications for JavaScript.") + ;;; Indentation (defconst js--possibly-braceless-keyword-re @@ -3495,6 +3501,7 @@ If one hasn't been set, or if it's stale, prompt=20 for a new one." (setq-local open-paren-in-column-0-is-defun-start nil) (setq-local font-lock-defaults (list js--font-lock-keywords)) (setq-local syntax-propertize-function #'js-syntax-propertize) + (setq-local prettify-symbols-alist js--prettify-symbols-alist) (setq-local parse-sexp-ignore-comments t) (setq-local parse-sexp-lookup-properties t) --=20 2.5.1 = --=-ewiT+RYdU0MVQOKmv/qf Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
With the introduction of the fat arrow (=3D>) function notation in<= /div>
ECMAScript 6, why not make them prettier by default when
prettify-symbols-mode is turned on?

I propose th= e following patch, which also adds pretty versions of >=3D
and= <=3D while we're at it:


Fr= om fa37953359f50748801717d259350d7e352cff60 Mon Sep 17 00:00:00 2001
<= div>From: =3D?UTF-8?q?Simen=3D20Heggest=3DC3=3DB8yl?=3D <simenheg@gmail.= com>
Date: Wed, 23 Sep 2015 21:49:24 +0200
Subject: = [PATCH] Add prettify-symbols-alist for js-mode

* l= isp/progmodes/js.el (js--prettify-symbols-alist): New defconst.
(= js-mode): Use it.
---
 lisp/progmodes/js.el | 7 ++= +++++
 1 file changed, 7 insertions(+)

<= div>diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
inde= x 6a800f8..f214015 100644
--- a/lisp/progmodes/js.el
++= + b/lisp/progmodes/js.el
@@ -1724,6 +1724,12 @@ This performs fon= tification according to `js--class-styles'."
     =       (js-syntax-propertize-regexp end))))))
&nbs= p;   (point) end))
 
+(defconst js--prettify-= symbols-alist
+  '(("=3D>" . ?=E2=87=92)
+ &nbs= p;  (">=3D" . ?=E2=89=A5)
+    ("<=3D" . ?= =E2=89=A4))
+  "Alist of symbol prettifications for JavaScri= pt.")
+
 ;;; Indentation
 
 (defconst js--possibly-braceless-keyword-re
@@ -3495,6 +3= 501,7 @@ If one hasn't been set, or if it's stale, prompt for a new one."
   (setq-local open-paren-in-column-0-is-defun-start nil= )
   (setq-local font-lock-defaults (list js--font-lock= -keywords))
   (setq-local syntax-propertize-function #= 'js-syntax-propertize)
+  (setq-local prettify-symbols-alist= js--prettify-symbols-alist)
 
   (setq-= local parse-sexp-ignore-comments t)
   (setq-local pars= e-sexp-lookup-properties t)
-- 
2.5.1
<= div>
= --=-ewiT+RYdU0MVQOKmv/qf-- ------------=_1443341463-22519-1-- From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 08:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144334212623527 (code B ref 21568); Sun, 27 Sep 2015 08:23:02 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 08:22:06 +0000 Received: from localhost ([127.0.0.1]:45505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg7Di-00067P-CX for submit@debbugs.gnu.org; Sun, 27 Sep 2015 04:22:06 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:33232) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg7Dg-00067H-Kk for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 04:22:05 -0400 Received: by wiclk2 with SMTP id lk2so68306799wic.0 for <21568@debbugs.gnu.org>; Sun, 27 Sep 2015 01:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=Bs24qIXcc4oxb2FGCE6yBuPH0ZQWsXzH+yc0dGvfWWc=; b=sHmA1kzGbwPYO+NgcBAm6XU/Pbvdt5tBoT7Gm9828OujwItHOdZyTgcxKQHC+gSO22 BMH3QpZuXXc7EiK1favKWGATkms8dOhdyqKccG3760zg7yDq3GtxjAPUTx6UbUBa++h6 /5JHkYz/kBHVYlA0lkUnagtQct+i507oigyz0YCAMfUQCTiD8wFVy2BVksTZ4wZcjvx0 Wg/QMqv5BbqMB3lMWOLDu+QJJvFCInMEdBH1lBqhyZggMyWXj4VRqmQVxesE0B3VL9CV F1iIvvqclhdvgifgGf0SWn0AKMH5mIx8FB8pMawJEzz0COhkCp3/rkuMBeUUIJ6f6YkQ aJfg== X-Received: by 10.194.103.130 with SMTP id fw2mr17188517wjb.121.1443342124064; Sun, 27 Sep 2015 01:22:04 -0700 (PDT) Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id iw8sm12008195wjb.5.2015.09.27.01.22.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Sep 2015 01:22:03 -0700 (PDT) References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> <83oagofhhi.fsf@gnu.org> From: Dmitry Gutov Message-ID: <5607A721.2020002@yandex.ru> Date: Sun, 27 Sep 2015 11:21:53 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Thunderbird/41.0 MIME-Version: 1.0 In-Reply-To: <83oagofhhi.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 09/27/2015 10:28 AM, Eli Zaretskii wrote: > Me too. But we don't have a better solution yet. Do we have a clear statement of the problem (and a bug number, maybe)? Is it new? Is it likely to be unsolved until the upcoming release? From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 08:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144334319125048 (code B ref 21568); Sun, 27 Sep 2015 08:40:02 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 08:39:51 +0000 Received: from localhost ([127.0.0.1]:45509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg7Us-0006Vv-UB for submit@debbugs.gnu.org; Sun, 27 Sep 2015 04:39:51 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:60944) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg7Uq-0006Vm-DB for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 04:39:49 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NVB00F00UO8XE00@a-mtaout21.012.net.il> for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 11:39:47 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVB00F9OUQAWM10@a-mtaout21.012.net.il>; Sun, 27 Sep 2015 11:39:47 +0300 (IDT) Date: Sun, 27 Sep 2015 11:39:55 +0300 From: Eli Zaretskii In-reply-to: <5607A721.2020002@yandex.ru> X-012-Sender: halo1@inter.net.il Message-id: <83h9mgfe78.fsf@gnu.org> References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> <83oagofhhi.fsf@gnu.org> <5607A721.2020002@yandex.ru> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org > From: Dmitry Gutov > Date: Sun, 27 Sep 2015 11:21:53 +0300 > > On 09/27/2015 10:28 AM, Eli Zaretskii wrote: > > > Me too. But we don't have a better solution yet. > > Do we have a clear statement of the problem (and a bug number, maybe)? I just added a few recommendations to CONTRIBUTE about that. Other than that, we don't have a bug number. I don't think it's a bug, more like inconvenient feature: Emacs cannot determine the encoding of arbitrary text with 100% reliability, so files whose encoding is not unequivocally determined by their file-name extension or some other meta-data need a coding cookie to avoid incorrect decoding. With UTF-8 encoded files (which is the encoding we prefer in Emacs), the problem happens in locales whose codeset is not UTF-8, because Emacs prefers the locale's encoding when no other information is available. > Is it new? No, it's very old. > Is it likely to be unsolved until the upcoming release? I'm not aware of anyone working on that, nd it's a large and complicated problem, so the answer is probably yes. From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 08:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144334383625982 (code B ref 21568); Sun, 27 Sep 2015 08:51:01 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 08:50:36 +0000 Received: from localhost ([127.0.0.1]:45514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg7fI-0006l0-0m for submit@debbugs.gnu.org; Sun, 27 Sep 2015 04:50:36 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:36285) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg7fF-0006kq-JS for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 04:50:34 -0400 Received: by wicgb1 with SMTP id gb1so67680713wic.1 for <21568@debbugs.gnu.org>; Sun, 27 Sep 2015 01:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=9n2zFUWGPhCviEfBAQIuJKsXSZkTsMFPAKDjuMXkZhg=; b=BRkNmmX48IdAamL39vmx2m2HGPdHbUkfX2WEJAsXutY/5cQ8pXhO7KAaKnpwadgkQ/ ub/nvL4mXeHkrDeynoH5F6WYz6PVvfgTKRt023KF1QmN03pXAmOghhen61vUw/I/9iIq Mo7cZvywDJ3EQduWUKC3S17QZMB416ddG2PHur35chcpuNeh0J1CCFfGpVxqPzPZxJuF N55qRIZ/V5J1IZC1gbkzL7H7RNCmuzD2SpKZbLySe/0v9URh2C0BZTfhyX87gc6A9WFg nTIpPM7NISNDcMA89RQRdat+Lgcnkdgw174+xTtb8WgF2Pcj74CJt7Ht36EeNM+M98WR QM0g== X-Received: by 10.194.249.100 with SMTP id yt4mr5201242wjc.74.1443343832948; Sun, 27 Sep 2015 01:50:32 -0700 (PDT) Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id p4sm12034026wia.15.2015.09.27.01.50.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Sep 2015 01:50:31 -0700 (PDT) References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> <83oagofhhi.fsf@gnu.org> <5607A721.2020002@yandex.ru> <83h9mgfe78.fsf@gnu.org> From: Dmitry Gutov Message-ID: <5607ADCC.8080407@yandex.ru> Date: Sun, 27 Sep 2015 11:50:20 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Thunderbird/41.0 MIME-Version: 1.0 In-Reply-To: <83h9mgfe78.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 09/27/2015 11:39 AM, Eli Zaretskii wrote: > I just added a few recommendations to CONTRIBUTE about that. Thank you, but as long as that's true: "As of Emacs 24.4, it is no longer necessary to have explicit 'coding' cookies in *.el files if they are encoded in UTF-8, but other files need them even if encoded in UTF-8. And even for *.el files, having an explicit encoding specification facilitates correct display of non-ASCII characters when the file is visited in older Emacs versions." ...we really shouldn't bother contributors with that detail, not should we annotate code Elisp files with explicit cookies. Use UTF-8 in them, it works fine in Emacs 24.4+, end of story. If anyone's working on Emacs master using 24.3 or earlier, I'm sure there are other footguns they can encounter as well. From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 10:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144334823032250 (code B ref 21568); Sun, 27 Sep 2015 10:04:02 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 10:03:50 +0000 Received: from localhost ([127.0.0.1]:45521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg8oA-0008O6-BA for submit@debbugs.gnu.org; Sun, 27 Sep 2015 06:03:50 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:37616) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg8o7-0008Nw-7p for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 06:03:48 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NVB00B00Y7CLR00@mtaout24.012.net.il> for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 12:56:33 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVB009Z6YA9WN00@mtaout24.012.net.il>; Sun, 27 Sep 2015 12:56:33 +0300 (IDT) Date: Sun, 27 Sep 2015 13:03:48 +0300 From: Eli Zaretskii In-reply-to: <5607ADCC.8080407@yandex.ru> X-012-Sender: halo1@inter.net.il Message-id: <83d1x4fabf.fsf@gnu.org> References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> <83oagofhhi.fsf@gnu.org> <5607A721.2020002@yandex.ru> <83h9mgfe78.fsf@gnu.org> <5607ADCC.8080407@yandex.ru> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org > From: Dmitry Gutov > Date: Sun, 27 Sep 2015 11:50:20 +0300 > > On 09/27/2015 11:39 AM, Eli Zaretskii wrote: > > > I just added a few recommendations to CONTRIBUTE about that. > > Thank you, but as long as that's true: > > "As of Emacs 24.4, it is no longer necessary to have > explicit 'coding' cookies in *.el files if they are encoded in UTF-8, > but other files need them even if encoded in UTF-8. And even for *.el > files, having an explicit encoding specification facilitates correct > display of non-ASCII characters when the file is visited in older > Emacs versions." > > ...we really shouldn't bother contributors with that detail I don't see that as a bother, just as useful information that can do no harm. From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 14:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144336311128737 (code B ref 21568); Sun, 27 Sep 2015 14:12:02 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 14:11:51 +0000 Received: from localhost ([127.0.0.1]:45779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgCgB-0007TQ-8M for submit@debbugs.gnu.org; Sun, 27 Sep 2015 10:11:51 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:34247) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgCg9-0007TH-8O for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 10:11:49 -0400 Received: by wicfx3 with SMTP id fx3so73422584wic.1 for <21568@debbugs.gnu.org>; Sun, 27 Sep 2015 07:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=3w9MouQlO8Vd1JRCRVsSpXbwuOmA61ZE48zQiaSsNlI=; b=zKehQOajyBNObVx0dUPsPVmy0auRWlrHlG+JuUU0XxFQ6Q1bxHp8xjS9oneK0fKdnP hBn7x4ZI+ETJIHXMM3lQsOmQd3uNeCSHXT7KEjb04fVUmHOxgV508FpC8GlC94tayaQE i3qUTcfFK+3V9v7oE7UuwUEp7zlWoEGBJ+K7EXumSE1Zl42tL34k3QIHO/lseSYMfbnb AfgpYBODYJ1P2ApPQXn5b8lEOBjd1u5B0CSZIPQvwpGP8hd48HuFx1Ds3xMa21l5i0aj MQNvogDv7MhRe3RSL8t+nHYQqkzrTwUWz3h5gTcrmAuZYz4TWW8twOY3ByKErahXtDlp 4NNg== X-Received: by 10.180.11.175 with SMTP id r15mr14049447wib.74.1443363108747; Sun, 27 Sep 2015 07:11:48 -0700 (PDT) Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id d8sm17951313wiy.1.2015.09.27.07.11.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Sep 2015 07:11:47 -0700 (PDT) References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> <83oagofhhi.fsf@gnu.org> <5607A721.2020002@yandex.ru> <83h9mgfe78.fsf@gnu.org> <5607ADCC.8080407@yandex.ru> <83d1x4fabf.fsf@gnu.org> From: Dmitry Gutov Message-ID: <5607F919.9090600@yandex.ru> Date: Sun, 27 Sep 2015 17:11:37 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Thunderbird/41.0 MIME-Version: 1.0 In-Reply-To: <83d1x4fabf.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 09/27/2015 01:03 PM, Eli Zaretskii wrote: > I don't see that as a bother, just as useful information that can do > no harm. I'd have been happy not be have been imparted this "information". Especially in the form it was presented: adding those cookies everywhere conflicts with that bit of knowledge I've had in my head that since some recent Emacs version having UTF-8 in Elisp files is not a problem. We shouldn't treat them like that just because this problem occurs in other files. Nor bring it up in discussions on submitted patches. There are other ways to raise awareness. Like CONTRIBUTE, which now features that information. Most contributors aren't going to touch anything but Elisp, ever. From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Xue Fuqiao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 14:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: Simen =?UTF-8?Q?Heggest=C3=B8yl?= , 21568@debbugs.gnu.org Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144336413730292 (code B ref 21568); Sun, 27 Sep 2015 14:29:01 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 14:28:57 +0000 Received: from localhost ([127.0.0.1]:45783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgCwj-0007sV-7P for submit@debbugs.gnu.org; Sun, 27 Sep 2015 10:28:57 -0400 Received: from mail-io0-f175.google.com ([209.85.223.175]:34662) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgCwh-0007sM-D3 for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 10:28:56 -0400 Received: by iofb144 with SMTP id b144so152617911iof.1 for <21568@debbugs.gnu.org>; Sun, 27 Sep 2015 07:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1HZwoWNJE07DAi3kv9qHGLm1jrL5aP0ZLInkQMSFjsk=; b=lgYqf66aczvQMOMyW22Sy93nK0OTPFx/7+PqhYCDTS3gzsZi8te8lvUnfQx6fCfx8d WkTM7UJNivlQ7CO3zdiVcDJ/ukgbEdrLGwWgwHKK16bx5LJPLoB5dhAArm0wryu7BakN dlGhT/R+fx0BfW9bi8jQwG257KhlTziAeXls0REacjVLaLmyOih+XEwCcMAoMz4oH4LT hjXo0bhE9mdU0W7UrAYcjkE/Y/34BUulM63++jhWlaPLpojSgkTZbGFj6+cQRZy0D54d qMpZQu8po70UdqRdyejEjM2IRguwhvdv/5xhKBBD+SMs+y1X9wvHcp7MrPxjpzpNThL6 vLow== MIME-Version: 1.0 X-Received: by 10.107.16.80 with SMTP id y77mr13706635ioi.183.1443364134840; Sun, 27 Sep 2015 07:28:54 -0700 (PDT) Received: by 10.79.94.2 with HTTP; Sun, 27 Sep 2015 07:28:54 -0700 (PDT) In-Reply-To: <56074E0F.6060209@yandex.ru> References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> Date: Sun, 27 Sep 2015 22:28:54 +0800 Message-ID: From: Xue Fuqiao Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sun, Sep 27, 2015 at 10:01 AM, Dmitry Gutov wrote: >> BTW, Dmitry, maybe you can also apply it to js2-mode. > > No need: it inherits from js-mode already. I didn't know that. Thanks for pointing out this! From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 18:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144337902520599 (code B ref 21568); Sun, 27 Sep 2015 18:38:01 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 18:37:05 +0000 Received: from localhost ([127.0.0.1]:45852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgGoq-0005MB-DE for submit@debbugs.gnu.org; Sun, 27 Sep 2015 14:37:04 -0400 Received: from mtaout25.012.net.il ([80.179.55.181]:45701) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgGom-0005Lj-3v for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 14:37:02 -0400 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NVC00K00LVB1A00@mtaout25.012.net.il> for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 21:34:07 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVC00P6DM8V6X00@mtaout25.012.net.il>; Sun, 27 Sep 2015 21:34:07 +0300 (IDT) Date: Sun, 27 Sep 2015 21:37:07 +0300 From: Eli Zaretskii In-reply-to: <5607F919.9090600@yandex.ru> X-012-Sender: halo1@inter.net.il Message-id: <831tdjg14c.fsf@gnu.org> References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> <83oagofhhi.fsf@gnu.org> <5607A721.2020002@yandex.ru> <83h9mgfe78.fsf@gnu.org> <5607ADCC.8080407@yandex.ru> <83d1x4fabf.fsf@gnu.org> <5607F919.9090600@yandex.ru> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org > From: Dmitry Gutov > Date: Sun, 27 Sep 2015 17:11:37 +0300 > > On 09/27/2015 01:03 PM, Eli Zaretskii wrote: > > > I don't see that as a bother, just as useful information that can do > > no harm. > > I'd have been happy not be have been imparted this "information". Then please ignore it. No harm done. > Especially in the form it was presented: adding those cookies everywhere > conflicts with that bit of knowledge I've had in my head that since some > recent Emacs version having UTF-8 in Elisp files is not a problem. That's a misrepresentation of what the text says. It explicitly does NOT require cookies in ELisp files that are encoded in UTF-8. > We shouldn't treat them like that just because this problem occurs in > other files. Nor bring it up in discussions on submitted patches. With all due respect, I will bring up whatever issues I think are important when discussing patches. Please feel free to bring up those that you feel to be important. > There are other ways to raise awareness. Like CONTRIBUTE, which now > features that information. I did both. Where's the harm? From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 19:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144338121423951 (code B ref 21568); Sun, 27 Sep 2015 19:14:02 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 19:13:34 +0000 Received: from localhost ([127.0.0.1]:45860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgHOA-0006EE-3M for submit@debbugs.gnu.org; Sun, 27 Sep 2015 15:13:34 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:36545) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgHO8-0006E7-EI for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 15:13:33 -0400 Received: by wicgb1 with SMTP id gb1so77898389wic.1 for <21568@debbugs.gnu.org>; Sun, 27 Sep 2015 12:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=0UzdQ4u728lPzZ222aMH8ZgymrA0ZB4+xTRNe9wMsiM=; b=TJX23l9DYPprdJAE+V1qsIpZIk+THZDDwvCT4QOB0shUukLRy5QnaRBv+Ef5F3ynOH VkMls1tTMkhkldcKLm06MeXn0uLumui/r3uF73oUNFDQwJMhv26AnKRywjpCGHAUMLbW DCycm5rONE+DV8RnEO0ZIuz9oBWVygFwuW3BvBpzkbMiX0UqShjKCWAvDsPYrn1Ld50G DMb9iHrccm9owTE+rD76pFkVieURoa96TrEUvuDOjrGUNVZnsHetarr5QJF3PjhXc97/ vxTiZ1BjH07uV0BwPLoHRNYku+XsB3rFp7UB7lBR+JVOvcodmYo9xjwgmRgoZPlxLO24 H0dA== X-Received: by 10.180.88.198 with SMTP id bi6mr15480852wib.75.1443381211905; Sun, 27 Sep 2015 12:13:31 -0700 (PDT) Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id o3sm14354725wif.22.2015.09.27.12.13.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Sep 2015 12:13:30 -0700 (PDT) References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> <83oagofhhi.fsf@gnu.org> <5607A721.2020002@yandex.ru> <83h9mgfe78.fsf@gnu.org> <5607ADCC.8080407@yandex.ru> <83d1x4fabf.fsf@gnu.org> <5607F919.9090600@yandex.ru> <831tdjg14c.fsf@gnu.org> From: Dmitry Gutov Message-ID: <56083FD0.4020501@yandex.ru> Date: Sun, 27 Sep 2015 22:13:20 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Thunderbird/41.0 MIME-Version: 1.0 In-Reply-To: <831tdjg14c.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 09/27/2015 09:37 PM, Eli Zaretskii wrote: >> Especially in the form it was presented: adding those cookies everywhere >> conflicts with that bit of knowledge I've had in my head that since some >> recent Emacs version having UTF-8 in Elisp files is not a problem. > > That's a misrepresentation of what the text says. It explicitly does > NOT require cookies in ELisp files that are encoded in UTF-8. Right (so I'd only change CONTRIBUTE to say that one needn't bother with cookies in *.el files, except in those that are also distributed separately). What I'm referring to is requests such as this one, which I believe was/is misleading: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21568#8 Let's not add that to the general practice. > With all due respect, I will bring up whatever issues I think are > important when discussing patches. Please feel free to bring up those > that you feel to be important. But there was no issue with that patch. js-mode is not distributed separately from Emacs. From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 19:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144338320327036 (code B ref 21568); Sun, 27 Sep 2015 19:47:02 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 19:46:43 +0000 Received: from localhost ([127.0.0.1]:45864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgHuF-00071z-3U for submit@debbugs.gnu.org; Sun, 27 Sep 2015 15:46:43 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:53268) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgHuA-00071o-Ag for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 15:46:40 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NVC00H00PBFTT00@a-mtaout22.012.net.il> for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 22:46:36 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVC00HECPLORH40@a-mtaout22.012.net.il>; Sun, 27 Sep 2015 22:46:36 +0300 (IDT) Date: Sun, 27 Sep 2015 22:46:45 +0300 From: Eli Zaretskii In-reply-to: <56083FD0.4020501@yandex.ru> X-012-Sender: halo1@inter.net.il Message-id: <83y4frejbu.fsf@gnu.org> References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> <83oagofhhi.fsf@gnu.org> <5607A721.2020002@yandex.ru> <83h9mgfe78.fsf@gnu.org> <5607ADCC.8080407@yandex.ru> <83d1x4fabf.fsf@gnu.org> <5607F919.9090600@yandex.ru> <831tdjg14c.fsf@gnu.org> <56083FD0.4020501@yandex.ru> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org > From: Dmitry Gutov > Date: Sun, 27 Sep 2015 22:13:20 +0300 > > On 09/27/2015 09:37 PM, Eli Zaretskii wrote: > > >> Especially in the form it was presented: adding those cookies everywhere > >> conflicts with that bit of knowledge I've had in my head that since some > >> recent Emacs version having UTF-8 in Elisp files is not a problem. > > > > That's a misrepresentation of what the text says. It explicitly does > > NOT require cookies in ELisp files that are encoded in UTF-8. > > Right (so I'd only change CONTRIBUTE to say that one needn't bother with > cookies in *.el files, except in those that are also distributed > separately). No, please leave that text alone. It's okay the way it is. > What I'm referring to is requests such as this one, which I believe > was/is misleading: > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21568#8 I disagree that it was misleading. > Let's not add that to the general practice. Now that we have that text in CONTRIBUTE, that's all there is to say. > > With all due respect, I will bring up whatever issues I think are > > important when discussing patches. Please feel free to bring up those > > that you feel to be important. > > But there was no issue with that patch. js-mode is not distributed > separately from Emacs. I explained my reasons right there and then. I really don't understand what this attack on me is about. From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 20:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.144338510629920 (code B ref 21568); Sun, 27 Sep 2015 20:19:01 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 20:18:26 +0000 Received: from localhost ([127.0.0.1]:45873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgIOw-0007mW-E5 for submit@debbugs.gnu.org; Sun, 27 Sep 2015 16:18:26 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:33962) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgIOu-0007mO-Rk for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 16:18:25 -0400 Received: by wicfx3 with SMTP id fx3so79631245wic.1 for <21568@debbugs.gnu.org>; Sun, 27 Sep 2015 13:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=QW7uGlzbs8zXTYsE/+FQF8jb83v+ULNi6NRlWZEKYrI=; b=qmMaH2b9Ho44UylItCKh3hhd0ScGA6XlKgJDyGFKv+umdJ/TSf9EZmYDTlwpk+tIuD i/BnIwiuo8OjFXzbe7dRzPaKTA37pr5O/t20fZuOixSxpEuJ4HJ3tzHauti9ocN6J/H4 MsgoHV4zA8RTyZjS/ieuRGLkl87CpZI8Nm+32u1HsnqO1Y6jJE2n1HRIgAcrQeTPoupD wIXRNiGZITKS3l0FZLDTWSH6jplKGcG0SOTdIYOLX6iZPpiaulMhtpa4tfR+/Inio2IE MUzraCzlOuN7ardjJ9mWq/TMtZWH1uB2EBlqjfJXqQdIbH5dmpjZD2wZsvywXOQMdPdM xlQw== X-Received: by 10.180.10.101 with SMTP id h5mr13823566wib.22.1443385104117; Sun, 27 Sep 2015 13:18:24 -0700 (PDT) Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id ry1sm14681699wjb.24.2015.09.27.13.18.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Sep 2015 13:18:22 -0700 (PDT) References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> <83oagofhhi.fsf@gnu.org> <5607A721.2020002@yandex.ru> <83h9mgfe78.fsf@gnu.org> <5607ADCC.8080407@yandex.ru> <83d1x4fabf.fsf@gnu.org> <5607F919.9090600@yandex.ru> <831tdjg14c.fsf@gnu.org> <56083FD0.4020501@yandex.ru> <83y4frejbu.fsf@gnu.org> From: Dmitry Gutov Message-ID: <56084F04.2040501@yandex.ru> Date: Sun, 27 Sep 2015 23:18:12 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Thunderbird/41.0 MIME-Version: 1.0 In-Reply-To: <83y4frejbu.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 09/27/2015 10:46 PM, Eli Zaretskii wrote: > No, please leave that text alone. It's okay the way it is. I feel that the last sentence causes unnecessary doubt on the part of the reader. After all, CONTRIBUTE is intended as a guideline for developing Emacs, and the less ambiguous it is, the better. >> What I'm referring to is requests such as this one, which I believe >> was/is misleading: >> >> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21568#8 > > I disagree that it was misleading. It implied that without that cookie, something in that code might not work well. > Now that we have that text in CONTRIBUTE, that's all there is to say. All right, thank you. > I explained my reasons right there and then. As a counterpoint, I don't believe educational purpose is a good enough cause to ask people to use coding cookies in UTF-8 encoded Elisp files. Even for external packages, over time, Emacs versions where they're necessary will sail off into distant past. No need to add to the baggage the future people will have to deal with. > I really don't understand what this attack on me is about. Please excuse any offense, but I'm not calling you names, or anything like that. I see an attempt to bring in extraneous practice into writing Elisp files (as well as reviewing the patches), and speak against it. From unknown Mon Aug 18 19:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 21:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21568-submit@debbugs.gnu.org id=B21568.14433877061486 (code B ref 21568); Sun, 27 Sep 2015 21:02:02 +0000 Received: (at 21568) by debbugs.gnu.org; 27 Sep 2015 21:01:46 +0000 Received: from localhost ([127.0.0.1]:45923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgJ4r-0000Nt-S1 for submit@debbugs.gnu.org; Sun, 27 Sep 2015 17:01:46 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:65124) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgJ4o-0000Nj-Sd for 21568@debbugs.gnu.org; Sun, 27 Sep 2015 17:01:44 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NVC00I00SPI8I00@a-mtaout22.012.net.il> for 21568@debbugs.gnu.org; Mon, 28 Sep 2015 00:01:41 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVC00I78T2SEB00@a-mtaout22.012.net.il>; Mon, 28 Sep 2015 00:01:41 +0300 (IDT) Date: Mon, 28 Sep 2015 00:01:50 +0300 From: Eli Zaretskii In-reply-to: <56084F04.2040501@yandex.ru> X-012-Sender: halo1@inter.net.il Message-id: <83vbavefup.fsf@gnu.org> References: <1443268188.7436.0@smtp.gmail.com> <834mihgvb9.fsf@gnu.org> <1443283198.7442.0@smtp.gmail.com> <56074E0F.6060209@yandex.ru> <83r3lkfleu.fsf@gnu.org> <560788DB.6000104@yandex.ru> <83oagofhhi.fsf@gnu.org> <5607A721.2020002@yandex.ru> <83h9mgfe78.fsf@gnu.org> <5607ADCC.8080407@yandex.ru> <83d1x4fabf.fsf@gnu.org> <5607F919.9090600@yandex.ru> <831tdjg14c.fsf@gnu.org> <56083FD0.4020501@yandex.ru> <83y4frejbu.fsf@gnu.org> <56084F04.2040501@yandex.ru> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org > From: Dmitry Gutov > Date: Sun, 27 Sep 2015 23:18:12 +0300 > > On 09/27/2015 10:46 PM, Eli Zaretskii wrote: > > > No, please leave that text alone. It's okay the way it is. > > I feel that the last sentence causes unnecessary doubt on the part of > the reader. After all, CONTRIBUTE is intended as a guideline for > developing Emacs, and the less ambiguous it is, the better. I see no ambiguity there. There are requirements, and there's "a good idea" with an explanation that is left to the contributors to consider and decide. I see nothing wrong with leaving the decision with them. > >> What I'm referring to is requests such as this one, which I believe > >> was/is misleading: > >> > >> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21568#8 > > > > I disagree that it was misleading. > > It implied that without that cookie, something in that code might not > work well. Then I'm sorry that my wording made such interpretation possible. It was certainly not intended. > > I explained my reasons right there and then. > > As a counterpoint, I don't believe educational purpose is a good enough > cause to ask people to use coding cookies in UTF-8 encoded Elisp files. Let's agree to disagree about that, okay? > Even for external packages, over time, Emacs versions where they're > necessary will sail off into distant past. No need to add to the baggage > the future people will have to deal with. I cannot see how a dozen-character string most users will never even notice could possibly be a "baggage" of any significance. > I see an attempt to bring in extraneous practice into writing Elisp > files (as well as reviewing the patches), and speak against it. The form and the intense of the objections are out of proportions, for such an insignificant issue/disagreement.