summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2014-12-03 21:36:15 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2014-12-03 21:36:15 +0100
commit6d2a661fcc6671b5bcbe7a97fce57f6e91703c36 (patch)
tree9bef95625bc0b59db94afe2d370b68d54191a114
parent6289d8ecf4defa1a223eeaddbf4b39901b5cc649 (diff)
downloadorg-mode-6d2a661fcc6671b5bcbe7a97fce57f6e91703c36.tar.gz
Do not blank a table cell after expanding a snippet
* lisp/org.el (org-self-insert-command): Do not blank a table cell if last command is `yas-expand'. Thanks to Sébastien Vauban for reporting it. <http://permalink.gmane.org/gmane.emacs.orgmode/92918>
-rwxr-xr-xlisp/org.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 379a05a..e806440 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19829,8 +19829,8 @@ overwritten, and the table is not marked as requiring realignment."
(progn
;; check if we blank the field, and if that triggers align
(and (featurep 'org-table) org-table-auto-blank-field
- (member last-command
- '(org-cycle org-return org-shifttab org-ctrl-c-ctrl-c yas-expand))
+ (memq last-command
+ '(org-cycle org-return org-shifttab org-ctrl-c-ctrl-c))
(if (or (equal (char-after) ?\ ) (looking-at "[^|\n]* |"))
;; got extra space, this field does not determine column width
(let (org-table-may-need-update) (org-table-blank-field))