Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix compilation of Gnus in XEmacsen
@ 2012-10-24 16:40 Nelson Ferreira
  2012-10-25  0:24 ` Katsumi Yamaoka
  0 siblings, 1 reply; 2+ messages in thread
From: Nelson Ferreira @ 2012-10-24 16:40 UTC (permalink / raw)
  To: ding

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


In (S)XEmacs define-compiler-macro is defined in cl-macs.

Doing a require of cl-macs when on XEmacsen.



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

diff --git a/lisp/dgnushack.el b/lisp/dgnushack.el
index 40d3019..714bde7 100644
--- a/lisp/dgnushack.el
+++ b/lisp/dgnushack.el
@@ -28,8 +28,11 @@
 
 (defalias 'facep 'ignore)
 
+
 (require 'cl)
 (require 'iswitchb)
+(when (featurep 'xemacs)
+	(require 'cl-macs))
 
 (condition-case nil
     (require 'org-entities)

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

* Re: [PATCH] Fix compilation of Gnus in XEmacsen
  2012-10-24 16:40 [PATCH] Fix compilation of Gnus in XEmacsen Nelson Ferreira
@ 2012-10-25  0:24 ` Katsumi Yamaoka
  0 siblings, 0 replies; 2+ messages in thread
From: Katsumi Yamaoka @ 2012-10-25  0:24 UTC (permalink / raw)
  To: ding

Nelson Ferreira wrote:
> In (S)XEmacs define-compiler-macro is defined in cl-macs.
> Doing a require of cl-macs when on XEmacsen.

[...]

> +(when (featurep 'xemacs)
> +	(require 'cl-macs))

I realized why I'm not troubled with this.  That is I normally
use XEmacs 21.5 to check the Gnus build; dgnushack.el loads
bytecomp, and its XEmacs 21.5 version loads cl-macs:

,---- bytecomp.el
| ;;; Some packages byte-compile with -no-autoloads, so this is necessary:
| (autoload 'cl-compile-time-init "cl-macs")
|
| ;; XEmacs; call this explicitly, don't implement it using bytecomp-load-hook.
| (cl-compile-time-init)
`----

Not only SXEmacs but also XEmacs 21.4 requires this, so I've added
the autoload for define-compiler-macro to dgnushack.el.  Thanks.



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

end of thread, other threads:[~2012-10-25  0:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-24 16:40 [PATCH] Fix compilation of Gnus in XEmacsen Nelson Ferreira
2012-10-25  0:24 ` 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).