aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2020-01-05 11:48:59 -0800
committerPaul Eggert2020-01-05 11:50:31 -0800
commit088bfcc2d80eed44864147f3491eff69e4eb5cd8 (patch)
treea57599fb3064d09c38eec4ddd9cded8a3df72e6c
parent448df8fec7a7fb3fe558749591e657e8a84cb46b (diff)
downloademacs-088bfcc2d80eed44864147f3491eff69e4eb5cd8.tar.gz
emacs-088bfcc2d80eed44864147f3491eff69e4eb5cd8.zip
Move “Fix some broken conditional forms” to master
Revert 2020-01-04T19:17:12Z!eggert@cs.ucla.edu which recently I installed into the emacs-27 branch by mistake. These patches are now on master instead (via merging). Do not merge to master.
-rw-r--r--lisp/cedet/ede/cpp-root.el15
-rw-r--r--lisp/cedet/ede/pconf.el5
-rw-r--r--lisp/cedet/srecode/semantic.el2
-rw-r--r--lisp/emacs-lisp/tabulated-list.el8
-rw-r--r--lisp/filesets.el2
-rw-r--r--lisp/gnus/gnus-cloud.el8
-rw-r--r--lisp/gnus/mml-smime.el11
-rw-r--r--lisp/international/titdic-cnv.el3
-rw-r--r--lisp/net/nsm.el6
-rw-r--r--lisp/org/org-agenda.el1
-rw-r--r--lisp/org/ox-odt.el2
-rw-r--r--lisp/textmodes/table.el6
12 files changed, 47 insertions, 22 deletions
diff --git a/lisp/cedet/ede/cpp-root.el b/lisp/cedet/ede/cpp-root.el
index f0dbccb7fc1..ee8aa5db1b7 100644
--- a/lisp/cedet/ede/cpp-root.el
+++ b/lisp/cedet/ede/cpp-root.el
@@ -478,6 +478,21 @@ Argument COMMAND is the command to use for compiling the target."
478 "Don't rescan this project from the sources." 478 "Don't rescan this project from the sources."
479 (message "cpp-root has nothing to rescan.")) 479 (message "cpp-root has nothing to rescan."))
480 480
481;;; Quick Hack
482(defun ede-create-lots-of-projects-under-dir (dir projfile &rest attributes)
483 "Create a bunch of projects under directory DIR.
484PROJFILE is a file name sans directory that indicates a subdirectory
485is a project directory.
486Generic ATTRIBUTES, such as :include-path can be added.
487Note: This needs some work."
488 (let ((files (directory-files dir t)))
489 (dolist (F files)
490 (if (file-exists-p (expand-file-name projfile F))
491 `(ede-cpp-root-project (file-name-nondirectory F)
492 :name (file-name-nondirectory F)
493 :file (expand-file-name projfile F)
494 attributes)))))
495
481(provide 'ede/cpp-root) 496(provide 'ede/cpp-root)
482 497
483;; Local variables: 498;; Local variables:
diff --git a/lisp/cedet/ede/pconf.el b/lisp/cedet/ede/pconf.el
index b85b397af2d..63fb62b5a57 100644
--- a/lisp/cedet/ede/pconf.el
+++ b/lisp/cedet/ede/pconf.el
@@ -56,9 +56,8 @@ don't do it. A value of nil means to just do it.")
56 (and (eq ede-pconf-create-file-query 'ask) 56 (and (eq ede-pconf-create-file-query 'ask)
57 (not (eq ede-pconf-create-file-query 'never)) 57 (not (eq ede-pconf-create-file-query 'never))
58 (not (y-or-n-p 58 (not (y-or-n-p
59 (format "I had to create the %s file for you. Ok? " 59 (format "I had to create the %s file for you. Ok? " file)))
60 file)))) 60 (error "Quit")))))))
61 (error "Quit"))))))
62 61
63 62
64(cl-defmethod ede-proj-configure-synchronize ((this ede-proj-project)) 63(cl-defmethod ede-proj-configure-synchronize ((this ede-proj-project))
diff --git a/lisp/cedet/srecode/semantic.el b/lisp/cedet/srecode/semantic.el
index 5b2dd034743..26c14892efd 100644
--- a/lisp/cedet/srecode/semantic.el
+++ b/lisp/cedet/srecode/semantic.el
@@ -201,7 +201,7 @@ variable default values, and other things."
201 (let ((tag (or srecode-semantic-selected-tag 201 (let ((tag (or srecode-semantic-selected-tag
202 (srecode-semantic-tag-from-kill-ring)))) 202 (srecode-semantic-tag-from-kill-ring))))
203 (when (not tag) 203 (when (not tag)
204 (error "No tag for current template. Use the semantic kill-ring.")) 204 "No tag for current template. Use the semantic kill-ring.")
205 (srecode-semantic-apply-tag-to-dict 205 (srecode-semantic-apply-tag-to-dict
206 (srecode-semantic-tag (semantic-tag-name tag) 206 (srecode-semantic-tag (semantic-tag-name tag)
207 :prime tag) 207 :prime tag)
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el
index b13f609f882..501cc3a29e0 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -547,10 +547,10 @@ Return the column number after insertion."
547 ;; Don't truncate to `width' if the next column is align-right 547 ;; Don't truncate to `width' if the next column is align-right
548 ;; and has some space left, truncate to `available-space' instead. 548 ;; and has some space left, truncate to `available-space' instead.
549 (when (and not-last-col 549 (when (and not-last-col
550 (> label-width available-space)) 550 (> label-width available-space)
551 (setq label (truncate-string-to-width 551 (setq label (truncate-string-to-width
552 label available-space nil nil t t) 552 label available-space nil nil t t)
553 label-width available-space)) 553 label-width available-space)))
554 (setq label (bidi-string-mark-left-to-right label)) 554 (setq label (bidi-string-mark-left-to-right label))
555 (when (and right-align (> width label-width)) 555 (when (and right-align (> width label-width))
556 (let ((shift (- width label-width))) 556 (let ((shift (- width label-width)))
diff --git a/lisp/filesets.el b/lisp/filesets.el
index 1ec0d24b539..9834bcf0587 100644
--- a/lisp/filesets.el
+++ b/lisp/filesets.el
@@ -1645,10 +1645,10 @@ Replace <file-name> or <<file-name>> with filename."
1645 (dolist (this args txt) 1645 (dolist (this args txt)
1646 (setq txt 1646 (setq txt
1647 (concat txt 1647 (concat txt
1648 (if (equal txt "") "" " ")
1649 (filesets-run-cmd--repl-fn 1648 (filesets-run-cmd--repl-fn
1650 this 1649 this
1651 (lambda (this) 1650 (lambda (this)
1651 (if (equal txt "") "" " ")
1652 (format "%s" this)))))))) 1652 (format "%s" this))))))))
1653 (cmd (concat fn " " args))) 1653 (cmd (concat fn " " args)))
1654 (filesets-cmd-show-result 1654 (filesets-cmd-show-result
diff --git a/lisp/gnus/gnus-cloud.el b/lisp/gnus/gnus-cloud.el
index 4d8764bacca..cecfaef2f4f 100644
--- a/lisp/gnus/gnus-cloud.el
+++ b/lisp/gnus/gnus-cloud.el
@@ -243,10 +243,10 @@ Use old data if FORCE-OLDER is not nil."
243 (when (or (not gnus-cloud-interactive) 243 (when (or (not gnus-cloud-interactive)
244 (gnus-y-or-n-p 244 (gnus-y-or-n-p
245 (format "%s has older different info in the cloud as of %s, update it here? " 245 (format "%s has older different info in the cloud as of %s, update it here? "
246 group date))) 246 group date))))
247 (gnus-message 2 "Installing cloud update of group %s" group) 247 (gnus-message 2 "Installing cloud update of group %s" group)
248 (gnus-set-info group contents) 248 (gnus-set-info group contents)
249 (gnus-group-update-group group)))) 249 (gnus-group-update-group group)))
250 (gnus-error 1 "Sorry, group %s is not subscribed" group)) 250 (gnus-error 1 "Sorry, group %s is not subscribed" group))
251 (gnus-error 1 "Sorry, could not update newsrc for group %s (invalid data %S)" 251 (gnus-error 1 "Sorry, could not update newsrc for group %s (invalid data %S)"
252 group elem)))) 252 group elem))))
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el
index 4754f37a2da..3cc463d5d4c 100644
--- a/lisp/gnus/mml-smime.el
+++ b/lisp/gnus/mml-smime.el
@@ -154,9 +154,14 @@ Whether the passphrase is cached at all is controlled by
154 (write-region (point-min) (point-max) file)) 154 (write-region (point-min) (point-max) file))
155 (push file certfiles) 155 (push file certfiles)
156 (push file tmpfiles))) 156 (push file tmpfiles)))
157 (smime-encrypt-buffer certfiles) 157 (if (smime-encrypt-buffer certfiles)
158 (while (setq tmp (pop tmpfiles)) 158 (progn
159 (delete-file tmp))) 159 (while (setq tmp (pop tmpfiles))
160 (delete-file tmp))
161 t)
162 (while (setq tmp (pop tmpfiles))
163 (delete-file tmp))
164 nil))
160 (goto-char (point-max))) 165 (goto-char (point-max)))
161 166
162(defvar gnus-extract-address-components) 167(defvar gnus-extract-address-components)
diff --git a/lisp/international/titdic-cnv.el b/lisp/international/titdic-cnv.el
index e95e399eda4..2a80d75fe7e 100644
--- a/lisp/international/titdic-cnv.el
+++ b/lisp/international/titdic-cnv.el
@@ -737,7 +737,8 @@ To get complete usage, invoke \"emacs -batch -f batch-titdic-convert -h\"."
737;; method is for inputting CNS characters. 737;; method is for inputting CNS characters.
738 738
739(defun tsang-quick-converter (dicbuf tsang-p big5-p) 739(defun tsang-quick-converter (dicbuf tsang-p big5-p)
740 (let ((fulltitle (if tsang-p "倉頡" "簡易")) 740 (let ((fulltitle (if tsang-p (if big5-p "倉頡" "倉頡")
741 (if big5-p "簡易" "簡易")))
741 dic) 742 dic)
742 (goto-char (point-max)) 743 (goto-char (point-max))
743 (if big5-p 744 (if big5-p
diff --git a/lisp/net/nsm.el b/lisp/net/nsm.el
index 1b0f04e5a19..e94947bc7f1 100644
--- a/lisp/net/nsm.el
+++ b/lisp/net/nsm.el
@@ -311,9 +311,9 @@ See also: `network-security-protocol-checks' and `nsm-noninteractive'"
311 (map-values results) 311 (map-values results)
312 "\n") 312 "\n")
313 "\n") 313 "\n")
314 "\n* ")))))) 314 "\n* ")))))
315 (delete-process process) 315 (delete-process process)
316 (setq process nil)) 316 (setq process nil)))
317 (run-hook-with-args 'nsm-tls-post-check-functions 317 (run-hook-with-args 'nsm-tls-post-check-functions
318 host port status settings results))) 318 host port status settings results)))
319 process) 319 process)
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index f45e47fb59a..4f89ea54500 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -8981,6 +8981,7 @@ fold drawers."
8981 (narrow-to-region (org-entry-beginning-position) 8981 (narrow-to-region (org-entry-beginning-position)
8982 (org-entry-end-position)) 8982 (org-entry-end-position))
8983 (org-show-all '(drawers)))) 8983 (org-show-all '(drawers))))
8984 (when arg )
8984 (setq org-agenda-show-window (selected-window))) 8985 (setq org-agenda-show-window (selected-window)))
8985 (select-window win))) 8986 (select-window win)))
8986 8987
diff --git a/lisp/org/ox-odt.el b/lisp/org/ox-odt.el
index a1486318a7d..51cb42a49a5 100644
--- a/lisp/org/ox-odt.el
+++ b/lisp/org/ox-odt.el
@@ -940,7 +940,7 @@ See `org-odt--build-date-styles' for implementation details."
940 (has-time-p (or (not timestamp) 940 (has-time-p (or (not timestamp)
941 (org-timestamp-has-time-p timestamp))) 941 (org-timestamp-has-time-p timestamp)))
942 (iso-date (let ((format (if has-time-p "%Y-%m-%dT%H:%M:%S" 942 (iso-date (let ((format (if has-time-p "%Y-%m-%dT%H:%M:%S"
943 "%Y-%m-%d"))) 943 "%Y-%m-%dT%H:%M:%S")))
944 (funcall format-timestamp timestamp format end)))) 944 (funcall format-timestamp timestamp format end))))
945 (if iso-date-p iso-date 945 (if iso-date-p iso-date
946 (let* ((style (if has-time-p "OrgDate2" "OrgDate1")) 946 (let* ((style (if has-time-p "OrgDate2" "OrgDate1"))
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el
index a33e9266b4b..4482e7d4d23 100644
--- a/lisp/textmodes/table.el
+++ b/lisp/textmodes/table.el
@@ -3206,7 +3206,11 @@ CALS (DocBook DTD):
3206 (while (and (re-search-forward "$" nil t) 3206 (while (and (re-search-forward "$" nil t)
3207 (not (eobp))) 3207 (not (eobp)))
3208 (insert "<br />") 3208 (insert "<br />")
3209 (forward-char 1)))) 3209 (forward-char 1)))
3210 (unless (and table-html-delegate-spacing-to-user-agent
3211 (progn
3212 (goto-char (point-min))
3213 (looking-at "\\s *\\'")))))
3210 ((eq language 'cals) 3214 ((eq language 'cals)
3211 (table--remove-eol-spaces (point-min) (point-max)) 3215 (table--remove-eol-spaces (point-min) (point-max))
3212 (if (re-search-forward "\\s +\\'" nil t) 3216 (if (re-search-forward "\\s +\\'" nil t)