[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] buffer-invisibility-spec isn't a list
From: |
Oleg Sivokon |
Subject: |
[O] buffer-invisibility-spec isn't a list |
Date: |
Fri, 15 Apr 2016 23:34:58 +0000 |
In the function `org-move-to-column' when you call (remove
'(org-filtered) buffer-invisibility-spec) it is quite possible that
`buffer-invisibility-spec' is just `t'. This will error, because
`remove' expects second argument to be a list.
This happens when opening Babel code blocks in a special editing buffer
(thus <C-c '> will not be set for them).
--------------------------------------------------------------------------------
(defun org-move-to-column (column &optional force buffer)
"Move to column COLUMN.
Pass COLUMN and FORCE to `move-to-column'.
Pass BUFFER to the XEmacs version of `move-to-column'."
(let ((buffer-invisibility-spec
(if (eq t buffer-invisibility-spec) t
(remove '(org-filtered) buffer-invisibility-spec))))
(if (featurep 'xemacs)
(org-xemacs-without-invisibility
(move-to-column column force buffer))
(move-to-column column force))))
--------------------------------------------------------------------------------
Seems to fix it.
Best.
Oleg
- [O] buffer-invisibility-spec isn't a list,
Oleg Sivokon <=