1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-25 07:27:57 +00:00

org-table: Refactor away unnecessary variable

* org-table.el (orgtbl-self-insert-command): Remove unnecessary
intermediate variable.  `(cdr nil)` is nil.

TINYCHANGE
This commit is contained in:
Aaron L. Zeng 2023-04-03 13:46:26 -04:00 committed by Ihor Radchenko
parent f2949d4d1d
commit 54a743cd72
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -5414,11 +5414,9 @@ overwritten, and the table is not marked as requiring realignment."
(self-insert-command N))
(setq org-table-may-need-update t)
(let* (orgtbl-mode
a
(cmd (or (key-binding
(or (and (listp function-key-map)
(setq a (assoc last-input-event function-key-map))
(cdr a))
(cdr (assoc last-input-event function-key-map)))
(vector last-input-event)))
'self-insert-command)))
(call-interactively cmd)