aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2019-10-17 02:08:43 +0200
committerJuanma Barranquero2019-10-17 02:08:43 +0200
commit2bb0703e24ec1b02bb2ab4be67719e2e050cc4d3 (patch)
tree77a076491e0635e2728393ac79c87f925e4a935e
parentd502f0c4b5bf0d6dbf0a125b01db21fa3b6292df (diff)
downloademacs-2bb0703e24ec1b02bb2ab4be67719e2e050cc4d3.tar.gz
emacs-2bb0703e24ec1b02bb2ab4be67719e2e050cc4d3.zip
lisp/*.el: Force non-nil result to t, to match docstring
* lisp/emacs-lock.el (emacs-lock-live-process-p): * lisp/shadowfile.el (shadow-file-match): * lisp/emacs-lisp/edebug.el (edebug-basic-spec): * lisp/mail/rmail.el (rmail-expunge-confirmed): * lisp/net/soap-client.el (soap-should-encode-value-for-xs-element): * lisp/progmodes/idlwave.el (idlwave-quoted): * lisp/progmodes/idlw-shell.el (idlwave-shell-filename-string): * lisp/textmodes/refbib.el (r2b-isa-proceedings): * lisp/textmodes/texnfo-upd.el (texinfo-find-lower-level-node): Normalize boolean result.
-rw-r--r--lisp/emacs-lisp/edebug.el3
-rw-r--r--lisp/emacs-lock.el2
-rw-r--r--lisp/mail/rmail.el6
-rw-r--r--lisp/net/soap-client.el2
-rw-r--r--lisp/progmodes/idlw-shell.el2
-rw-r--r--lisp/progmodes/idlwave.el2
-rw-r--r--lisp/shadowfile.el3
-rw-r--r--lisp/textmodes/refbib.el5
-rw-r--r--lisp/textmodes/texnfo-upd.el35
9 files changed, 33 insertions, 27 deletions
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el
index cd709c77b30..bfec807b5c8 100644
--- a/lisp/emacs-lisp/edebug.el
+++ b/lisp/emacs-lisp/edebug.el
@@ -258,7 +258,8 @@ An extant spec symbol is a symbol that is not a function and has a
258 (setq spec (cdr spec))) 258 (setq spec (cdr spec)))
259 t)) 259 t))
260 ((symbolp spec) 260 ((symbolp spec)
261 (unless (functionp spec) (function-get spec 'edebug-form-spec))))) 261 (unless (functionp spec)
262 (and (function-get spec 'edebug-form-spec) t)))))
262 263
263;;; Utilities 264;;; Utilities
264 265
diff --git a/lisp/emacs-lock.el b/lisp/emacs-lock.el
index 0cded29193a..1c1ea59f05b 100644
--- a/lisp/emacs-lock.el
+++ b/lisp/emacs-lock.el
@@ -115,7 +115,7 @@ Internal use only.")
115 115
116(defun emacs-lock-live-process-p (buffer-or-name) 116(defun emacs-lock-live-process-p (buffer-or-name)
117 "Return t if BUFFER-OR-NAME is associated with a live process." 117 "Return t if BUFFER-OR-NAME is associated with a live process."
118 (process-live-p (get-buffer-process buffer-or-name))) 118 (and (process-live-p (get-buffer-process buffer-or-name)) t))
119 119
120(defun emacs-lock--can-auto-unlock (action) 120(defun emacs-lock--can-auto-unlock (action)
121 "Return t if the current buffer can auto-unlock for ACTION. 121 "Return t if the current buffer can auto-unlock for ACTION.
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 34f8a46761b..0b5f564abf4 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -3547,8 +3547,10 @@ If `rmail-confirm-expunge' is non-nil, ask user to confirm."
3547 (and (stringp rmail-deleted-vector) 3547 (and (stringp rmail-deleted-vector)
3548 (string-match "D" rmail-deleted-vector) 3548 (string-match "D" rmail-deleted-vector)
3549 (if rmail-confirm-expunge 3549 (if rmail-confirm-expunge
3550 (funcall rmail-confirm-expunge 3550 (and (funcall rmail-confirm-expunge
3551 "Erase deleted messages from Rmail file? ") 3551 "Erase deleted messages from Rmail file? ")
3552 ;; In case r-c-e's function returns non-nil, non-t
3553 t)
3552 t))) 3554 t)))
3553 3555
3554(defun rmail-only-expunge (&optional dont-show) 3556(defun rmail-only-expunge (&optional dont-show)
diff --git a/lisp/net/soap-client.el b/lisp/net/soap-client.el
index 956e2cf4c4d..535e46cf6d8 100644
--- a/lisp/net/soap-client.el
+++ b/lisp/net/soap-client.el
@@ -844,7 +844,7 @@ This is a specialization of `soap-encode-attributes' for
844 "Return t if VALUE should be encoded for ELEMENT, nil otherwise." 844 "Return t if VALUE should be encoded for ELEMENT, nil otherwise."
845 (cond 845 (cond
846 ;; if value is not nil, attempt to encode it 846 ;; if value is not nil, attempt to encode it
847 (value) 847 (value t)
848 848
849 ;; value is nil, but the element's type is a boolean, so nil in this case 849 ;; value is nil, but the element's type is a boolean, so nil in this case
850 ;; means "false". We need to encode it. 850 ;; means "false". We need to encode it.
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index dde51b355e5..3367454c1cc 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -2155,7 +2155,7 @@ args of an executive .run, .rnew or .compile."
2155 ;; Skip backwards over file name chars 2155 ;; Skip backwards over file name chars
2156 (skip-chars-backward idlwave-shell-file-name-chars limit) 2156 (skip-chars-backward idlwave-shell-file-name-chars limit)
2157 ;; Check of the next char is a string delimiter 2157 ;; Check of the next char is a string delimiter
2158 (memq (preceding-char) '(?\' ?\"))))) 2158 (and (memq (preceding-char) '(?\' ?\")) t))))
2159 2159
2160(defun idlwave-shell-batch-command () 2160(defun idlwave-shell-batch-command ()
2161 "Return t if we're in a batch command statement like @foo" 2161 "Return t if we're in a batch command statement like @foo"
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index 3535a7b4aa3..9c46ac84e22 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -3629,7 +3629,7 @@ Calling from a program, arguments are START END."
3629(defun idlwave-quoted () 3629(defun idlwave-quoted ()
3630 "Return t if point is in a comment or quoted string. 3630 "Return t if point is in a comment or quoted string.
3631Returns nil otherwise." 3631Returns nil otherwise."
3632 (or (idlwave-in-comment) (idlwave-in-quote))) 3632 (and (or (idlwave-in-comment) (idlwave-in-quote)) t))
3633 3633
3634(defun idlwave-in-quote () 3634(defun idlwave-in-quote ()
3635 "Return location of the opening quote 3635 "Return location of the opening quote
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el
index 6340c9f1d61..8d9b80bd067 100644
--- a/lisp/shadowfile.el
+++ b/lisp/shadowfile.el
@@ -417,7 +417,8 @@ filename expansion or contraction, you must do that yourself first."
417 (tramp-file-name-localname file-sup)) 417 (tramp-file-name-localname file-sup))
418 (string-equal 418 (string-equal
419 (tramp-file-name-localname pattern-sup) 419 (tramp-file-name-localname pattern-sup)
420 (tramp-file-name-localname file-sup)))))) 420 (tramp-file-name-localname file-sup)))
421 t)))
421 422
422;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 423;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
423;;; User-level Commands 424;;; User-level Commands
diff --git a/lisp/textmodes/refbib.el b/lisp/textmodes/refbib.el
index 3ba52e61ea6..207fcf2f213 100644
--- a/lisp/textmodes/refbib.el
+++ b/lisp/textmodes/refbib.el
@@ -498,8 +498,9 @@ try to replace the {DATA} with an abbreviation."
498 (assoc name r2b-proceedings-list) 498 (assoc name r2b-proceedings-list)
499 (let ((match (assoc name r2b-booktitle-abbrevs))) 499 (let ((match (assoc name r2b-booktitle-abbrevs)))
500 (and match 500 (and match
501 (string-match "proceedings\\|conference" (car (cdr match))))) 501 (string-match "proceedings\\|conference" (car (cdr match))))))
502 ))) 502 t
503 ))
503 504
504(defun r2b-isa-university (name) 505(defun r2b-isa-university (name)
505 "Return t if NAME is a university or similar organization, 506 "Return t if NAME is a university or similar organization,
diff --git a/lisp/textmodes/texnfo-upd.el b/lisp/textmodes/texnfo-upd.el
index 134f82b14e0..e2a0ed9af6f 100644
--- a/lisp/textmodes/texnfo-upd.el
+++ b/lisp/textmodes/texnfo-upd.el
@@ -410,23 +410,24 @@ and to the end of the menu region for the level.
410Return t if the node is found, else nil. Leave point at the beginning 410Return t if the node is found, else nil. Leave point at the beginning
411of the node if one is found; else do not move point." 411of the node if one is found; else do not move point."
412 (let ((case-fold-search t)) 412 (let ((case-fold-search t))
413 (if (and (< (point) region-end) 413 (when (and (< (point) region-end)
414 (re-search-forward 414 (re-search-forward
415 (concat 415 (concat
416 "\\(^@node\\).*\n" ; match node line 416 "\\(^@node\\).*\n" ; match node line
417 "\\(\\(\\(^@c\\).*\n\\)" ; match comment line, if any 417 "\\(\\(\\(^@c\\).*\n\\)" ; match comment line, if any
418 "\\|" ; or 418 "\\|" ; or
419 "\\(^@ifinfo[ ]*\n\\)" ; ifinfo line, if any 419 "\\(^@ifinfo[ ]*\n\\)" ; ifinfo line, if any
420 "\\|" ; or 420 "\\|" ; or
421 "\\(^@ifnottex[ ]*\n\\)" ; ifnottex line, if any 421 "\\(^@ifnottex[ ]*\n\\)" ; ifnottex line, if any
422 "\\)?" ; end of expression 422 "\\)?" ; end of expression
423 (eval (cdr (assoc level texinfo-update-menu-lower-regexps)))) 423 (eval (cdr (assoc level texinfo-update-menu-lower-regexps))))
424 ;; the next higher level node marks the end of this 424 ;; the next higher level node marks the end of this
425 ;; section, and no lower level node will be found beyond 425 ;; section, and no lower level node will be found beyond
426 ;; this position even if region-end is farther off 426 ;; this position even if region-end is farther off
427 (texinfo-update-menu-region-end level) 427 (texinfo-update-menu-region-end level)
428 t)) 428 t))
429 (goto-char (match-beginning 1))))) 429 (goto-char (match-beginning 1))
430 t)))
430 431
431(defun texinfo-find-higher-level-node (level region-end) 432(defun texinfo-find-higher-level-node (level region-end)
432 "Search forward from point for node at any higher level than argument LEVEL. 433 "Search forward from point for node at any higher level than argument LEVEL.