* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
@ 2015-09-26 11:49 Simen Heggestøyl
2015-09-26 13:32 ` Eli Zaretskii
0 siblings, 1 reply; 20+ messages in thread
From: Simen Heggestøyl @ 2015-09-26 11:49 UTC (permalink / raw)
To: 21568
[-- Attachment #1: Type: text/plain, Size: 1655 bytes --]
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:
From fa37953359f50748801717d259350d7e352cff60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= <simenheg@gmail.com>
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
`js--class-styles'."
(js-syntax-propertize-regexp end))))))
(point) end))
+(defconst js--prettify-symbols-alist
+ '(("=>" . ?⇒)
+ (">=" . ?≥)
+ ("<=" . ?≤))
+ "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
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)
--
2.5.1
[-- Attachment #2: Type: text/html, Size: 2297 bytes --]
^ permalink raw reply related [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-26 11:49 bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Simen Heggestøyl
@ 2015-09-26 13:32 ` Eli Zaretskii
2015-09-26 15:59 ` Simen Heggestøyl
0 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2015-09-26 13:32 UTC (permalink / raw)
To: Simen Heggestøyl; +Cc: 21568
> Date: Sat, 26 Sep 2015 13:49:48 +0200
> From: Simen Heggestøyl <simenheg@gmail.com>
>
> 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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-26 13:32 ` Eli Zaretskii
@ 2015-09-26 15:59 ` Simen Heggestøyl
2015-09-27 0:39 ` Xue Fuqiao
0 siblings, 1 reply; 20+ messages in thread
From: Simen Heggestøyl @ 2015-09-26 15:59 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 21568
[-- Attachment #1: Type: text/plain, Size: 1804 bytes --]
On Sat, Sep 26, 2015 at 3:32 PM, Eli Zaretskii <eliz@gnu.org> 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: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= <simenheg@gmail.com>
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
+ '(("=>" . ?⇒)
+ (">=" . ?≥)
+ ("<=" . ?≤))
+ "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
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
for a new one."
(provide 'js)
+;; Local Variables:
+;; coding: utf-8
+;; End:
+
;; js.el ends here
--
2.5.3
[-- Attachment #2: Type: text/html, Size: 2590 bytes --]
^ permalink raw reply related [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-26 15:59 ` Simen Heggestøyl
@ 2015-09-27 0:39 ` Xue Fuqiao
2015-09-27 2:01 ` Dmitry Gutov
0 siblings, 1 reply; 20+ messages in thread
From: Xue Fuqiao @ 2015-09-27 0:39 UTC (permalink / raw)
To: Simen Heggestøyl; +Cc: 21568, dgutov
On Sat, Sep 26, 2015 at 11:59 PM, Simen Heggestøyl <simenheg@gmail.com> 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: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= <simenheg@gmail.com>
> 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
> + '(("=>" . ?⇒)
> + (">=" . ?≥)
> + ("<=" . ?≤))
> + "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 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 for a
> new one."
>
> (provide 'js)
>
> +;; Local Variables:
> +;; coding: utf-8
> +;; End:
> +
> ;; js.el ends here
> --
> 2.5.3
>
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 0:39 ` Xue Fuqiao
@ 2015-09-27 2:01 ` Dmitry Gutov
2015-09-27 6:04 ` Eli Zaretskii
2015-09-27 14:28 ` Xue Fuqiao
0 siblings, 2 replies; 20+ messages in thread
From: Dmitry Gutov @ 2015-09-27 2:01 UTC (permalink / raw)
To: Xue Fuqiao, Simen Heggestøyl; +Cc: 21568
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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 2:01 ` Dmitry Gutov
@ 2015-09-27 6:04 ` Eli Zaretskii
2015-09-27 6:12 ` Dmitry Gutov
2015-09-27 14:28 ` Xue Fuqiao
1 sibling, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2015-09-27 6:04 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: xfq.free, simenheg, 21568
> From: Dmitry Gutov <dgutov@yandex.ru>
> 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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 6:04 ` Eli Zaretskii
@ 2015-09-27 6:12 ` Dmitry Gutov
2015-09-27 7:28 ` Eli Zaretskii
2015-09-27 8:10 ` Simen Heggestøyl
0 siblings, 2 replies; 20+ messages in thread
From: Dmitry Gutov @ 2015-09-27 6:12 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: xfq.free, simenheg, 21568
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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 6:12 ` Dmitry Gutov
@ 2015-09-27 7:28 ` Eli Zaretskii
2015-09-27 8:21 ` Dmitry Gutov
2015-09-27 8:10 ` Simen Heggestøyl
1 sibling, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2015-09-27 7:28 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: xfq.free, simenheg, 21568
> Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> 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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 7:28 ` Eli Zaretskii
@ 2015-09-27 8:21 ` Dmitry Gutov
2015-09-27 8:39 ` Eli Zaretskii
0 siblings, 1 reply; 20+ messages in thread
From: Dmitry Gutov @ 2015-09-27 8:21 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: xfq.free, simenheg, 21568
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?
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 8:21 ` Dmitry Gutov
@ 2015-09-27 8:39 ` Eli Zaretskii
2015-09-27 8:50 ` Dmitry Gutov
0 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2015-09-27 8:39 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: xfq.free, simenheg, 21568
> Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> 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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 8:39 ` Eli Zaretskii
@ 2015-09-27 8:50 ` Dmitry Gutov
2015-09-27 10:03 ` Eli Zaretskii
0 siblings, 1 reply; 20+ messages in thread
From: Dmitry Gutov @ 2015-09-27 8:50 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: xfq.free, simenheg, 21568
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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 8:50 ` Dmitry Gutov
@ 2015-09-27 10:03 ` Eli Zaretskii
2015-09-27 14:11 ` Dmitry Gutov
0 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2015-09-27 10:03 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: xfq.free, simenheg, 21568
> Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> 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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 10:03 ` Eli Zaretskii
@ 2015-09-27 14:11 ` Dmitry Gutov
2015-09-27 18:37 ` Eli Zaretskii
0 siblings, 1 reply; 20+ messages in thread
From: Dmitry Gutov @ 2015-09-27 14:11 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: xfq.free, simenheg, 21568
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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 14:11 ` Dmitry Gutov
@ 2015-09-27 18:37 ` Eli Zaretskii
2015-09-27 19:13 ` Dmitry Gutov
0 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2015-09-27 18:37 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: xfq.free, simenheg, 21568
> Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> 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?
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 18:37 ` Eli Zaretskii
@ 2015-09-27 19:13 ` Dmitry Gutov
2015-09-27 19:46 ` Eli Zaretskii
0 siblings, 1 reply; 20+ messages in thread
From: Dmitry Gutov @ 2015-09-27 19:13 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: xfq.free, simenheg, 21568
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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 19:13 ` Dmitry Gutov
@ 2015-09-27 19:46 ` Eli Zaretskii
2015-09-27 20:18 ` Dmitry Gutov
0 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2015-09-27 19:46 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: xfq.free, simenheg, 21568
> Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> 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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 19:46 ` Eli Zaretskii
@ 2015-09-27 20:18 ` Dmitry Gutov
2015-09-27 21:01 ` Eli Zaretskii
0 siblings, 1 reply; 20+ messages in thread
From: Dmitry Gutov @ 2015-09-27 20:18 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: xfq.free, simenheg, 21568
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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 20:18 ` Dmitry Gutov
@ 2015-09-27 21:01 ` Eli Zaretskii
0 siblings, 0 replies; 20+ messages in thread
From: Eli Zaretskii @ 2015-09-27 21:01 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: xfq.free, simenheg, 21568
> Cc: xfq.free@gmail.com, simenheg@gmail.com, 21568@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> 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.
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 6:12 ` Dmitry Gutov
2015-09-27 7:28 ` Eli Zaretskii
@ 2015-09-27 8:10 ` Simen Heggestøyl
1 sibling, 0 replies; 20+ messages in thread
From: Simen Heggestøyl @ 2015-09-27 8:10 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: xfq.free, 21568-done
[-- Attachment #1: Type: text/plain, Size: 122 bytes --]
On Sun, Sep 27, 2015 at 8:12 AM, Dmitry Gutov <dgutov@yandex.ru> wrote:
> Thanks. Simen, please install.
Done!
-- Simen
[-- Attachment #2: Type: text/html, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* bug#21568: [PATCH] Add prettify-symbols-alist for js-mode
2015-09-27 2:01 ` Dmitry Gutov
2015-09-27 6:04 ` Eli Zaretskii
@ 2015-09-27 14:28 ` Xue Fuqiao
1 sibling, 0 replies; 20+ messages in thread
From: Xue Fuqiao @ 2015-09-27 14:28 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: Simen Heggestøyl, 21568
On Sun, Sep 27, 2015 at 10:01 AM, Dmitry Gutov <dgutov@yandex.ru> 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!
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2015-09-27 21:01 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-26 11:49 bug#21568: [PATCH] Add prettify-symbols-alist for js-mode Simen Heggestøyl
2015-09-26 13:32 ` Eli Zaretskii
2015-09-26 15:59 ` Simen Heggestøyl
2015-09-27 0:39 ` Xue Fuqiao
2015-09-27 2:01 ` Dmitry Gutov
2015-09-27 6:04 ` Eli Zaretskii
2015-09-27 6:12 ` Dmitry Gutov
2015-09-27 7:28 ` Eli Zaretskii
2015-09-27 8:21 ` Dmitry Gutov
2015-09-27 8:39 ` Eli Zaretskii
2015-09-27 8:50 ` Dmitry Gutov
2015-09-27 10:03 ` Eli Zaretskii
2015-09-27 14:11 ` Dmitry Gutov
2015-09-27 18:37 ` Eli Zaretskii
2015-09-27 19:13 ` Dmitry Gutov
2015-09-27 19:46 ` Eli Zaretskii
2015-09-27 20:18 ` Dmitry Gutov
2015-09-27 21:01 ` Eli Zaretskii
2015-09-27 8:10 ` Simen Heggestøyl
2015-09-27 14:28 ` Xue Fuqiao
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).