From 34f32603704f0e2f66772c904358ae784b62e88c Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 2 Feb 2016 17:49:23 +0100 Subject: [PATCH] org-compat: Fix error on newest Emacsen (>= 25) * lisp/org-compat.el (org-move-to-column): Ensure `remove' is called on a list. Reported-by: Julien Cubizolles --- lisp/org-compat.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 0ccb99bd5..70e45738d 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -333,7 +333,9 @@ Works on both Emacs and XEmacs." Pass COLUMN and FORCE to `move-to-column'. Pass BUFFER to the XEmacs version of `move-to-column'." (let ((buffer-invisibility-spec - (remove '(org-filtered) buffer-invisibility-spec))) + (if (listp buffer-invisibility-spec) + (remove '(org-filtered) buffer-invisibility-spec) + buffer-invisibility-spec))) (if (featurep 'xemacs) (org-xemacs-without-invisibility (move-to-column column force buffer))