1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#! /bin/sh /usr/share/dpatch/dpatch-run
## 900_flyspell.el_has-defvaralias.dpatch by Agustin Martin Domingo <agmartin@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: use defvaralias only if available
(defvaralias) availability
emacs21: no
emacs22: yes
emacs23: yes
emacs-snapshot: yes
xemacs: si
@DPATCH@
diff -urNad dictionaries-common~/support/emacsen/flyspell.el dictionaries-common/support/emacsen/flyspell.el
--- dictionaries-common~/support/emacsen/flyspell.el 2007-06-07 16:19:16.000000000 +0200
+++ dictionaries-common/support/emacsen/flyspell.el 2007-06-07 16:19:16.000000000 +0200
@@ -280,8 +280,9 @@
Flyspell mode sets this variable to whatever is the `flyspell-mode-predicate'
property of the major mode name.")
(make-variable-buffer-local 'flyspell-generic-check-word-predicate)
-(defvaralias 'flyspell-generic-check-word-p
- 'flyspell-generic-check-word-predicate)
+(if (fboundp 'defvaralias)
+ (defvaralias 'flyspell-generic-check-word-p
+ 'flyspell-generic-check-word-predicate))
;;*--- mail mode -------------------------------------------------------*/
(put 'mail-mode 'flyspell-mode-predicate 'mail-mode-flyspell-verify)
|