Gnus development mailing list
 help / color / mirror / Atom feed
* called-interactively-p
@ 2010-11-24 22:33 Katsumi Yamaoka
  2010-11-24 22:41 ` called-interactively-p Katsumi Yamaoka
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Katsumi Yamaoka @ 2010-11-24 22:33 UTC (permalink / raw)
  To: ding

That's not in XEmacs.  Please don't use it.  Otherwise may I write
a compiler-macro, that replaces it with `interactively-p' in .elc
files, in dgnushack.el?



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

* Re: called-interactively-p
  2010-11-24 22:33 called-interactively-p Katsumi Yamaoka
@ 2010-11-24 22:41 ` Katsumi Yamaoka
  2010-11-24 22:46   ` called-interactively-p Julien Danjou
  2010-11-24 22:55 ` called-interactively-p Lars Magne Ingebrigtsen
  2010-11-25  0:24 ` called-interactively-p Katsumi Yamaoka
  2 siblings, 1 reply; 11+ messages in thread
From: Katsumi Yamaoka @ 2010-11-24 22:41 UTC (permalink / raw)
  To: ding

Katsumi Yamaoka wrote:
> That's not in XEmacs.  Please don't use it.  Otherwise may I write
> a compiler-macro, that replaces it with `interactively-p' in .elc
> files, in dgnushack.el?

`interactively-p' -> `interactive-p'

Another solution:

(defun function (&optional called-interactively-p)
  (interactive (list t))
  (if called-interactively-p then... else...))



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

* Re: called-interactively-p
  2010-11-24 22:41 ` called-interactively-p Katsumi Yamaoka
@ 2010-11-24 22:46   ` Julien Danjou
  0 siblings, 0 replies; 11+ messages in thread
From: Julien Danjou @ 2010-11-24 22:46 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: ding

<#secure method=pgpmime mode=sign>
On Wed, Nov 24 2010, Katsumi Yamaoka wrote:

>> That's not in XEmacs.  Please don't use it.  Otherwise may I write
>> a compiler-macro, that replaces it with `interactively-p' in .elc
>> files, in dgnushack.el?

That sounds good. Just add that in gnus-xmas.el I think. :(

> Another solution:
>
> (defun function (&optional called-interactively-p)
>   (interactive (list t))
>   (if called-interactively-p then... else...))

This is what I was trying to avoid and remove. :)

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info



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

* Re: called-interactively-p
  2010-11-24 22:33 called-interactively-p Katsumi Yamaoka
  2010-11-24 22:41 ` called-interactively-p Katsumi Yamaoka
@ 2010-11-24 22:55 ` Lars Magne Ingebrigtsen
  2010-11-24 22:59   ` called-interactively-p Julien Danjou
  2010-11-24 23:03   ` called-interactively-p Katsumi Yamaoka
  2010-11-25  0:24 ` called-interactively-p Katsumi Yamaoka
  2 siblings, 2 replies; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-11-24 22:55 UTC (permalink / raw)
  To: ding

Katsumi Yamaoka <yamaoka@jpl.org> writes:

> That's not in XEmacs.  Please don't use it.  Otherwise may I write
> a compiler-macro, that replaces it with `interactively-p' in .elc
> files, in dgnushack.el?

Perhaps we should just use `interactively-p' instead...  I mean, it's
obsolete in Emacs, but only recently...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: called-interactively-p
  2010-11-24 22:55 ` called-interactively-p Lars Magne Ingebrigtsen
@ 2010-11-24 22:59   ` Julien Danjou
  2010-11-24 23:02     ` called-interactively-p Lars Magne Ingebrigtsen
  2010-11-24 23:03   ` called-interactively-p Katsumi Yamaoka
  1 sibling, 1 reply; 11+ messages in thread
From: Julien Danjou @ 2010-11-24 22:59 UTC (permalink / raw)
  To: ding

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

On Wed, Nov 24 2010, Lars Magne Ingebrigtsen wrote:

> Perhaps we should just use `interactively-p' instead...  I mean, it's
> obsolete in Emacs, but only recently...

OTOH, considering XEmacs will not implement called-interactively-p,
we'll be at the same place in a few months/years.

So, what about fixing it now for ever (and for XEmacs)? :)

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: called-interactively-p
  2010-11-24 22:59   ` called-interactively-p Julien Danjou
@ 2010-11-24 23:02     ` Lars Magne Ingebrigtsen
  2010-11-24 23:11       ` called-interactively-p Lars Magne Ingebrigtsen
  2010-11-25 20:50       ` called-interactively-p Adam Sjøgren
  0 siblings, 2 replies; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-11-24 23:02 UTC (permalink / raw)
  To: ding

Julien Danjou <julien@danjou.info> writes:

> OTOH, considering XEmacs will not implement called-interactively-p,
> we'll be at the same place in a few months/years.

Yeah, what's up with XEmacs development?  Is anything happening there
whatsoever?  Perhaps I should subscribe the XEmacs scm list...

> So, what about fixing it now for ever (and for XEmacs)? :)

Yeah, that's probably a better idea.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: called-interactively-p
  2010-11-24 22:55 ` called-interactively-p Lars Magne Ingebrigtsen
  2010-11-24 22:59   ` called-interactively-p Julien Danjou
@ 2010-11-24 23:03   ` Katsumi Yamaoka
  1 sibling, 0 replies; 11+ messages in thread
