emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* buffer-invisibility-spec isn't a list
@ 2016-04-15 23:34 Oleg Sivokon
  2016-04-15 20:47 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Oleg Sivokon @ 2016-04-15 23:34 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-16  7:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-15 23:34 buffer-invisibility-spec isn't a list Oleg Sivokon
2016-04-15 20:47 ` Nicolas Goaziou
2016-04-16  7:39   ` Left Right

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).