From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Sivokon Subject: buffer-invisibility-spec isn't a list Date: Fri, 15 Apr 2016 23:34:58 +0000 Message-ID: <87zisula3h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arAUV-0006Fu-3J for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 16:37:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arAUM-0001fn-SD for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 16:37:19 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:37484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arAUM-0001fG-Kx for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 16:37:14 -0400 Received: by mail-wm0-x22e.google.com with SMTP id n3so48064032wmn.0 for ; Fri, 15 Apr 2016 13:37:14 -0700 (PDT) Received: from wvxvvw-laptop (bzq-79-183-32-167.red.bezeqint.net. [79.183.32.167]) by smtp.gmail.com with ESMTPSA id i206sm39975797wmf.1.2016.04.15.13.37.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Apr 2016 13:37:12 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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 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