Use %s to format strings instead of splicing them
If FOO might contain quotes that are part of a file or variable name, the quotes should not be translated when showing FOO’s name in a diagnostic. So, for example, (message (concat (FOO ": bar"))) is not quite right, as it would translate FOO’s quotes. Change it to (message "%s: bar" FOO) instead. * lisp/allout.el (allout-process-exposed): * lisp/calc/calc-ext.el (calc-do-prefix-help): * lisp/calc/calc-store.el (calc-store-into): * lisp/calendar/todo-mode.el (todo-category-completions): * lisp/cedet/semantic/complete.el (semantic-completion-message): * lisp/org/ob-latex.el (convert-pdf): * lisp/org/org-crypt.el (org-crypt-check-auto-save): * lisp/org/ox-latex.el (org-latex-compile): * lisp/org/ox-man.el (org-man-compile): * lisp/org/ox-odt.el (org-odt--export-wrap): * lisp/org/ox-texinfo.el (org-texinfo-compile): * lisp/progmodes/ruby-mode.el (ruby-in-ppss-context-p): * lisp/progmodes/verilog-mode.el (verilog-batch-execute-func) (verilog-signals-combine-bus, verilog-read-defines) (verilog-getopt-file, verilog-expand-dirnames) (verilog-modi-lookup, verilog-modi-modport-lookup-one): * lisp/term/ns-win.el (ns-spi-service-call): Use %s to avoid translating quotes of file names etc. in diagnostics.
This commit is contained in:
parent
2ad2f8b084
commit
ab11a1cf27
14 changed files with 58 additions and 55 deletions
|
@ -2007,7 +2007,8 @@ It will be properly highlighted even when the call omits parens.")
|
|||
(t
|
||||
(error (concat
|
||||
"Internal error on `ruby-in-ppss-context-p': "
|
||||
"context name `" (symbol-name context) "' is unknown"))))
|
||||
"context name `%s' is unknown")
|
||||
context)))
|
||||
t)))
|
||||
|
||||
(defvar ruby-font-lock-syntax-table
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue