[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 51d011d 04/23: Remove tests for built-in functions
From: |
Reuben Thomas |
Subject: |
[Emacs-diffs] master 51d011d 04/23: Remove tests for built-in functions |
Date: |
Tue, 13 Dec 2016 19:44:36 +0000 (UTC) |
branch: master
commit 51d011d6bbc0bc03bb41893037d41b19f9ff014d
Author: Reuben Thomas <address@hidden>
Commit: Reuben Thomas <address@hidden>
Remove tests for built-in functions
* lisp/textmodes/ispell.el (buffer-substring-no-properties): Remove
back-up definition.
(ispell-add-per-file-word-list): Remove tests for comment-padright and
comment-normalize-vars.
---
lisp/textmodes/ispell.el | 32 ++++++++++++--------------------
1 file changed, 12 insertions(+), 20 deletions(-)
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 554905c..462cb32 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -132,10 +132,6 @@
"User variables for Emacs ispell interface."
:group 'applications)
-(if (not (fboundp 'buffer-substring-no-properties))
- (defun buffer-substring-no-properties (start end)
- (buffer-substring start end)))
-
(defalias 'check-ispell-version 'ispell-check-version)
;;; **********************************************************************
@@ -2300,15 +2296,15 @@ Global `ispell-quit' set to start location to continue
spell session."
((= char ?i) ; accept and insert word into pers dict
(ispell-send-string (concat "*" word "\n"))
(setq ispell-pdict-modified-p '(t)) ; dictionary modified!
- (and (fboundp 'flyspell-unhighlight-at)
- (flyspell-unhighlight-at start))
+ (when (fboundp 'flyspell-unhighlight-at)
+ (flyspell-unhighlight-at start))
nil)
((or (= char ?a) (= char ?A)) ; accept word without insert
(ispell-send-string (concat "@" word "\n"))
(cl-pushnew word ispell-buffer-session-localwords
:test #'equal)
- (and (fboundp 'flyspell-unhighlight-at)
- (flyspell-unhighlight-at start))
+ (when (fboundp 'flyspell-unhighlight-at)
+ (flyspell-unhighlight-at start))
(or ispell-buffer-local-name ; session localwords might
conflict
(setq ispell-buffer-local-name (buffer-name)))
(if (null ispell-pdict-modified-p)
@@ -4259,8 +4255,8 @@ Both should not be used to define a buffer-local
dictionary."
;; Returns optionally adjusted region-end-point.
-;; If comment-padright is defined, newcomment must be loaded.
-(declare-function comment-add "newcomment" (arg))
+;; If comment-normalize-vars is defined, newcomment must be loaded.
+(declare-function comment-normalize-vars "newcomment" (&optional noerror))
(defun ispell-add-per-file-word-list (word)
"Add WORD to the per-file word list."
@@ -4286,16 +4282,12 @@ Both should not be used to define a buffer-local
dictionary."
(unless found (newline))
(insert (if comment-start
(concat
- (if (fboundp 'comment-padright)
- ;; Try and use the proper comment marker,
- ;; e.g. ";;" rather than ";".
- (progn
- ;; XEmacs: comment-normalize-vars
- ;; (newcomment.el) only in >= 21.5
- (and (fboundp 'comment-normalize-vars)
- (comment-normalize-vars))
- (comment-padright comment-start
- (comment-add nil)))
+ (progn
+ ;; Try and use the proper comment marker,
+ ;; e.g. ";;" rather than ";".
+ (comment-normalize-vars)
+ (comment-padright comment-start
+ (comment-add nil))
comment-start)
" ")
"")
- [Emacs-diffs] master updated (aacb20c -> 9e6618b), Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 3ac94b9 06/23: Remove some XEmacs-specific code from ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 8edf0eb 02/23: Assume we have version<= for checking ispell version, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 854ed8a 07/23: Assume Emacs supports [:alpha:] in regexps, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master e1aa788 18/23: Remove boundp test for always-bound symbol, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 6e88249 12/23: Remove XEmacs-specific horizontal scrollbar handling in ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 8315d50 15/23: Remove support for old versions of supercite and GNUS from ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 51d011d 04/23: Remove tests for built-in functions,
Reuben Thomas <=
- [Emacs-diffs] master 8af9cb2 19/23: Remove meaningless defconst ispell-version, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 3affed0 16/23: Remove unused constant, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 8245e5b 11/23: Remove XEmacs-specific code dealing with enable-multibyte-characters, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master ff5dedd 10/23: Remove XEmacs-specific code from ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 97f327d 22/23: Minor docstring and comment fixes to ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master f25c8b3 01/23: Remove ispell.el pre-GNU Emacs comments, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master c89dc9d 08/23: Remove XEmacs and old Emacs highlighting code, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 6b5ac58 20/23: Remove XEmacs-specific ispell-with-no-warnings, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master b989c41 14/23: Remove remaining mentions of XEmacs from ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master db6e1f8 17/23: Remove support for ispell < 3.1.12, Reuben Thomas, 2016/12/13