From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Regression in Org triggered from helm Date: Mon, 26 Oct 2015 16:58:39 -0400 Message-ID: <877fm9bb40.fsf@kyleam.com> References: <562FDD12.7000702@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqoqu-00024P-V3 for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 16:58:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zqoqq-0008Sp-Vb for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 16:58:48 -0400 Received: from mail-qg0-x232.google.com ([2607:f8b0:400d:c04::232]:34109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqoqq-0008SS-R9 for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 16:58:44 -0400 Received: by qgem9 with SMTP id m9so130475876qge.1 for ; Mon, 26 Oct 2015 13:58:44 -0700 (PDT) In-Reply-To: <562FDD12.7000702@gmx.de> (Simon Thum's message of "Tue, 27 Oct 2015 20:22:42 +0000") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Simon Thum Cc: emacs-orgmode Hello, Simon Thum writes: > Hi, > > after updating helm I came across a possible regression on Org. I > Already filed a helm bug, but Thierry thinks it's Org's fault. What version of Org are you using? > https://github.com/emacs-helm/helm/issues/1246 > > In short, M-x helm-org-agenda-files-headings breaks. > > I had some success working around it, but for reasons beyond me that > doesn't work any more. I'll try to work out a MCE but for the time in > between, maybe someone has an idea what's wrong, and where (org or > helm)? I haven't had any luck reproducing this. Isolating the error with a minimal configuration and minimal Org file would be very helpful. > > Here is the complete stacktrace (the -my function is textually > equivalent to its non-my counterpart in helm-org): > > > Debugger entered--Lisp error: (args-out-of-range "LoD" 0 -3) > substring("LoD" 0 -6) > (setq h (substring h 0 (- maxwidth 2)) total (+ total maxwidth 1)) At some point, maxwidth is being set very low (-4 here). Try to see where this happens. For example, what value for width does helm-get-org-candidates-in-file send into org-format-outline-path? If that seems to be appropriate, debug org-format-outline-path and see when it's getting set to the low value. -- Kyle