From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hugh Daschbach" Subject: Args out of range, XEmacs 21.4.21 Date: Thu, 4 Dec 2008 23:56:35 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8VYH-000337-Od for emacs-orgmode@gnu.org; Fri, 05 Dec 2008 02:56:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8VYF-00032v-Cj for emacs-orgmode@gnu.org; Fri, 05 Dec 2008 02:56:40 -0500 Received: from [199.232.76.173] (port=48155 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8VYF-00032s-7J for emacs-orgmode@gnu.org; Fri, 05 Dec 2008 02:56:39 -0500 Received: from mx20.gnu.org ([199.232.41.8]:23684) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L8VYE-0001Op-L9 for emacs-orgmode@gnu.org; Fri, 05 Dec 2008 02:56:38 -0500 Received: from an-out-0708.google.com ([209.85.132.248]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L8VYD-0004bY-J9 for emacs-orgmode@gnu.org; Fri, 05 Dec 2008 02:56:37 -0500 Received: by an-out-0708.google.com with SMTP id c38so3994315ana.21 for ; Thu, 04 Dec 2008 23:56:36 -0800 (PST) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I'm a late comer. Just found Carston's presentation at Google. Nice piece of work. Many thanks. Unfortunately, the first thing I did failed with an "Args out of range error". I've worked through that (described below). And have just finished converting all my sticky notes to org-mode. Label me a convert. The "Args out of range" error is specific to XEmacs [running 21.4 (patch 21)]. I'm running org-mode from the git repository: $ git-describe release_6.13a-23-g269c5a8 My first experiment consisted of: * 1234 * 4567 Meta-Up That deleted the second line of text and threw the args range exception #, 0, 1 Here's the traceback: Debugger entered--Lisp error: (args-out-of-range # 0 1) map-extents((lambda (ex ignored) (if (< ... beg) (if ... ... ...) (if ... ... ...))) # 0 1 nil end-closed outline) (save-excursion (map-extents (function ...) (current-buffer) beg end nil (quote end-closed) (quote outline))) outline-discard-extents(0 1) outline-flag-region(0 1 nil) org-move-subtree-down(-1) org-move-subtree-up(1) call-interactively(org-move-subtree-up) org-metaup(nil) call-interactively(org-metaup) Here's what I did to noutline.el to mask the issue: diff --git a/xemacs/noutline.el b/xemacs/noutline.el index f9ea1da..2463011 100644 --- a/xemacs/noutline.el +++ b/xemacs/noutline.el @@ -735,6 +735,8 @@ BEG and END default respectively to the beginning and end of buffer." If FLAG is nil then text is shown, while if FLAG is t the text is hidden." (when (< to from) (setq from (prog1 to (setq to from)))) + (when (< from (point-min)) + (setq from (point-min))) ;; first clear it all out (outline-discard-extents from to) (when flag I doubt this is a proper fix. It likely just masks the real issue. The line in org-move-subtree-down that called outline-flag-region with FROM set to zero is: (outline-flag-region (1- (point)) (point) nil) I haven't dug into why this isn't already reported or why it doesn't occur with FSF Emacs. But many thank for an excellent tool.