[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug#717293: w3m-el-snapshot: emacs21 byte compile error
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Fri, 19 Jul 2013 20:55:41 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 12090
- References: <87mwpj2ztc.fsf@xxxxxxxxx> <20130719.202113.1466839532329183587.tats%nobody@xxxxxxxxxxxxxxx>
In [emacs-w3m : No.12089] Tatsuya Kinoshita wrote:
> Hi emacs-w3m developers,
> Forwarded from Debian bug#717293
> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717293>:
> On July 19, 2013 at 9:50AM +1000, user42 (at zip.com.au) wrote:
>> Package: w3m-el-snapshot
>> Version: 1.4.517+0.20130704-1
>> Severity: normal
>> File: /usr/lib/emacsen-common/packages/install/w3m-el-snapshot
>>
>> I still have emacs21 installed and w3m-el-snapshot fails to byte compile
>> due to
>>
>> !! Symbol's function definition is void ((define-obsolete-function-alias))
>>
>> If /usr/share/doc/w3m-el-snapshot/README.gz is believed then emacs21 is
>> supposed to work. If that file is up to date ...
> Please use defalias and make-obsolete if Emacs 21 is still supported.
Oops, sorry. Could you try this workaround?
--8<---------------cut here---------------start------------->8---
--- w3m.el~ 2013-07-01 00:47:04.000000000 +0000
+++ w3m.el 2013-07-19 11:43:57.520719000 +0000
@@ -8681,6 +8681,12 @@
(run-hooks 'w3m-mode-setup-functions)
(w3m-run-mode-hooks 'w3m-mode-hook))
+(eval-when-compile
+ (if (fboundp 'define-obsolete-function-alias) nil
+ (defmacro define-obsolete-function-alias (obsolete-name current-name
+ &rest args)
+ `(defalias ,obsolete-name ,current-name))))
+
(condition-case nil
(define-obsolete-function-alias 'w3m-scroll-up-1 'w3m-scroll-up
"2013-01-23")
--8<---------------cut here---------------end--------------->8---
Er, but I'd like to drop Emacs 21 (and 22 if possible) since it
lashes developers.