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

Hello,

Oleg Sivokon <olegsivokon@gmail.com> writes:

> 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.

Thank you for the report.

This was fixed in 34f32603704f0e2f66772c904358ae784b62e88c (February).

You may want to update Org.


Regards,

-- 
Nicolas Goaziou

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

* 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

* Re: buffer-invisibility-spec isn't a list
  2016-04-15 20:47 ` Nicolas Goaziou
@ 2016-04-16  7:39   ` Left Right
  0 siblings, 0 replies; 3+ messages in thread
From: Left Right @ 2016-04-16  7:39 UTC (permalink / raw)
  To: Oleg Sivokon, emacs-orgmode

Oh, I see.

Thanks!

Oleg

On Fri, Apr 15, 2016 at 8:47 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,
>
> Oleg Sivokon <olegsivokon@gmail.com> writes:
>
>> 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.
>
> Thank you for the report.
>
> This was fixed in 34f32603704f0e2f66772c904358ae784b62e88c (February).
>
> You may want to update Org.
>
>
> Regards,
>
> --
> Nicolas Goaziou

^ 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).