aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/apropos.el14
-rw-r--r--lisp/progmodes/antlr-mode.el5
-rw-r--r--lisp/progmodes/idlwave.el3
-rw-r--r--lisp/textmodes/artist.el24
4 files changed, 14 insertions, 32 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 6d8c7847b02..e7e8955afe8 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -863,14 +863,12 @@ Optional arg BUFFER (default: current buffer) is the buffer to check."
863 (setq apropos-accumulator (cons (list symb (apropos-score-str var) nil var) 863 (setq apropos-accumulator (cons (list symb (apropos-score-str var) nil var)
864 apropos-accumulator)))))) 864 apropos-accumulator))))))
865 (let ((apropos-multi-type nil)) 865 (let ((apropos-multi-type nil))
866 (if (> emacs-major-version 20) 866 (apropos-print
867 (apropos-print 867 nil "\n----------------\n"
868 nil "\n----------------\n" 868 (format "Buffer `%s' has the following local variables\nmatching %s`%s':"
869 (format "Buffer `%s' has the following local variables\nmatching %s`%s':" 869 (buffer-name buffer)
870 (buffer-name buffer) 870 (if (consp pattern) "keywords " "")
871 (if (consp pattern) "keywords " "") 871 pattern))))
872 pattern))
873 (apropos-print nil "\n----------------\n"))))
874 872
875;;;###autoload 873;;;###autoload
876(defun apropos-documentation (pattern &optional do-all) 874(defun apropos-documentation (pattern &optional do-all)
diff --git a/lisp/progmodes/antlr-mode.el b/lisp/progmodes/antlr-mode.el
index 24e1f8831a0..29adf3b1901 100644
--- a/lisp/progmodes/antlr-mode.el
+++ b/lisp/progmodes/antlr-mode.el
@@ -720,9 +720,8 @@ imenu."
720 "Major mode menu." 720 "Major mode menu."
721 `("Antlr" 721 `("Antlr"
722 ,@(if (cond-emacs-xemacs 722 ,@(if (cond-emacs-xemacs
723 :EMACS (and antlr-options-use-submenus 723 :EMACS antlr-options-use-submenus
724 (>= emacs-major-version 21)) 724 :XEMACS antlr-options-use-submenus)
725 :XEMACS antlr-options-use-submenus)
726 `(("Insert File Option" 725 `(("Insert File Option"
727 :filter ,(lambda (x) (antlr-options-menu-filter 1 x))) 726 :filter ,(lambda (x) (antlr-options-menu-filter 1 x)))
728 ("Insert Grammar Option" 727 ("Insert Grammar Option"
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index 90e56943f20..121f5d63044 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -6727,8 +6727,7 @@ accumulate information on matching completions."
6727 (not super-classes))) ; no possibilities for inheritance 6727 (not super-classes))) ; no possibilities for inheritance
6728 ;; In these cases, we do not have to do anything 6728 ;; In these cases, we do not have to do anything
6729 list 6729 list
6730 (let* ((do-prop (and (>= show-classes 0) 6730 (let* ((do-prop (>= show-classes 0))
6731 (>= emacs-major-version 21)))
6732 (do-buf (not (= show-classes 0))) 6731 (do-buf (not (= show-classes 0)))
6733 (do-dots t) 6732 (do-dots t)
6734 (inherit (if (and (not (eq type 'class-tag)) super-classes) 6733 (inherit (if (and (not (eq type 'class-tag)) super-classes)
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el
index 9c94fff12c3..75b13bd7d8e 100644
--- a/lisp/textmodes/artist.el
+++ b/lisp/textmodes/artist.el
@@ -1993,25 +1993,11 @@ The replacement is used to convert tabs and new-lines to spaces."
1993 1993
1994(defun artist-replace-chars (new-char count) 1994(defun artist-replace-chars (new-char count)
1995 "Replace characters at point with NEW-CHAR. COUNT chars are replaced." 1995 "Replace characters at point with NEW-CHAR. COUNT chars are replaced."
1996 ;; Check that the variable exists first. The doc says it was added in 19.23. 1996 (let ((overwrite-mode 'overwrite-mode-textual)
1997 (if (and (and (boundp 'emacs-major-version) (= emacs-major-version 20)) 1997 (fill-column 32765) ; Large :-)
1998 (and (boundp 'emacs-minor-version) (<= emacs-minor-version 3))) 1998 (blink-matching-paren nil))
1999 ;; This is a bug workaround for Emacs 20, versions up to 20.3: 1999 (setq last-command-event (artist-get-replacement-char new-char))
2000 ;; The self-insert-command doesn't care about the overwrite-mode, 2000 (self-insert-command count)))
2001 ;; so the insertion is done in the same way as in picture mode.
2002 ;; This seems to be a little bit slower.
2003 (let* ((replaced-c (artist-get-replacement-char new-char))
2004 (replaced-s (make-string count replaced-c)))
2005 (artist-move-to-xy (+ (artist-current-column) count)
2006 (artist-current-line))
2007 (delete-char (- count))
2008 (insert replaced-s))
2009 ;; In emacs-19, the self-insert-command works better
2010 (let ((overwrite-mode 'overwrite-mode-textual)
2011 (fill-column 32765) ; Large :-)
2012 (blink-matching-paren nil))
2013 (setq last-command-event (artist-get-replacement-char new-char))
2014 (self-insert-command count))))
2015 2001
2016(defsubst artist-replace-string (string &optional see-thru) 2002(defsubst artist-replace-string (string &optional see-thru)
2017 "Replace contents at point with STRING. 2003 "Replace contents at point with STRING.