unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40703: [PATCH] Make autoarg.el obsolete
@ 2020-04-19  1:20 Stefan Kangas
  2020-04-19 14:08 ` Eli Zaretskii
  2022-02-15  9:56 ` bug#40703: Unable to turn off autoarg-kp-mode Lars Ingebrigtsen
  0 siblings, 2 replies; 13+ messages in thread
From: Stefan Kangas @ 2020-04-19  1:20 UTC (permalink / raw)
  To: 40703

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

Severity: wishlist

autoarg.el "provides `autoarg-mode', a global minor mode meant to
emulate a facility reported from Twenex Emacs whereby digit keys
supplied prefix args rather than self inserting, with a digit sequence
terminated by space acting to insert the digits".

While searching the web, I could find no evidence of autoarg-mode
being discussed or even mentioned.  It is presumably not very useful
in this day and age.  (I also found a breaking bug in autoarg-kp-mode
where enabling it also enables autoarg-mode.  Nobody seems to have
noticed.)

Does anyone object to marking it obsolete?

Best regards,
Stefan Kangas

[-- Attachment #2: 0001-Make-autoarg.el-obsolete.patch --]
[-- Type: text/x-patch, Size: 1432 bytes --]

From c355b5b5ea91b7125a80b23b3de3bd2655915b17 Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Sun, 19 Apr 2020 02:56:55 +0200
Subject: [PATCH] Make autoarg.el obsolete

* lisp/autoarg.el: Move from here...
* lisp/obsolete/autoarg.el: ...to here.
* etc/NEWS: Announce that autoarg.el is now obsolete.
---
 etc/NEWS                       | 5 +++++
 lisp/{ => obsolete}/autoarg.el | 1 +
 2 files changed, 6 insertions(+)
 rename lisp/{ => obsolete}/autoarg.el (99%)

diff --git a/etc/NEWS b/etc/NEWS
index 025d5c14a7..476973e9eb 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -288,6 +288,11 @@ prefix on the Subject line in various languages.
 These new navigation commands are bound to 'n' and 'p' in
 'apropos-mode'.
 
+** The autoarg.el library is now marked obsolete.
+This library provides the 'autoarg-mode' and 'autoarg-kp-mode' minor
+modes to emulate the behavior of the historical editor Twenex Emacs.
+It is believed to no longer be useful.
+
 \f
 * New Modes and Packages in Emacs 28.1
 
diff --git a/lisp/autoarg.el b/lisp/obsolete/autoarg.el
similarity index 99%
rename from lisp/autoarg.el
rename to lisp/obsolete/autoarg.el
index eba7a187fa..b93d663e2f 100644
--- a/lisp/autoarg.el
+++ b/lisp/obsolete/autoarg.el
@@ -5,6 +5,7 @@
 ;; Author:  Dave Love <fx@gnu.org>
 ;; Created: 1998-09-04
 ;; Keywords: abbrev, emulations
+;; Obsolete-since: 28.1
 
 ;; This file is part of GNU Emacs.
 
-- 
2.25.1


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

* bug#40703: [PATCH] Make autoarg.el obsolete
  2020-04-19  1:20 bug#40703: [PATCH] Make autoarg.el obsolete Stefan Kangas
@ 2020-04-19 14:08 ` Eli Zaretskii
  2020-04-19 23:25   ` Stefan Kangas
  2022-02-15  9:56 ` bug#40703: Unable to turn off autoarg-kp-mode Lars Ingebrigtsen
  1 sibling, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2020-04-19 14:08 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 40703

> From: Stefan Kangas <stefan@marxist.se>
> Date: Sun, 19 Apr 2020 03:20:50 +0200
> 
> autoarg.el "provides `autoarg-mode', a global minor mode meant to
> emulate a facility reported from Twenex Emacs whereby digit keys
> supplied prefix args rather than self inserting, with a digit sequence
> terminated by space acting to insert the digits".
> 
> While searching the web, I could find no evidence of autoarg-mode
> being discussed or even mentioned.  It is presumably not very useful
> in this day and age.  (I also found a breaking bug in autoarg-kp-mode
> where enabling it also enables autoarg-mode.  Nobody seems to have
> noticed.)
> 
> Does anyone object to marking it obsolete?

AFAIR, when we deprecate a package, it's because there's some
replacement, or because the need is completely absent (e.g., because
the package caters to some software or part of Emacs that is no longer
there).  This doesn't seem to be the case, is it?

Or does this package cause us some maintenance burden?





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

* bug#40703: [PATCH] Make autoarg.el obsolete
  2020-04-19 14:08 ` Eli Zaretskii
@ 2020-04-19 23:25   ` Stefan Kangas
  2020-04-19 23:57     ` Michael Heerdegen
  0 siblings, 1 reply; 13+ messages in thread
From: Stefan Kangas @ 2020-04-19 23:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 40703

Eli Zaretskii <eliz@gnu.org> writes:

> AFAIR, when we deprecate a package, it's because there's some
> replacement, or because the need is completely absent (e.g., because
> the package caters to some software or part of Emacs that is no longer
> there).  This doesn't seem to be the case, is it?
>
> Or does this package cause us some maintenance burden?

Well, as it stands 'autoarg-kp-mode' is broken.  It enables
'autoarg-mode', which kind of defeats the point of having a separate
mode to only enable this behaviour for the keypad.  I suggest
deprecation as a better alternative than leaving it in a broken state
or spending any time to fix it.

I don't know if that's in line with our deprecation practices, but I
would assume there is some room to make judgement calls.

Best regards,
Stefan Kangas





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

* bug#40703: [PATCH] Make autoarg.el obsolete
  2020-04-19 23:25   ` Stefan Kangas
@ 2020-04-19 23:57     ` Michael Heerdegen
  2020-04-20  0:57       ` Stefan Kangas
  2020-04-20 14:29       ` Eli Zaretskii
  0 siblings, 2 replies; 13+ messages in thread
From: Michael Heerdegen @ 2020-04-19 23:57 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 40703

Stefan Kangas <stefan@marxist.se> writes:

> > Or does this package cause us some maintenance burden?
>
> Well, as it stands 'autoarg-kp-mode' is broken.  It enables
> 'autoarg-mode', which kind of defeats the point of having a separate
> mode to only enable this behaviour for the keypad.

Not for me.  Works here.  Are you sure?

FWIW, I think the mode is potentially useful.  It would be more useful
if there would be a local version, and if enabling autoarg-mode would
still allow me to enter digits with the keypad (i.e. the other way than
autoarg-kp-mode, because e.g. ...what? mhmm, I wanted to write an
example including integers but I can't enter them anymore, I can't turn
off autoarg mode.  It's just broken.  Will restart Emacs.

What I wanted to say was that large numbers are probably easier to type
on the keypad, and they are unlikely to be used as prefix arg.

Michael.





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

* bug#40703: [PATCH] Make autoarg.el obsolete
  2020-04-19 23:57     ` Michael Heerdegen
@ 2020-04-20  0:57       ` Stefan Kangas
  2020-04-20  1:27         ` Michael Heerdegen
  2020-04-20 14:29       ` Eli Zaretskii
  1 sibling, 1 reply; 13+ messages in thread
From: Stefan Kangas @ 2020-04-20  0:57 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: 40703

Michael Heerdegen <michael_heerdegen@web.de> writes:

> > Well, as it stands 'autoarg-kp-mode' is broken.  It enables
> > 'autoarg-mode', which kind of defeats the point of having a separate
> > mode to only enable this behaviour for the keypad.
>
> Not for me.  Works here.  Are you sure?

In "emacs -Q" using 26.1:

M-x autoarg-kp-mode
    Message: Autoarg-Kp mode enabled
[regular 2] a
   Buffer contents: 2a
[keypad 2] a
    Buffer contents: 2aaa
[regular 2] b
    Buffer contents: 2aaabb
M-x autoarg-kp-mode
    Message: Autoarg-Kp mode disabled
[keypad 2] c
    Buffer contents: 2aaabbcc
[regular 2] d
    Buffer contents: 2aaabbccdd
M-x autoarg-mode
   Message: Autoarg mode enabled
... same behaviour as above
M-x autoarg-mode
   Message: Autoarg mode disabled
... it's still not disabled

So actually the breakage here is worse than what I initially
described, since autoarg-kp-mode also can't be disabled.

autoarg-mode seems to toggle correctly though.

> mhmm, I wanted to write an
> example including integers but I can't enter them anymore, I can't turn
> off autoarg mode.  It's just broken.  Will restart Emacs.

It sounds like you see the same thing as me.

Best regards,
Stefan Kangas





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

* bug#40703: [PATCH] Make autoarg.el obsolete
  2020-04-20  0:57       ` Stefan Kangas
@ 2020-04-20  1:27         ` Michael Heerdegen
  0 siblings, 0 replies; 13+ messages in thread
From: Michael Heerdegen @ 2020-04-20  1:27 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 40703

Stefan Kangas <stefan@marxist.se> writes:

> It sounds like you see the same thing as me.

Exactly.

(defun autoarg-kp-digit-argument (arg)
  [...]
  (setq overriding-terminal-local-map universal-argument-map)) ;; <---

That's not good.  u-a-map contains the normal number keys (first
problem), and the overriding-terminal-local-map is never uninstalled
(that's why it can't be turned off).

Michael.





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

* bug#40703: [PATCH] Make autoarg.el obsolete
  2020-04-19 23:57     ` Michael Heerdegen
  2020-04-20  0:57       ` Stefan Kangas
@ 2020-04-20 14:29       ` Eli Zaretskii
  2020-04-24 10:02         ` Stefan Kangas
  1 sibling, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2020-04-20 14:29 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: stefan, 40703

> From: Michael Heerdegen <michael_heerdegen@web.de>
> Cc: Eli Zaretskii <eliz@gnu.org>,  40703@debbugs.gnu.org
> Date: Mon, 20 Apr 2020 01:57:52 +0200
> 
> FWIW, I think the mode is potentially useful.  It would be more useful
> if there would be a local version, and if enabling autoarg-mode would
> still allow me to enter digits with the keypad (i.e. the other way than
> autoarg-kp-mode, because e.g. ...what? mhmm, I wanted to write an
> example including integers but I can't enter them anymore, I can't turn
> off autoarg mode.  It's just broken.  Will restart Emacs.

Maybe we should just fix it so the mode could be turned off, then.





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

* bug#40703: [PATCH] Make autoarg.el obsolete
  2020-04-20 14:29       ` Eli Zaretskii
@ 2020-04-24 10:02         ` Stefan Kangas
  2020-09-30 17:59           ` Lars Ingebrigtsen
  0 siblings, 1 reply; 13+ messages in thread
From: Stefan Kangas @ 2020-04-24 10:02 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Michael Heerdegen, 40703

tags 40703 - patch
retitle 40703 Unable to turn off autoarg-kp-mode
thanks

Eli Zaretskii <eliz@gnu.org> writes:

>> FWIW, I think the mode is potentially useful.  It would be more useful
>> if there would be a local version, and if enabling autoarg-mode would
>> still allow me to enter digits with the keypad (i.e. the other way than
>> autoarg-kp-mode, because e.g. ...what? mhmm, I wanted to write an
>> example including integers but I can't enter them anymore, I can't turn
>> off autoarg mode.  It's just broken.  Will restart Emacs.
>
> Maybe we should just fix it so the mode could be turned off, then.

OK, I'm updating the bug to reflect that.

FWIW, I still think this mode is more of a historical musing than it
is useful.  But I accept that I'm in a minority here.

Best regards,
Stefan Kangas





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

* bug#40703: [PATCH] Make autoarg.el obsolete
  2020-04-24 10:02         ` Stefan Kangas
@ 2020-09-30 17:59           ` Lars Ingebrigtsen
  2020-10-03 23:01             ` Michael Heerdegen
  0 siblings, 1 reply; 13+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-30 17:59 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Michael Heerdegen, 40703

Stefan Kangas <stefan@marxist.se> writes:

> FWIW, I still think this mode is more of a historical musing than it
> is useful.  But I accept that I'm in a minority here.

I agree with you.  It's a feature that clearly doesn't work, which
should be a good indication that nobody uses it.  Doesn't work + Nobody
uses it spells "should be obsoleted" to me.  (I may be using the wrong
dictionary here, though.)

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





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

* bug#40703: [PATCH] Make autoarg.el obsolete
  2020-09-30 17:59           ` Lars Ingebrigtsen
@ 2020-10-03 23:01             ` Michael Heerdegen
  2020-10-05  6:45               ` Lars Ingebrigtsen
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Heerdegen @ 2020-10-03 23:01 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Stefan Kangas, 40703

Lars Ingebrigtsen <larsi@gnus.org> writes:

> I agree with you.  It's a feature that clearly doesn't work, which
> should be a good indication that nobody uses it.  Doesn't work + Nobody
> uses it spells "should be obsoleted" to me.  (I may be using the wrong
> dictionary here, though.)

Being able to use number pad for e.g. prefix args and numbers on the
first line for numbers as self-insert characters is not so unuseful.  Do
we have a replacement providing such a feature?

Michael.





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

* bug#40703: [PATCH] Make autoarg.el obsolete
  2020-10-03 23:01             ` Michael Heerdegen
@ 2020-10-05  6:45               ` Lars Ingebrigtsen
  2020-10-05  6:59                 ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-05  6:45 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: Stefan Kangas, 40703

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Being able to use number pad for e.g. prefix args and numbers on the
> first line for numbers as self-insert characters is not so unuseful.  Do
> we have a replacement providing such a feature?

The keypad bits of autoarg do seem like they could be useful, but that
it doesn't work, and nobody has complained, seems like a hint that
nobody wants that, either?

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





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

* bug#40703: [PATCH] Make autoarg.el obsolete
  2020-10-05  6:45               ` Lars Ingebrigtsen
@ 2020-10-05  6:59                 ` Eli Zaretskii
  0 siblings, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2020-10-05  6:59 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: michael_heerdegen, stefan, 40703

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Mon, 05 Oct 2020 08:45:37 +0200
> Cc: Stefan Kangas <stefan@marxist.se>, 40703@debbugs.gnu.org
> 
> The keypad bits of autoarg do seem like they could be useful, but that
> it doesn't work, and nobody has complained, seems like a hint that
> nobody wants that, either?

I don't think we should make such decisions based on no one's
complaining: I've heard many times that people don't complain about
problems they bump into for any number of reasons.

I think we should decide whether this functionality is useful, and if
so, try to fix it, if that is feasible.  We should only remove it if
we don't consider this useful or if fixing it is not feasible.





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

* bug#40703: Unable to turn off autoarg-kp-mode
  2020-04-19  1:20 bug#40703: [PATCH] Make autoarg.el obsolete Stefan Kangas
  2020-04-19 14:08 ` Eli Zaretskii
@ 2022-02-15  9:56 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 13+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-15  9:56 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 40703

Stefan Kangas <stefan@marxist.se> writes:

> While searching the web, I could find no evidence of autoarg-mode
> being discussed or even mentioned.  It is presumably not very useful
> in this day and age.  (I also found a breaking bug in autoarg-kp-mode
> where enabling it also enables autoarg-mode.  Nobody seems to have
> noticed.)
>
> Does anyone object to marking it obsolete?

I think everything here points towards nobody using this package, and
the way it's implemented is unfortunate.

Think making it obsolete might perhaps spur someone on to make a new
package -- if they want this functionality (which may be unlikely).

So I've now obsoleted it.  If it turns out that people are actually
using it, somehow, then we could reconsider.

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





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

end of thread, other threads:[~2022-02-15  9:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-19  1:20 bug#40703: [PATCH] Make autoarg.el obsolete Stefan Kangas
2020-04-19 14:08 ` Eli Zaretskii
2020-04-19 23:25   ` Stefan Kangas
2020-04-19 23:57     ` Michael Heerdegen
2020-04-20  0:57       ` Stefan Kangas
2020-04-20  1:27         ` Michael Heerdegen
2020-04-20 14:29       ` Eli Zaretskii
2020-04-24 10:02         ` Stefan Kangas
2020-09-30 17:59           ` Lars Ingebrigtsen
2020-10-03 23:01             ` Michael Heerdegen
2020-10-05  6:45               ` Lars Ingebrigtsen
2020-10-05  6:59                 ` Eli Zaretskii
2022-02-15  9:56 ` bug#40703: Unable to turn off autoarg-kp-mode Lars Ingebrigtsen

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