lang/org: fix void-variable error upon backspace in tables #472
This commit is contained in:
parent
e89ed0e9ae
commit
48f5811e0d
1 changed files with 4 additions and 4 deletions
|
@ -290,12 +290,12 @@ with `org-cycle'). Also:
|
||||||
(save-match-data
|
(save-match-data
|
||||||
(when (and (org-at-table-p)
|
(when (and (org-at-table-p)
|
||||||
(not (org-region-active-p))
|
(not (org-region-active-p))
|
||||||
(string-match "|" (buffer-substring (point-at-bol) (point)))
|
(string-match-p "|" (buffer-substring (point-at-bol) (point)))
|
||||||
(looking-at ".*?|"))
|
(looking-at-p ".*?|"))
|
||||||
(let ((pos (point))
|
(let ((pos (point))
|
||||||
(noalign (looking-at "[^|\n\r]* |"))
|
(noalign (looking-at-p "[^|\n\r]* |"))
|
||||||
(c org-table-may-need-update))
|
(c org-table-may-need-update))
|
||||||
(delete-char n)
|
(delete-char 1)
|
||||||
(unless overwrite-mode
|
(unless overwrite-mode
|
||||||
(skip-chars-forward "^|")
|
(skip-chars-forward "^|")
|
||||||
(insert " ")
|
(insert " ")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue