From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Zattler Subject: Re: Orgalist notes Date: Mon, 07 May 2018 11:13:53 +0200 Message-ID: <87in7zbzfy.fsf@len.workgroup> References: <87sh754q02.fsf@ericabrahamsen.net> <87bmdtkqtl.fsf@len.workgroup> <87k1sh81f8.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFcDe-0006mJ-Lt for emacs-orgmode@gnu.org; Mon, 07 May 2018 05:14:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFcDb-0001wD-H5 for emacs-orgmode@gnu.org; Mon, 07 May 2018 05:14:06 -0400 Received: from mout.gmx.net ([212.227.15.18]:40723) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fFcDb-0001vL-79 for emacs-orgmode@gnu.org; Mon, 07 May 2018 05:14:03 -0400 Received: from len.workgroup ([46.94.158.96]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MDhba-1f6HUU3fRe-00H3Gg for ; Mon, 07 May 2018 11:14:00 +0200 In-Reply-To: <87k1sh81f8.fsf@nicolasgoaziou.fr> 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 Hi Nicolas, * Nicolas Goaziou [2018-05-06; 13:32]: > Gregor Zattler writes: > >> With org-mode in the load-path, the line breaks happen for all >> lines not only the first one. But one has to (require 'org) in >> order for M-RET to work. This is no problem for me, since I work >> with org-mode all the time, but is this intended? > > No, it is not intended. Orgalist 1.6 (to be released tomorrow) will > require Org right from the start. This works now with bullet and numbered lists when called in a non-configured emacs session. Thanks. >> In my highly customized emacs I get line breaks but M-RET gives >> >> 1. jesdgf oigjovgjis uh urh udrhfesgh ourhes ouh ouhroe uhos ho >> hg uirehui shgourheoug hhsou hogush oguhuishughsoieghoudrhes >> uhguhdsh ghourhg >> >> orgalist-insert-item: Wrong type argument: integer-or-marker-p, nil [...] >> Could you give me a hint on how to debug this? > > Please use M-x toggle-debug-on-error and report the backtrace here. > Loading an un-compiled Orgalist is better. 1. rzhe juhgdhjvhj vghfjs y rvgfhjxd bvjxdbv mh vxnbxgbfvghg drgh djhxcjhbnjdfjhvgjhf jhfhjghfj hfjM-RET gives: Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) org-list-insert-item(1504 ((1397 0 "1. " nil nil nil 1505)) ((1397)) nil nil) (setq struct (org-list-insert-item (point) struct prevs checkbox desc)) (let* ((struct (save-excursion (goto-char item\?) (orgalist--struct))) (prevs (org-list-prevs-alist struct)) (desc (and (eq 'descriptive (org-list-get-list-type item\? struct prevs)) " :: "))) (setq struct (org-list-insert-item (point) struct prevs checkbox desc)) (org-list-write-struct struct (org-list-parents-alist struct)) (looking-at orgalist--item-re) (goto-char (if (and (match-beginning 4) (let ((save-match-data-internal (match-data))) (unwind-protect (progn (string-match "\\." (match-string 1))) (set-match-data save-match-data-internal 'evaporate)))) (match-beginning 4) (match-end 0))) (if desc (progn (backward-char 1)))) (let ((item\? (orgalist--in-item-p))) (if item\? nil (user-error "Not in a list")) (let* ((struct (save-excursion (goto-char item\?) (orgalist--struct))) (prevs (org-list-prevs-alist struct)) (desc (and (eq 'descriptive (org-list-get-list-type item\? struct prevs)) " :: "))) (setq struct (org-list-insert-item (point) struct prevs checkbox desc)) (org-list-write-struct struct (org-list-parents-alist struct)) (looking-at orgalist--item-re) (goto-char (if (and (match-beginning 4) (let ((save-match-data-internal (match-data))) (unwind-protect (progn (string-match "\\." (match-string 1))) (set-match-data save-match-data-internal 'evaporate)))) (match-beginning 4) (match-end 0))) (if desc (progn (backward-char 1))))) orgalist-insert-item(nil) funcall-interactively(orgalist-insert-item nil) call-interactively(orgalist-insert-item nil nil) command-execute(orgalist-insert-item) I have no clue how to read this. Thanks for looking into this, Gregor