unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs 25.0.04: Feature Request: Make called-interactively-p's argument optional
@ 2016-06-27 20:35 Robert Weiner
  2016-06-28 19:09 ` John Wiegley
  2016-06-28 20:29 ` Glenn Morris
  0 siblings, 2 replies; 37+ messages in thread
From: Robert Weiner @ 2016-06-27 20:35 UTC (permalink / raw)
  To: emacs-devel

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

I have some older code with a lot of calls to (interactive-p) for which
I am having to substitute (called-interactively-p 'interactive) to get the
same behavior with a non-obsoleted call.  Visually, this does not read well
to me and I imagine others.  What do people think of making the argument
optional and defaulting it to the behavior of (interactive-p) which I
believe equates to the 'interactive argument value?

Then we would have: if (called-interactively-p) ...) in a lot of places and
that would look much better and be much easier to call properly.

When more complex behavior is needed, the argument could be given.

Bob

[-- Attachment #2: Type: text/html, Size: 1331 bytes --]

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

end of thread, other threads:[~2016-07-06 15:20 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-27 20:35 Emacs 25.0.04: Feature Request: Make called-interactively-p's argument optional Robert Weiner
2016-06-28 19:09 ` John Wiegley
2016-06-28 20:28   ` Robert Weiner
2016-06-30 16:54   ` Andreas Röhler
2016-06-28 20:29 ` Glenn Morris
2016-06-28 20:46   ` Robert Weiner
2016-06-28 20:51     ` Robert Weiner
2016-06-29 20:02     ` Richard Stallman
2016-06-29 20:54       ` Robert Weiner
2016-06-29 21:19         ` Drew Adams
2016-06-29 21:39           ` Robert Weiner
2016-06-29 21:48             ` Robert Weiner
2016-06-30 23:18               ` Richard Stallman
2016-06-29 21:21         ` Clément Pit--Claudel
2016-06-29 21:52           ` Dmitry Gutov
2016-06-29 22:00             ` Robert Weiner
2016-06-30  2:51         ` raman
2016-06-30 14:25           ` Robert Weiner
2016-06-30 15:30             ` Eli Zaretskii
2016-07-03 18:36               ` Andreas Röhler
2016-07-03 18:56                 ` Alan Mackenzie
2016-07-03 19:57                   ` Andreas Röhler
2016-07-03 19:31                 ` Eli Zaretskii
2016-06-30 15:34             ` raman
2016-07-03  0:10         ` Richard Stallman
2016-07-06  0:09   ` John Wiegley
2016-07-06  0:21     ` Dmitry Gutov
2016-07-06  0:31       ` John Wiegley
2016-07-06  1:46         ` raman
2016-07-06  2:05           ` Dmitry Gutov
2016-07-06 14:49           ` Eli Zaretskii
2016-07-06 15:14             ` raman
2016-07-06 14:48         ` Eli Zaretskii
2016-07-06 15:20           ` Robert Weiner
2016-07-06  0:24     ` Noam Postavsky
2016-07-06  5:03       ` Robert Weiner
2016-07-06  6:45         ` Andreas Röhler

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