all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Glenn Morris <rgm@gnu.org>, 22560@debbugs.gnu.org
Subject: bug#22560: forward-word etc should be interactive-only
Date: Thu, 4 Feb 2016 13:15:17 -0800 (PST)	[thread overview]
Message-ID: <862b3779-8af0-42b6-9e59-7012e4d10ef4@default> (raw)
In-Reply-To: <sopowcb359.fsf@fencepost.gnu.org>

> The new implementation of subword-mode means that forward-word etc need
> to be marked as interactive-only, all existing uses of such functions
> need to be reviewed, and the issue needs to be mentioned in NEWS.
> 
> See bug#17558, where this was all pointed out.

Commands such as `forward-word' are explicitly counted on by
thingatpt.el and 3rd-party libraries to be used non-interactively.
The thingatpt code moves forward and backward over things using
`forward-*' and `backward-*' commands noninteractively.

Why would/should/must we consider such a command to be
"interactive-only"?

I see this in Emacs 25 NEWS:

** New properties that can be specified with `declare':
*** (interactive-only INSTEAD), says to use INSTEAD for non-interactive use.

Presumably this means that if you declare `forward-word' as
`interactive-only' then you will at the same time provide an
alternative that replaces it for noninteractive use.

If you do that, you will break 3rd-party code (I assume that you
will update the thingatpt.el code to use the new replacement).

Why not instead create a new _command_ to replace the _interactive_
use?  That likely breaks no code, except for key bindings, which
are quickly discovered by users and updated.

Why would limiting function `forward-ANYTHING' to interactive
use be TRT?





  reply	other threads:[~2016-02-04 21:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-04 21:02 bug#22560: forward-word etc should be interactive-only Glenn Morris
2016-02-04 21:15 ` Drew Adams [this message]
2016-02-05  7:10 ` Lars Ingebrigtsen
2016-02-05 15:47   ` Drew Adams
2016-02-05 16:41   ` Glenn Morris
2016-02-05 16:44     ` Glenn Morris
2016-02-05 19:38     ` Eli Zaretskii
2016-02-05 20:16       ` Glenn Morris
2016-02-05 22:00         ` Eli Zaretskii
2016-02-05 22:15 ` Eli Zaretskii
2016-02-08 17:48   ` Glenn Morris
2016-02-10 18:32     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=862b3779-8af0-42b6-9e59-7012e4d10ef4@default \
    --to=drew.adams@oracle.com \
    --cc=22560@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.