org-table: use point-min instead of 1
* lisp/org-table.el (org-table-cleanup-narrow-column-properties): Use point-min rather than 1 when moving in the buffer. Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
f6c8fb0be1
commit
5c5468dc60
|
@ -3702,14 +3702,14 @@ Use COMMAND to do the motion, repeat if necessary to end up in a data line."
|
|||
|
||||
(defun org-table-cleanup-narrow-column-properties ()
|
||||
"Remove all properties related to narrow-column invisibility."
|
||||
(let ((s 1))
|
||||
(let ((s (point-min)))
|
||||
(while (setq s (text-property-any s (point-max)
|
||||
'display org-narrow-column-arrow))
|
||||
(remove-text-properties s (1+ s) '(display t)))
|
||||
(setq s 1)
|
||||
(setq s (point-min))
|
||||
(while (setq s (text-property-any s (point-max) 'org-cwidth 1))
|
||||
(remove-text-properties s (1+ s) '(org-cwidth t)))
|
||||
(setq s 1)
|
||||
(setq s (point-min))
|
||||
(while (setq s (text-property-any s (point-max) 'invisible 'org-cwidth))
|
||||
(remove-text-properties s (1+ s) '(invisible t)))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue