Fix some broken conditional forms

Problem reported by Mattias Engdegård in:
https://lists.gnu.org/r/emacs-devel/2020-01/msg00088.html
* lisp/cedet/ede/cpp-root.el (ede-create-lots-of-projects-under-dir):
Remove this quick hack, which didn’t do anything anyway.
* lisp/cedet/ede/pconf.el (ede-proj-configure-test-required-file):
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-col):
* lisp/net/nsm.el (nsm-check-tls-connection):
Use ‘when’ rather than bypassing it.  This doesn’t affect behavior
and is better style.
* lisp/cedet/srecode/semantic.el (srecode-semantic-handle-:tag):
Fix typo that suppressed an error.
* lisp/filesets.el (filesets-run-cmd): Fix typo that mishandled spacing.
* lisp/gnus/gnus-cloud.el (gnus-cloud-update-newsrc-data):
Fix typo that caused “GROUP has older different info in the cloud
as of DATE, update it here?” prompt result to always be treated as
“yes”.
* lisp/gnus/mml-smime.el (mml-smime-openssl-encrypt): Simplify,
since smime-encrypt-buffer signals error on failure.
* lisp/international/titdic-cnv.el (tsang-quick-converter): Simplify.
The conversion of this file to utf-8-emacs in
2019-01-08T02:18:40Z!monnier@iro.umontreal.ca removed the
distinction between Big5 and CNS fulltitles in the generated docstring.
* lisp/org/org-agenda.el (org-agenda-show-and-scroll-up):
* lisp/textmodes/table.el (table--generate-source-cell-contents):
Simplify by removing useless code.
* lisp/org/ox-odt.el (org-odt--format-timestamp): Fix typo that
always output time-of-day even when the timestamp lacked it.
This commit is contained in:
Paul Eggert 2020-01-04 11:17:12 -08:00
parent 28727444f1
commit f95a2b8301
12 changed files with 22 additions and 47 deletions

View file

@ -478,21 +478,6 @@ Argument COMMAND is the command to use for compiling the target."
"Don't rescan this project from the sources." "Don't rescan this project from the sources."
(message "cpp-root has nothing to rescan.")) (message "cpp-root has nothing to rescan."))
;;; Quick Hack
(defun ede-create-lots-of-projects-under-dir (dir projfile &rest attributes)
"Create a bunch of projects under directory DIR.
PROJFILE is a file name sans directory that indicates a subdirectory
is a project directory.
Generic ATTRIBUTES, such as :include-path can be added.
Note: This needs some work."
(let ((files (directory-files dir t)))
(dolist (F files)
(if (file-exists-p (expand-file-name projfile F))
`(ede-cpp-root-project (file-name-nondirectory F)
:name (file-name-nondirectory F)
:file (expand-file-name projfile F)
attributes)))))
(provide 'ede/cpp-root) (provide 'ede/cpp-root)
;; Local variables: ;; Local variables:

View file

@ -56,8 +56,9 @@ don't do it. A value of nil means to just do it.")
(and (eq ede-pconf-create-file-query 'ask) (and (eq ede-pconf-create-file-query 'ask)
(not (eq ede-pconf-create-file-query 'never)) (not (eq ede-pconf-create-file-query 'never))
(not (y-or-n-p (not (y-or-n-p
(format "I had to create the %s file for you. Ok? " file))) (format "I had to create the %s file for you. Ok? "
(error "Quit"))))))) file))))
(error "Quit"))))))
(cl-defmethod ede-proj-configure-synchronize ((this ede-proj-project)) (cl-defmethod ede-proj-configure-synchronize ((this ede-proj-project))

View file

@ -201,7 +201,7 @@ variable default values, and other things."
(let ((tag (or srecode-semantic-selected-tag (let ((tag (or srecode-semantic-selected-tag
(srecode-semantic-tag-from-kill-ring)))) (srecode-semantic-tag-from-kill-ring))))
(when (not tag) (when (not tag)
"No tag for current template. Use the semantic kill-ring.") (error "No tag for current template. Use the semantic kill-ring."))
(srecode-semantic-apply-tag-to-dict (srecode-semantic-apply-tag-to-dict
(srecode-semantic-tag (semantic-tag-name tag) (srecode-semantic-tag (semantic-tag-name tag)
:prime tag) :prime tag)

View file

@ -547,10 +547,10 @@ Return the column number after insertion."
;; Don't truncate to `width' if the next column is align-right ;; Don't truncate to `width' if the next column is align-right
;; and has some space left, truncate to `available-space' instead. ;; and has some space left, truncate to `available-space' instead.
(when (and not-last-col (when (and not-last-col
(> label-width available-space) (> label-width available-space))
(setq label (truncate-string-to-width (setq label (truncate-string-to-width
label available-space nil nil t t) label available-space nil nil t t)
label-width available-space))) label-width available-space))
(setq label (bidi-string-mark-left-to-right label)) (setq label (bidi-string-mark-left-to-right label))
(when (and right-align (> width label-width)) (when (and right-align (> width label-width))
(let ((shift (- width label-width))) (let ((shift (- width label-width)))

View file

@ -1645,10 +1645,10 @@ Replace <file-name> or <<file-name>> with filename."
(dolist (this args txt) (dolist (this args txt)
(setq txt (setq txt
(concat txt (concat txt
(if (equal txt "") "" " ")
(filesets-run-cmd--repl-fn (filesets-run-cmd--repl-fn
this this
(lambda (this) (lambda (this)
(if (equal txt "") "" " ")
(format "%s" this)))))))) (format "%s" this))))))))
(cmd (concat fn " " args))) (cmd (concat fn " " args)))
(filesets-cmd-show-result (filesets-cmd-show-result

View file

@ -243,10 +243,10 @@ Use old data if FORCE-OLDER is not nil."
(when (or (not gnus-cloud-interactive) (when (or (not gnus-cloud-interactive)
(gnus-y-or-n-p (gnus-y-or-n-p
(format "%s has older different info in the cloud as of %s, update it here? " (format "%s has older different info in the cloud as of %s, update it here? "
group date)))) group date)))
(gnus-message 2 "Installing cloud update of group %s" group) (gnus-message 2 "Installing cloud update of group %s" group)
(gnus-set-info group contents) (gnus-set-info group contents)
(gnus-group-update-group group))) (gnus-group-update-group group))))
(gnus-error 1 "Sorry, group %s is not subscribed" group)) (gnus-error 1 "Sorry, group %s is not subscribed" group))
(gnus-error 1 "Sorry, could not update newsrc for group %s (invalid data %S)" (gnus-error 1 "Sorry, could not update newsrc for group %s (invalid data %S)"
group elem)))) group elem))))