From: Katsumi Yamaoka @ 2010-11-24 23:03 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen wrote:
> Perhaps we should just use `interactively-p' instead...  I mean, it's
> obsolete in Emacs, but only recently...

That's just what I did in pgg.el.  The Emacs version of pgg.el uses
called-interactively-p.



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

* Re: called-interactively-p
  2010-11-24 23:02     ` called-interactively-p Lars Magne Ingebrigtsen
@ 2010-11-24 23:11       ` Lars Magne Ingebrigtsen
  2010-11-24 23:34         ` called-interactively-p Katsumi Yamaoka
  2010-11-25 20:50       ` called-interactively-p Adam Sjøgren
  1 sibling, 1 reply; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-11-24 23:11 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Yeah, what's up with XEmacs development?  Is anything happening there
> whatsoever?  Perhaps I should subscribe the XEmacs scm list...

Apparently not much going on.  8 commits the last week...

And SXEmacs is totally dead now?  The last post to the mailing list was
31 weeks ago.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: called-interactively-p
  2010-11-24 23:11       ` called-interactively-p Lars Magne Ingebrigtsen
@ 2010-11-24 23:34         ` Katsumi Yamaoka
  0 siblings, 0 replies; 11+ messages in thread
From: Katsumi Yamaoka @ 2010-11-24 23:34 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen wrote:
> And SXEmacs is totally dead now?  The last post to the mailing list was
> 31 weeks ago.

The last change was done at November 24 in SXEmacs git.

Cf. http://www.sxemacs.org/



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

* Re: called-interactively-p
  2010-11-24 22:33 called-interactively-p Katsumi Yamaoka
  2010-11-24 22:41 ` called-interactively-p Katsumi Yamaoka
  2010-11-24 22:55 ` called-interactively-p Lars Magne Ingebrigtsen
@ 2010-11-25  0:24 ` Katsumi Yamaoka
  2 siblings, 0 replies; 11+ messages in thread
From: Katsumi Yamaoka @ 2010-11-25  0:24 UTC (permalink / raw)
  To: ding

Katsumi Yamaoka wrote:
> That's not in XEmacs.  Please don't use it.

Moreover called-interactively-p allows no argument in Emacs<23.2 .

,---- Emacs 23.1 ----
| called-interactively-p is a built-in function in `C source code'.
|
| (called-interactively-p)
|
| Return t if the function using this was called with `call-interactively'.
| [...]
`----

> Otherwise may I write
> a compiler-macro, that replaces it with `interactively-p' in .elc
> files, in dgnushack.el?

I added the following to dgnushack.el temporarily to build Gnus
for all the Emacsen that Gnus should support:

(define-compiler-macro called-interactively-p (&whole form &optional kind)
  (or (condition-case nil
	  (progn (called-interactively-p 'any) nil)
	(wrong-number-of-arguments '(called-interactively-p))
	(void-function '(interactive-p)))
      form))



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

* Re: called-interactively-p
  2010-11-24 23:02     ` called-interactively-p Lars Magne Ingebrigtsen
  2010-11-24 23:11       ` called-interactively-p Lars Magne Ingebrigtsen
@ 2010-11-25 20:50       ` Adam Sjøgren
  1 sibling, 0 replies; 11+ messages in thread
From: Adam Sjøgren @ 2010-11-25 20:50 UTC (permalink / raw)
  To: ding

On Thu, 25 Nov 2010 00:02:57 +0100, Lars wrote:

> Yeah, what's up with XEmacs development?

Conversion to GPLv3 is still underway...

> Is anything happening there whatsoever?

I am tempted to say that the speed of development is glacial, but with
the rapidly melting glaciers, I'm not sure the comparison is apt.


  ;-),

   Adam

-- 
 "ÅH NEJ, VI HAR EN ØSTERS SOM STATSMINISTER!"                Adam Sjøgren
                                                         asjo@koldfront.dk




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

end of thread, other threads:[~2010-11-25 20:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-24 22:33 called-interactively-p Katsumi Yamaoka
2010-11-24 22:41 ` called-interactively-p Katsumi Yamaoka
2010-11-24 22:46   ` called-interactively-p Julien Danjou
2010-11-24 22:55 ` called-interactively-p Lars Magne Ingebrigtsen
2010-11-24 22:59   ` called-interactively-p Julien Danjou
2010-11-24 23:02     ` called-interactively-p Lars Magne Ingebrigtsen
2010-11-24 23:11       ` called-interactively-p Lars Magne Ingebrigtsen
2010-11-24 23:34         ` called-interactively-p Katsumi Yamaoka
2010-11-25 20:50       ` called-interactively-p Adam Sjøgren
2010-11-24 23:03   ` called-interactively-p Katsumi Yamaoka
2010-11-25  0:24 ` called-interactively-p Katsumi Yamaoka

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 NNTP newsgroup(s).