unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
@ 2015-12-16 14:15 Vaidheeswaran C
  2015-12-17 16:55 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Vaidheeswaran C @ 2015-12-16 14:15 UTC (permalink / raw)
  To: 22189

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-Add-global-goto-address-mode-and-global-goto-address.patch --]
[-- Type: text/x-diff, Size: 1039 bytes --]

From 137e8b559e0e8aaf9f82120ec83c86e377684e94 Mon Sep 17 00:00:00 2001
From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
Date: Wed, 16 Dec 2015 19:41:23 +0530
Subject: [PATCH] Add `global-goto-address-mode' and
 `global-goto-address-prog-mode'

* lisp/net/goto-addr.el(global-goto-address-mode)
(global-goto-address-prog-mode): Add these.
---
 lisp/net/goto-addr.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lisp/net/goto-addr.el b/lisp/net/goto-addr.el
index 51d8ed1..fa3ed26 100644
--- a/lisp/net/goto-addr.el
+++ b/lisp/net/goto-addr.el
@@ -301,6 +301,14 @@ goto-address-prog-mode
       (widen)
       (goto-address-unfontify (point-min) (point-max)))))
 
+;;;###autoload
+(define-globalized-minor-mode global-goto-address-mode
+  goto-address-mode goto-address-mode :group 'goto-address)
+
+;;;###autoload
+(define-globalized-minor-mode global-goto-address-prog-mode
+  goto-address-prog-mode goto-address-prog-mode :group 'goto-address)
+
 (provide 'goto-addr)
 
 ;;; goto-addr.el ends here
-- 
2.1.4






^ permalink raw reply related	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-16 14:15 bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode' Vaidheeswaran C
@ 2015-12-17 16:55 ` Eli Zaretskii
  2015-12-18  2:50   ` Vaidheeswaran C
  2015-12-20 22:37   ` John Wiegley
  0 siblings, 2 replies; 14+ messages in thread
From: Eli Zaretskii @ 2015-12-17 16:55 UTC (permalink / raw)
  To: Vaidheeswaran C; +Cc: 22189

> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
> Date: Wed, 16 Dec 2015 19:45:19 +0530
> 
> >From 137e8b559e0e8aaf9f82120ec83c86e377684e94 Mon Sep 17 00:00:00 2001
> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
> Date: Wed, 16 Dec 2015 19:41:23 +0530
> Subject: [PATCH] Add `global-goto-address-mode' and
>  `global-goto-address-prog-mode'

Any rationale for adding these?

Thanks.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-17 16:55 ` Eli Zaretskii
@ 2015-12-18  2:50   ` Vaidheeswaran C
  2015-12-18  7:00     ` Eli Zaretskii
  2015-12-20 22:37   ` John Wiegley
  1 sibling, 1 reply; 14+ messages in thread
From: Vaidheeswaran C @ 2015-12-18  2:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22189

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
>> Date: Wed, 16 Dec 2015 19:45:19 +0530
>> 
>> >From 137e8b559e0e8aaf9f82120ec83c86e377684e94 Mon Sep 17 00:00:00 2001
>> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
>> Date: Wed, 16 Dec 2015 19:41:23 +0530
>> Subject: [PATCH] Add `global-goto-address-mode' and
>>  `global-goto-address-prog-mode'
>
> Any rationale for adding these?

Any rationale for NOT adding these?






^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-18  2:50   ` Vaidheeswaran C
@ 2015-12-18  7:00     ` Eli Zaretskii
  2015-12-18  7:16       ` Vaidheeswaran C
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2015-12-18  7:00 UTC (permalink / raw)
  To: Vaidheeswaran C; +Cc: 22189

> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
> Cc: 22189@debbugs.gnu.org
> Date: Fri, 18 Dec 2015 08:20:42 +0530
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
> >> Date: Wed, 16 Dec 2015 19:45:19 +0530
> >> 
> >> >From 137e8b559e0e8aaf9f82120ec83c86e377684e94 Mon Sep 17 00:00:00 2001
> >> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
> >> Date: Wed, 16 Dec 2015 19:41:23 +0530
> >> Subject: [PATCH] Add `global-goto-address-mode' and
> >>  `global-goto-address-prog-mode'
> >
> > Any rationale for adding these?
> 
> Any rationale for NOT adding these?

Yes: bloat.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-18  7:00     ` Eli Zaretskii
@ 2015-12-18  7:16       ` Vaidheeswaran C
  2015-12-18  8:59         ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Vaidheeswaran C @ 2015-12-18  7:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22189

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
>> Cc: 22189@debbugs.gnu.org
>> Date: Fri, 18 Dec 2015 08:20:42 +0530
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> >> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
>> >> Date: Wed, 16 Dec 2015 19:45:19 +0530
>> >> 
>> >> >From 137e8b559e0e8aaf9f82120ec83c86e377684e94 Mon Sep 17 00:00:00 2001
>> >> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
>> >> Date: Wed, 16 Dec 2015 19:41:23 +0530
>> >> Subject: [PATCH] Add `global-goto-address-mode' and
>> >>  `global-goto-address-prog-mode'
>> >
>> > Any rationale for adding these?
>> 
>> Any rationale for NOT adding these?
>
> Yes: bloat.

No: Useful.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-18  7:16       ` Vaidheeswaran C
@ 2015-12-18  8:59         ` Eli Zaretskii
  2015-12-19  3:36           ` Vaidheeswaran C
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2015-12-18  8:59 UTC (permalink / raw)
  To: Vaidheeswaran C; +Cc: 22189

> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
> Cc: 22189@debbugs.gnu.org
> Date: Fri, 18 Dec 2015 12:46:32 +0530
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
> >> Cc: 22189@debbugs.gnu.org
> >> Date: Fri, 18 Dec 2015 08:20:42 +0530
> >> 
> >> Eli Zaretskii <eliz@gnu.org> writes:
> >> 
> >> >> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
> >> >> Date: Wed, 16 Dec 2015 19:45:19 +0530
> >> >> 
> >> >> >From 137e8b559e0e8aaf9f82120ec83c86e377684e94 Mon Sep 17 00:00:00 2001
> >> >> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
> >> >> Date: Wed, 16 Dec 2015 19:41:23 +0530
> >> >> Subject: [PATCH] Add `global-goto-address-mode' and
> >> >>  `global-goto-address-prog-mode'
> >> >
> >> > Any rationale for adding these?
> >> 
> >> Any rationale for NOT adding these?
> >
> > Yes: bloat.
> 
> No: Useful.

Please elaborate.

I'm serious: we don't have any rule that says each minor mode should
have a corresponding globalized minor mode.  Users can trivially do in
their ~/.emacs what you do in your patch, so we should have some
rationale for having such a global mode as part of Emacs.  Please show
such a rationale.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-18  8:59         ` Eli Zaretskii
@ 2015-12-19  3:36           ` Vaidheeswaran C
  2015-12-19  7:49             ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Vaidheeswaran C @ 2015-12-19  3:36 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22189

Eli Zaretskii <eliz@gnu.org> writes:

> I'm serious: we don't have any rule that says each minor mode should
> have a corresponding globalized minor mode.  Users can trivially do in
> their ~/.emacs what you do in your patch, so we should have some
> rationale for having such a global mode as part of Emacs.  

Of all the minor modes, what criteria do the minor modes below all share
so that they are global?  Once we such a set of rules, we can see
whether patch I submitted makes through the gate.

./progmodes/cwarn.el:339: global-cwarn-mode
./progmodes/prog-mode.el:285: global-prettify-symbols-mode
./linum.el:112: global-linum-mode linum-mode
./simple.el:6563: global-visual-line-mode
./hilit-chg.el:971: global-highlight-changes-mode
./font-core.el:268: global-font-lock-mode
./hi-lock.el:399: global-hi-lock-mode

Your definition of "bloat" (as I see it) is this: If it can be in
.emacs, it can be a bloat.  Given your definition of bloat, cannot the
above lines also reside in .emacs?  Shouldn't this alone make the above
lines a bloat?

> Please show such a rationale.

Usefulnesss is the only rationale.  Of course, do not forget the
ubiquity of URLs in buffers.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-19  3:36           ` Vaidheeswaran C
@ 2015-12-19  7:49             ` Eli Zaretskii
  2015-12-19  9:32               ` Vaidheeswaran C
  2015-12-19 19:24               ` Glenn Morris
  0 siblings, 2 replies; 14+ messages in thread
From: Eli Zaretskii @ 2015-12-19  7:49 UTC (permalink / raw)
  To: Vaidheeswaran C; +Cc: 22189

> From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
> Cc: 22189@debbugs.gnu.org
> Date: Sat, 19 Dec 2015 09:06:38 +0530
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > I'm serious: we don't have any rule that says each minor mode should
> > have a corresponding globalized minor mode.  Users can trivially do in
> > their ~/.emacs what you do in your patch, so we should have some
> > rationale for having such a global mode as part of Emacs.  
> 
> Of all the minor modes, what criteria do the minor modes below all share
> so that they are global?  Once we such a set of rules, we can see
> whether patch I submitted makes through the gate.

I don't know.  I didn't make those decisions (most of them were made
many years ago).

In any case, what is already in Emacs is already there, and is not
subject to this discussion.  If you think some of those should be
removed, feel free to start a separate discussion about that.  Here we
are talking about adding these two specific globalized modes.

> Your definition of "bloat" (as I see it) is this: If it can be in
> .emacs, it can be a bloat.  Given your definition of bloat, cannot the
> above lines also reside in .emacs?  Shouldn't this alone make the above
> lines a bloat?

Perhaps.  But that's not the issue at hand.  It would be impractical
to convert a discussion about every change into a much broader
discussion about consistency of rules and past decisions.

> > Please show such a rationale.
> 
> Usefulnesss is the only rationale.

I was asking for more details about the usefulness part.  Please humor
me, it's important for me to hear the arguments in favor of including
your submission.

Thanks.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-19  7:49             ` Eli Zaretskii
@ 2015-12-19  9:32               ` Vaidheeswaran C
  2015-12-19 19:24               ` Glenn Morris
  1 sibling, 0 replies; 14+ messages in thread
From: Vaidheeswaran C @ 2015-12-19  9:32 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22189

Eli Zaretskii <eliz@gnu.org> writes:

>> Usefulnesss is the only rationale.
>
> I was asking for more details about the usefulness part.  Please humor
> me, it's important for me to hear the arguments in favor of including
> your submission.

I want the URL (wherever and whenever they occour) in buffers clickable.
`global-goto-address-mode' does just that.  (I can live without
`global-goto-address-prog-mode').

A simple `rgrep' on the lisp files gives me 971 hits for the `http://'
URLs.  This is a number AFTER flushing out the lines that match
`http://www.gnu.org/licenses/'.

I would like to hear what alternatives you have to offer for
`global-goto-address-mode' that matches it SIMPLICITY.

Btw, if the change I propose moves to my .emacs, it cannot be used by a
Random Joe out there.  When I submitted the patch, I went with "If it is
useful for me, it is useful for atleast someother person out there".

If the real concern is bloat, it would be useful to think along the
lines of what mis-feature it might bring AFTER THE FACT.  (Think
`hi-lock-exclude-modes').





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-19  7:49             ` Eli Zaretskii
  2015-12-19  9:32               ` Vaidheeswaran C
@ 2015-12-19 19:24               ` Glenn Morris
  2015-12-20  5:39                 ` Vaidheeswaran C
  2016-02-23  4:38                 ` Lars Ingebrigtsen
  1 sibling, 2 replies; 14+ messages in thread
From: Glenn Morris @ 2015-12-19 19:24 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22189


I would be wary of getting too involved in this discussion.

FYI, this is (fairly obviously) the guy who cancelled his previous
copyright assignment (and closed all his bug reports). Showing up under
a pseudonym, making no acknowledgement of or apology for previous
behaviour, and carrying on with the same contentious style, doesn't
incline me to pay any attention to him. Nor do I put any trust in any
copyright assignment. There are thousands more reports to deal with from
people who haven't gone out of their way to be disruptive.

Ref: http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00499.html

(if the posting style doesn't give it away)

(The above is all IMO.)





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-19 19:24               ` Glenn Morris
@ 2015-12-20  5:39                 ` Vaidheeswaran C
  2016-02-23  4:38                 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 14+ messages in thread
From: Vaidheeswaran C @ 2015-12-20  5:39 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 22189


Glenn

Glenn Morris <rgm@gnu.org> writes:

> I would be wary of getting too involved in this discussion.

Thanks for your opinions.  You seem to think that Eli deserves some
advice from you.  Presumptuous I say ...

Jambunathan K.






^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-17 16:55 ` Eli Zaretskii
  2015-12-18  2:50   ` Vaidheeswaran C
@ 2015-12-20 22:37   ` John Wiegley
  2015-12-21  3:46     ` Eli Zaretskii
  1 sibling, 1 reply; 14+ messages in thread
From: John Wiegley @ 2015-12-20 22:37 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Vaidheeswaran C, 22189

>>>>> Eli Zaretskii <eliz@gnu.org> writes:

> Any rationale for adding these?

I don't see a reason not to accept this patch on master. Unless I'm not seeing
a reason *not* to want `goto-address-mode' easily enabled globally.

To Vaidheeswaran: Patches are accepted at the whim of the maintainers, so if
we ask you for clarification, please do not be short or glib with us. All you
need to say is, "I believe it would be useful for users to be able to easily
enable goto-address-mode in all buffers".

That said, we don't operate in a mode of doing whatever is possible, but
rather what we wish to maintain. This change alone is harmless, but a hundred
such changes could cause much annoyance. This is why we ask for rationale,
when it may seem pointless to do so.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-20 22:37   ` John Wiegley
@ 2015-12-21  3:46     ` Eli Zaretskii
  0 siblings, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2015-12-21  3:46 UTC (permalink / raw)
  To: John Wiegley; +Cc: vaidheeswaran.chinnaraju, 22189

> From: John Wiegley <jwiegley@gmail.com>
> Cc: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>,  22189@debbugs.gnu.org
> Date: Sun, 20 Dec 2015 14:37:59 -0800
> 
> >>>>> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Any rationale for adding these?
> 
> I don't see a reason not to accept this patch on master. Unless I'm not seeing
> a reason *not* to want `goto-address-mode' easily enabled globally.

No such reason, IMO.  My doubts were exclusively about whether this is
important enough to make it part of Emacs (as opposed to something
users should do in their customizations).





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode'
  2015-12-19 19:24               ` Glenn Morris
  2015-12-20  5:39                 ` Vaidheeswaran C
@ 2016-02-23  4:38                 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 14+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-23  4:38 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 22189

Glenn Morris <rgm@gnu.org> writes:

> FYI, this is (fairly obviously) the guy who cancelled his previous
> copyright assignment (and closed all his bug reports). Showing up under
> a pseudonym, making no acknowledgement of or apology for previous
> behaviour, and carrying on with the same contentious style, doesn't
> incline me to pay any attention to him. Nor do I put any trust in any
> copyright assignment.

Yes, that sounds pretty dicey.  I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-02-23  4:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-16 14:15 bug#22189: 25.1.50; [PATCH] Add `global-goto-address-mode' and `global-goto-address-prog-mode' Vaidheeswaran C
2015-12-17 16:55 ` Eli Zaretskii
2015-12-18  2:50   ` Vaidheeswaran C
2015-12-18  7:00     ` Eli Zaretskii
2015-12-18  7:16       ` Vaidheeswaran C
2015-12-18  8:59         ` Eli Zaretskii
2015-12-19  3:36           ` Vaidheeswaran C
2015-12-19  7:49             ` Eli Zaretskii
2015-12-19  9:32               ` Vaidheeswaran C
2015-12-19 19:24               ` Glenn Morris
2015-12-20  5:39                 ` Vaidheeswaran C
2016-02-23  4:38                 ` Lars Ingebrigtsen
2015-12-20 22:37   ` John Wiegley
2015-12-21  3:46     ` Eli Zaretskii

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).