View file

@ -154,14 +154,9 @@ Whether the passphrase is cached at all is controlled by
(write-region (point-min) (point-max) file)) (write-region (point-min) (point-max) file))
(push file certfiles) (push file certfiles)
(push file tmpfiles))) (push file tmpfiles)))
(if (smime-encrypt-buffer certfiles) (smime-encrypt-buffer certfiles)
(progn (while (setq tmp (pop tmpfiles))
(while (setq tmp (pop tmpfiles)) (delete-file tmp)))
(delete-file tmp))
t)
(while (setq tmp (pop tmpfiles))
(delete-file tmp))
nil))
(goto-char (point-max))) (goto-char (point-max)))
(defvar gnus-extract-address-components) (defvar gnus-extract-address-components)

View file

@ -737,8 +737,7 @@ To get complete usage, invoke \"emacs -batch -f batch-titdic-convert -h\"."
;; method is for inputting CNS characters. ;; method is for inputting CNS characters.
(defun tsang-quick-converter (dicbuf tsang-p big5-p) (defun tsang-quick-converter (dicbuf tsang-p big5-p)
(let ((fulltitle (if tsang-p (if big5-p "倉頡" "倉頡") (let ((fulltitle (if tsang-p "倉頡" "簡易"))
(if big5-p "簡易" "簡易")))
dic) dic)
(goto-char (point-max)) (goto-char (point-max))
(if big5-p (if big5-p

View file

@ -311,9 +311,9 @@ See also: `network-security-protocol-checks' and `nsm-noninteractive'"
(map-values results) (map-values results)
"\n") "\n")
"\n") "\n")
"\n* "))))) "\n* "))))))
(delete-process process) (delete-process process)
(setq process nil))) (setq process nil))
(run-hook-with-args 'nsm-tls-post-check-functions (run-hook-with-args 'nsm-tls-post-check-functions
host port status settings results))) host port status settings results)))
process) process)

View file

@ -8981,7 +8981,6 @@ fold drawers."
(narrow-to-region (org-entry-beginning-position) (narrow-to-region (org-entry-beginning-position)
(org-entry-end-position)) (org-entry-end-position))
(org-show-all '(drawers)))) (org-show-all '(drawers))))
(when arg )
(setq org-agenda-show-window (selected-window))) (setq org-agenda-show-window (selected-window)))
(select-window win))) (select-window win)))

View file

@ -940,7 +940,7 @@ See `org-odt--build-date-styles' for implementation details."
(has-time-p (or (not timestamp) (has-time-p (or (not timestamp)
(org-timestamp-has-time-p timestamp))) (org-timestamp-has-time-p timestamp)))
(iso-date (let ((format (if has-time-p "%Y-%m-%dT%H:%M:%S" (iso-date (let ((format (if has-time-p "%Y-%m-%dT%H:%M:%S"
"%Y-%m-%dT%H:%M:%S"))) "%Y-%m-%d")))
(funcall format-timestamp timestamp format end)))) (funcall format-timestamp timestamp format end))))
(if iso-date-p iso-date (if iso-date-p iso-date
(let* ((style (if has-time-p "OrgDate2" "OrgDate1")) (let* ((style (if has-time-p "OrgDate2" "OrgDate1"))

View file

@ -3206,11 +3206,7 @@ CALS (DocBook DTD):
(while (and (re-search-forward "$" nil t) (while (and (re-search-forward "$" nil t)
(not (eobp))) (not (eobp)))
(insert "<br />") (insert "<br />")
(forward-char 1))) (forward-char 1))))
(unless (and table-html-delegate-spacing-to-user-agent
(progn
(goto-char (point-min))
(looking-at "\\s *\\'")))))
((eq language 'cals) ((eq language 'cals)
(table--remove-eol-spaces (point-min) (point-max)) (table--remove-eol-spaces (point-min) (point-max))
(if (re-search-forward "\\s +\\'" nil t) (if (re-search-forward "\\s +\\'" nil t)