From: Oleg Sivokon <olegsivokon@gmail.com>
To: emacs-orgmode@gnu.org
Subject: buffer-invisibility-spec isn't a list
Date: Fri, 15 Apr 2016 23:34:58 +0000 [thread overview]
Message-ID: <87zisula3h.fsf@gmail.com> (raw)
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
next reply other threads:[~2016-04-15 20:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-15 23:34 Oleg Sivokon [this message]
2016-04-15 20:47 ` buffer-invisibility-spec isn't a list Nicolas Goaziou
2016-04-16 7:39 ` Left Right
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zisula3h.fsf@gmail.com \
--to=olegsivokon@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.