org-table.el: Check `display-line-numbers-mode' availability

* lisp/org-table.el (org-table-set-header-line-format): Check
whether the `display-line-numbers-mode' command is available.
This commit is contained in:
Bastien 2020-02-01 13:14:26 +01:00
parent dcdb470177
commit 340bd61777
1 changed files with 2 additions and 1 deletions

View File

@ -468,7 +468,8 @@ existing value of `header-line-format' we might want to restore."
(lambda ()
(let* ((beg (org-table-begin))
;; Are we using `display-line-numbers-mode'?
(lin (and display-line-numbers-mode
(lin (and (fboundp 'display-line-numbers-mode)
display-line-numbers-mode
(round (line-number-display-width 'columns))))
;; Are we using `org-indent-mode'?
(pre (and org-indent-mode