Display quotes in key-bindings as straight quotes
commitebacca39b4e6b01f6f47e2aeb9a1decad09565ac
authorKaushal Modi <kaushal.modi@gmail.com>
Fri, 11 Mar 2016 17:30:20 +0000 (11 12:30 -0500)
committerKyle Meyer <kyle@kyleam.com>
Sat, 12 Mar 2016 03:40:30 +0000 (11 22:40 -0500)
treea9a11b4d88b1fd5213f05551b65bd5f184796fa1
parent5a735b0b8045966fab57f035a694a65209d3bd80
Display quotes in key-bindings as straight quotes

* lisp/org-agenda.el (org-agenda-show-the-flagging-note):
* lisp/org-footnote.el (org-footnote-goto-definition):
* lisp/org-table.el (org-table-edit-formulas): Fix straight quotes
  rendered as curvy quotes in echoes messages (in emacs 25.1).
* lisp/org-table.el (org-table-align): Fix straight quotes rendered as
  curvy quotes in help echo (in emacs 25.1).

* lisp/org-protocol.el (org-protocol-create-for-org):
* lisp/org-table.el (org-table-sum): Minor reformatting.

The below thread discusses why these changes were needed especially when
using emacs 25.1 or newer emacsen (that added support for rendering
back-quotes and straight quotes as left/right curvy quotes by default):
http://thread.gmane.org/gmane.emacs.orgmode/105594

Fix the quote style displayed when key-bindings are shown in
the echo via (message .. (substitute-command-keys ..)).

So below will render that single quote as curly.

(message "C-c '")

The fix (Reference:
https://lists.gnu.org/archive/html/bug-gnu-emacs/2015-10/msg00234.html)
is to print that quote verbatim using the "%s" modifier:

(message "%s" "C-c '")

Also an help-echo text property value was fixed in `org-table-align'.
`substitute-command-keys' should not be used in that.  Instead \\[COMMAND]
should be used directly in the string.
lisp/org-agenda.el
lisp/org-footnote.el
lisp/org-protocol.el
lisp/org-table.el