Gnus development mailing list
 help / color / mirror / Atom feed
* executable-find moved to files.el in Emacs 22
@ 2005-05-13  8:13 Arne Jørgensen
  2005-05-13  8:39 ` Katsumi Yamaoka
  0 siblings, 1 reply; 15+ messages in thread
From: Arne Jørgensen @ 2005-05-13  8:13 UTC (permalink / raw)


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

Hi,

`executable-find' has just been moved from `executable' to `files' in
Emacs 22.

This patch fixes the two autoloads of `executable-find' in Gnus.

Kind regards,
-- 
Arne Jørgensen <http://arnested.dk/>


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: executable-find.patch --]
[-- Type: text/x-patch, Size: 2039 bytes --]

Index: lisp/ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/ChangeLog,v
retrieving revision 7.694
diff -u -p -r7.694 ChangeLog
--- lisp/ChangeLog	9 May 2005 19:18:02 -0000	7.694
+++ lisp/ChangeLog	13 May 2005 08:05:38 -0000
@@ -1,3 +1,10 @@
+2005-05-13  Arne J^[,Ax^[(Brgensen  <arne@arnested.dk>
+
+	* dgnushack.el: Autoload `executable-find' from `files' instead of
+	`executable' in Emacs 22.	
+
+	* hashcash.el: Ditto.
+
 2005-05-09  Simon Josefsson  <jas@extundo.com>
 
 	* pgg-gpg.el (pgg-gpg-possibly-cache-passphrase): Fix PIN caching,
Index: lisp/dgnushack.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/dgnushack.el,v
retrieving revision 7.16
diff -u -p -r7.16 dgnushack.el
--- lisp/dgnushack.el	26 Jan 2005 08:54:34 -0000	7.16
+++ lisp/dgnushack.el	13 May 2005 08:05:39 -0000
@@ -195,7 +195,9 @@ fixed in Emacs after 21.3."
     (autoload 'delete-annotation "annotations")
     (autoload 'dolist "cl-macs" nil nil 'macro)
     (autoload 'enriched-decode "enriched")
-    (autoload 'executable-find "executable")
+    (if (>= emacs-major-version 22)
+	(autoload 'executable-find "files")
+      (autoload 'executable-find "executable"))
     (autoload 'font-lock-fontify-buffer "font-lock" nil t)
     (autoload 'info "info" nil t)
     (autoload 'mail-fetch-field "mail-utils")
Index: lisp/hashcash.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/hashcash.el,v
retrieving revision 7.11
diff -u -p -r7.11 hashcash.el
--- lisp/hashcash.el	16 Jan 2005 10:00:19 -0000	7.11
+++ lisp/hashcash.el	13 May 2005 08:05:39 -0000
@@ -50,7 +50,9 @@
 ;;; Code:
 
 (eval-and-compile
- (autoload 'executable-find "executable"))
+  (if (>= emacs-major-version 22)
+      (autoload 'executable-find "files")
+    (autoload 'executable-find "executable")))
 
 (defcustom hashcash-default-payment 20
   "*The default number of bits to pay to unknown users.

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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-13  8:13 executable-find moved to files.el in Emacs 22 Arne Jørgensen
@ 2005-05-13  8:39 ` Katsumi Yamaoka
  2005-05-13  8:47   ` Norbert Koch
  2005-05-13  8:55   ` Arne Jørgensen
  0 siblings, 2 replies; 15+ messages in thread
From: Katsumi Yamaoka @ 2005-05-13  8:39 UTC (permalink / raw)


>>>>> In <8764xnk0gq.fsf@arnested.dk> Arne Jørgensen wrote:

> Hi,

> `executable-find' has just been moved from `executable' to `files' in
> Emacs 22.

> This patch fixes the two autoloads of `executable-find' in Gnus.

[...]

> -    (autoload 'executable-find "executable")
> +    (if (>= emacs-major-version 22)
> +	(autoload 'executable-find "files")
> +      (autoload 'executable-find "executable"))

files.el is always loaded, isn't it?

emacs-22.0.50 -batch -q -no-site-file -eval '(message "%s" (fboundp (quote executable-find)))'
t

And the docstring for `autoload' says:

  If function is already defined other than as an autoload,
  this does nothing and returns nil.

Regards,



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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-13  8:39 ` Katsumi Yamaoka
@ 2005-05-13  8:47   ` Norbert Koch
  2005-05-13  9:07     ` Katsumi Yamaoka
  2005-05-13  8:55   ` Arne Jørgensen
  1 sibling, 1 reply; 15+ messages in thread
From: Norbert Koch @ 2005-05-13  8:47 UTC (permalink / raw)


* Katsumi Yamaoka <yamaoka@jpl.org>:

Hi!

> files.el is always loaded, isn't it?

Not on my "XEmacs 21.4 (patch 17) \"Jumbo Shrimp\" [Lucid]
(i686-pc-cygwin, Mule) of Wed Apr 27 2005 on pcndhdeg"

I see the same error message.

norbert.



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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-13  8:39 ` Katsumi Yamaoka
  2005-05-13  8:47   ` Norbert Koch
@ 2005-05-13  8:55   ` Arne Jørgensen
  2005-05-13  9:27     ` Katsumi Yamaoka
  1 sibling, 1 reply; 15+ messages in thread
From: Arne Jørgensen @ 2005-05-13  8:55 UTC (permalink / raw)


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

Katsumi Yamaoka <yamaoka@jpl.org> writes:

>>>>>> In <8764xnk0gq.fsf@arnested.dk> Arne Jørgensen wrote:
>
>> Hi,
>
>> `executable-find' has just been moved from `executable' to `files' in
>> Emacs 22.
>
>> This patch fixes the two autoloads of `executable-find' in Gnus.
>
> [...]
>
>> -    (autoload 'executable-find "executable")
>> +    (if (>= emacs-major-version 22)
>> +	(autoload 'executable-find "files")
>> +      (autoload 'executable-find "executable"))
>
> files.el is always loaded, isn't it?

Right. So how about this patch then?

Kind regards,
-- 
Arne Jørgensen <http://arnested.dk/>


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: executable-find.patch --]
[-- Type: text/x-patch, Size: 1938 bytes --]

Index: lisp/ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/ChangeLog,v
retrieving revision 7.694
diff -u -p -r7.694 ChangeLog
--- lisp/ChangeLog	9 May 2005 19:18:02 -0000	7.694
+++ lisp/ChangeLog	13 May 2005 08:52:12 -0000
@@ -1,3 +1,10 @@
+2005-05-13  Arne J^[,Ax^[(Brgensen  <arne@arnested.dk>
+
+	* dgnushack.el: Don't autoload `executable-find' in Emacs 22 and
+	above.
+
+	* hashcash.el: Ditto.
+
 2005-05-09  Simon Josefsson  <jas@extundo.com>
 
 	* pgg-gpg.el (pgg-gpg-possibly-cache-passphrase): Fix PIN caching,
Index: lisp/dgnushack.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/dgnushack.el,v
retrieving revision 7.16
diff -u -p -r7.16 dgnushack.el
--- lisp/dgnushack.el	26 Jan 2005 08:54:34 -0000	7.16
+++ lisp/dgnushack.el	13 May 2005 08:52:12 -0000
@@ -195,7 +195,8 @@ fixed in Emacs after 21.3."
     (autoload 'delete-annotation "annotations")
     (autoload 'dolist "cl-macs" nil nil 'macro)
     (autoload 'enriched-decode "enriched")
-    (autoload 'executable-find "executable")
+    (when (< emacs-major-version 22)
+      (autoload 'executable-find "executable"))
     (autoload 'font-lock-fontify-buffer "font-lock" nil t)
     (autoload 'info "info" nil t)
     (autoload 'mail-fetch-field "mail-utils")
Index: lisp/hashcash.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/hashcash.el,v
retrieving revision 7.11
diff -u -p -r7.11 hashcash.el
--- lisp/hashcash.el	16 Jan 2005 10:00:19 -0000	7.11
+++ lisp/hashcash.el	13 May 2005 08:52:12 -0000
@@ -50,7 +50,8 @@
 ;;; Code:
 
 (eval-and-compile
- (autoload 'executable-find "executable"))
+  (when (< emacs-major-version 22)
+    (autoload 'executable-find "executable")))
 
 (defcustom hashcash-default-payment 20
   "*The default number of bits to pay to unknown users.

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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-13  8:47   ` Norbert Koch
@ 2005-05-13  9:07     ` Katsumi Yamaoka
  2005-05-13  9:26       ` Norbert Koch
  0 siblings, 1 reply; 15+ messages in thread
From: Katsumi Yamaoka @ 2005-05-13  9:07 UTC (permalink / raw)


>>>>> In <vz1x8bqzqb.fsf@arafel.viteno.net> Norbert Koch wrote:

>> files.el is always loaded, isn't it?

> Not on my "XEmacs 21.4 (patch 17) \"Jumbo Shrimp\" [Lucid]
> (i686-pc-cygwin, Mule) of Wed Apr 27 2005 on pcndhdeg"

> I see the same error message.

Oh, are all you talking about SXEmacs 22?




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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-13  9:07     ` Katsumi Yamaoka
@ 2005-05-13  9:26       ` Norbert Koch
  2005-05-13  9:34         ` Katsumi Yamaoka
  0 siblings, 1 reply; 15+ messages in thread
From: Norbert Koch @ 2005-05-13  9:26 UTC (permalink / raw)


* Katsumi Yamaoka <yamaoka@jpl.org>:

> Oh, are all you talking about SXEmacs 22?

No, XEmacs in this case, not SXemacs.

norbert.



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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-13  8:55   ` Arne Jørgensen
@ 2005-05-13  9:27     ` Katsumi Yamaoka
  2005-05-13  9:37       ` Katsumi Yamaoka
  0 siblings, 1 reply; 15+ messages in thread
From: Katsumi Yamaoka @ 2005-05-13  9:27 UTC (permalink / raw)


>>>>> In <87oebfh5ei.fsf@arnested.dk> Arne Jørgensen wrote:

>> files.el is always loaded, isn't it?

> Right. So how about this patch then?

I don't think it is necessary to Emacs because:

emacs-21.1 -batch -q -no-site-file -eval '(message "%s" (fboundp (quote executable-find)))'
t

How about SXEmacs 22?  I don't have it installed and don't know
which module provides that function.



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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-13  9:26       ` Norbert Koch
@ 2005-05-13  9:34         ` Katsumi Yamaoka
  2005-05-13 10:14           ` Norbert Koch
  0 siblings, 1 reply; 15+ messages in thread
From: Katsumi Yamaoka @ 2005-05-13  9:34 UTC (permalink / raw)


>>>>> In <vzwtq3pjbz.fsf@arafel.viteno.net> Norbert Koch wrote:

>> Oh, are all you talking about SXEmacs 22?

> No, XEmacs in this case, not SXemacs.

I'm confused.  I seem that sh-script/executable.el provides the
executable-find function in XEmacs.  Am I wrong?



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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-13  9:27     ` Katsumi Yamaoka
@ 2005-05-13  9:37       ` Katsumi Yamaoka
  2005-05-15 20:06         ` Arne Jørgensen
  2005-09-15  8:51         ` Jari Aalto
  0 siblings, 2 replies; 15+ messages in thread
From: Katsumi Yamaoka @ 2005-05-13  9:37 UTC (permalink / raw)


>>>>> In <b9yis1nv5lb.fsf@jpl.org> Katsumi Yamaoka wrote:

> I don't think it is necessary to Emacs because:

> emacs-21.1 -batch -q -no-site-file -eval '(message "%s" (fboundp (quote executable-find)))'
> t

I meant autoloads for executable-find is never needed to Emacs
that No Gnus supports.



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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-13  9:34         ` Katsumi Yamaoka
@ 2005-05-13 10:14           ` Norbert Koch
  0 siblings, 0 replies; 15+ messages in thread
From: Norbert Koch @ 2005-05-13 10:14 UTC (permalink / raw)


* Katsumi Yamaoka <yamaoka@jpl.org>:

> I'm confused.  I seem that sh-script/executable.el provides the
> executable-find function in XEmacs.  Am I wrong?

This is correct, but if I start my editor I get this message.  Maybe
sh-script is not autoloaded correctly or it's a timing issue (I doubt
that).

norbert.



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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-13  9:37       ` Katsumi Yamaoka
@ 2005-05-15 20:06         ` Arne Jørgensen
  2005-05-16  4:27           ` Katsumi Yamaoka
  2005-09-15  8:51         ` Jari Aalto
  1 sibling, 1 reply; 15+ messages in thread
From: Arne Jørgensen @ 2005-05-15 20:06 UTC (permalink / raw)


Katsumi Yamaoka <yamaoka@jpl.org> writes:

>>>>>> In <b9yis1nv5lb.fsf@jpl.org> Katsumi Yamaoka wrote:
>
>> I don't think it is necessary to Emacs because:
>
>> emacs-21.1 -batch -q -no-site-file -eval '(message "%s" (fboundp (quote executable-find)))'
>> t

I just realized that I only have a problem with `executable-find' on
my mac and not on my linux box. 

There seems to be other problems with the emacs build on my mac so
I'll have to investigate that further, but it's certainly not a Gnus
problem then.

> I meant autoloads for executable-find is never needed to Emacs
> that No Gnus supports.

But there is no need to define a autoload at all for `executable-find'
in No Gnus then?

Kind regards,
-- 
Arne Jørgensen <http://arnested.dk/>




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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-15 20:06         ` Arne Jørgensen
@ 2005-05-16  4:27           ` Katsumi Yamaoka
  0 siblings, 0 replies; 15+ messages in thread
From: Katsumi Yamaoka @ 2005-05-16  4:27 UTC (permalink / raw)


(The most recent changes in the v5-10 branch don't have to be
merged into the Gnus trunk.)

>>>>> In <87k6m0dzj3.fsf@arnested.dk> Arne Jørgensen wrote:

> But there is no need to define a autoload at all for `executable-find'
> in No Gnus then?

I've fixed it and others.  Thanks.



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

* Re: executable-find moved to files.el in Emacs 22
  2005-05-13  9:37       ` Katsumi Yamaoka
  2005-05-15 20:06         ` Arne Jørgensen
@ 2005-09-15  8:51         ` Jari Aalto
  2005-09-15  9:54           ` Katsumi Yamaoka
  1 sibling, 1 reply; 15+ messages in thread
From: Jari Aalto @ 2005-09-15  8:51 UTC (permalink / raw)


Katsumi Yamaoka <yamaoka@jpl.org> writes:

| >>>>> In <b9yis1nv5lb.fsf@jpl.org> Katsumi Yamaoka wrote:
>
| > I don't think it is necessary to Emacs because:
>
| > emacs-21.1 -batch -q -no-site-file -eval '(message "%s" (fboundp (quote executable-find)))'
| > t
>
> I meant autoloads for executable-find is never needed to Emacs
> that No Gnus supports.

The autolaod is needed. I run "No Gnus" from CVS with NT Emacs 21.2

Jari




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

* Re: executable-find moved to files.el in Emacs 22
  2005-09-15  8:51         ` Jari Aalto
@ 2005-09-15  9:54           ` Katsumi Yamaoka
  2005-09-16 11:16             ` Jari Aalto
  0 siblings, 1 reply; 15+ messages in thread
From: Katsumi Yamaoka @ 2005-09-15  9:54 UTC (permalink / raw)


>>>>> In <k6hiiui8.fsf@cante.net> Jari Aalto wrote:

> Katsumi Yamaoka <yamaoka@jpl.org> writes:

>|> I don't think it is necessary to Emacs because:

>|> emacs-21.1 -batch -q -no-site-file\
>|> -eval '(message "%s" (fboundp (quote executable-find)))'
>|> t

> The autolaod is needed. I run "No Gnus" from CVS with NT Emacs 21.2

In the Linux system, Emacs 21.2 is built with loaddefs.el which
contains the autoload for executable-find.  Do NT Emacsen lack
all those autoloads?

I'll add the autoload for executable-find to many files if it is
a universal problem.



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

* Re: executable-find moved to files.el in Emacs 22
  2005-09-15  9:54           ` Katsumi Yamaoka
@ 2005-09-16 11:16             ` Jari Aalto
  0 siblings, 0 replies; 15+ messages in thread
From: Jari Aalto @ 2005-09-16 11:16 UTC (permalink / raw)


Katsumi Yamaoka <yamaoka@jpl.org> writes:
| > The autolaod is needed. I run "No Gnus" from CVS with NT Emacs 21.2
| 
| In the Linux system, Emacs 21.2 is built with loaddefs.el which
| contains the autoload for executable-find.  Do NT Emacsen lack
| all those autoloads?

You're right. 21.2 includes this. It must have been older Emacs.

Jari




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

end of thread, other threads:[~2005-09-16 11:16 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-13  8:13 executable-find moved to files.el in Emacs 22 Arne Jørgensen
2005-05-13  8:39 ` Katsumi Yamaoka
2005-05-13  8:47   ` Norbert Koch
2005-05-13  9:07     ` Katsumi Yamaoka
2005-05-13  9:26       ` Norbert Koch
2005-05-13  9:34         ` Katsumi Yamaoka
2005-05-13 10:14           ` Norbert Koch
2005-05-13  8:55   ` Arne Jørgensen
2005-05-13  9:27     ` Katsumi Yamaoka
2005-05-13  9:37       ` Katsumi Yamaoka
2005-05-15 20:06         ` Arne Jørgensen
2005-05-16  4:27           ` Katsumi Yamaoka
2005-09-15  8:51         ` Jari Aalto
2005-09-15  9:54           ` Katsumi Yamaoka
2005-09-16 11:16             ` Jari Aalto

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