|
From: | Andreas Röhler |
Subject: | Re: [emacs-w3m:11603] Re: interactive-p obsolete |
Date: | Wed, 06 Jul 2011 13:22:30 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11 |
Am 06.07.2011 09:09, schrieb Tim Cross:
I don't believe the argument of not being able to use the new function because of the need for backwards compatibility is valid. You can solve this problem in a number of ways and maintain backwards compatibility. In fact, its not uncommon to have to do this or that different from wanting to maintain compatibility with emacs and xemcas etc. If there is some other argument for not making the change, I'd be interested in hearing it. Tim
Hi Tim,from my perspective --which might miss the point anyway-- exist several reasons for reverting the change.
First: what is the gain? IMHO new function is more difficult to use, slows down writing, needs more reflection than the old one.
So to say: some classic over-specification.We must not differentiate here, better a simple one-for-all-function not bothering for specific argument: just interactive-p
Alltogether new design evens doesn't deliver the basics needed, saying: "This function is meant for implementing advice and other function-modifying features. Instead of using this, it is sometimes cleaner to give your function an extra optional argument whose `interactive' spec specifies non-nil unconditionally ("p" is a good way to do this), or via (not (or executing-kbd-macro noninteractive))." : hodge-podge Andreas
On Wed, Jul 6, 2011 at 4:12 PM, Andreas Röhler <address@hidden> wrote:Hi, making `interactive-p' obsolete, does this change pay? I'm in favour of keeping interactive-p, resp. undoing that change. Cheers, Andreas -------- Original-Nachricht -------- Betreff: [emacs-w3m:11603] Re: interactive-p obsolete Datum: Wed, 06 Jul 2011 12:58:03 +0900 Von: Katsumi Yamaoka<address@hidden> Antwort an: address@hidden, address@hidden Organisation: Emacsen advocacy group An: address@hidden CC: address@hidden In [emacs-w3m : No.11600] address@hidden wrote:On (info "(emacs-w3m) Gnus") we are told to use (if (interactive-p) However This function is obsolete since 23.2; use `called-interactively-p' instead. Please update the paragraph and tell us what you used. Thanks.We cannot use `called-interactively-p', otherwise emacs-w3m won't work with old Emacsen. Some Lisp packages, even in the Emacs trunk, still use `interactive-p' for the same reason.
[Prev in Thread] | Current Thread | [Next in Thread] |