1. xemacs
  2. erc


adrian  committed 1e774b6

[S] [PATCH] packages: Fix mis-compiled erc macros <hdwlvbyl.fsf@smtpmail.t-online.de>

  • Participants
  • Parent commits 91b5a9c
  • Branches default

Comments (0)

Files changed (3)

File ChangeLog

View file
+2004-03-19  Adrian Aichner  <adrian@xemacs.org>
+	* erc-dcc.el (erc-dcc-get-file): XEmacs does not have
+	`set-buffer-multibyte'.  Setting of file coding variables takes
+	care of XEmacs.
+	* erc-members.el: Fix miscompiled macro by
+	requiring defining feature at the top-level.
 2004-03-19  Norbert Koch  <viteno@xemacs.org>
 	* Makefile (VERSION): XEmacs package 0.07 released.

File erc-dcc.el

View file
     (with-current-buffer buffer
-      ;; This is necessary to have the buffer saved as-is.
-      (set-buffer-multibyte nil)
+      ;; This is necessary to have the buffer saved as-is in GNU
+      ;; Emacs.
+      ;; XEmacs change: We don't have `set-buffer-multibyte', setting
+      ;; coding system to 'binary below takes care of us.
+      (when (fboundp 'set-buffer-multibyte)
+	(set-buffer-multibyte nil))
       (setq mode-line-process '(":%s")
 	    buffer-file-type t

File erc-members.el

View file
 ;;; Code:
+;; Avoid miscompiling macro `erc-log' and `with-erc-channel-buffer' in
+;; absence of loaded definition from 'erc.
+;; See 2004-03-15_23-01_macro_err_1.txt in
+;; http://labb.contactor.se/~matsl/smoketest/logs/
+;; or newer results for miscompiled macros.
+(eval-when-compile (require 'erc))
 (require 'cl); for defstruct
 (defvar erc-members (makehash 'eq)