diff options
| author | Juanma Barranquero | 2019-10-17 02:08:43 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2019-10-17 02:08:43 +0200 |
| commit | 2bb0703e24ec1b02bb2ab4be67719e2e050cc4d3 (patch) | |
| tree | 77a076491e0635e2728393ac79c87f925e4a935e /lisp/textmodes | |
| parent | d502f0c4b5bf0d6dbf0a125b01db21fa3b6292df (diff) | |
| download | emacs-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.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/refbib.el | 5 | ||||
| -rw-r--r-- | lisp/textmodes/texnfo-upd.el | 35 |
2 files changed, 21 insertions, 19 deletions
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. | |||
| 410 | Return t if the node is found, else nil. Leave point at the beginning | 410 | Return t if the node is found, else nil. Leave point at the beginning |
| 411 | of the node if one is found; else do not move point." | 411 | of 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. |