From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0NxWC521lmZIOAAA62LTzQ:P1 (envelope-from ) for ; Tue, 16 Jul 2024 18:02:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0NxWC521lmZIOAAA62LTzQ (envelope-from ) for ; Tue, 16 Jul 2024 20:02:05 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-23sep header.b=gc907psr; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=vodafonemail.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721152924; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=xTLCJw3ES//qTH379ySHYo6G96egNHiBWiexFyPXXXY=; b=F0Keb7Ybj5G7vDkl0AW5UNUzEz74e6ySsmBRkcV8oy+EoXJ6tvkXwVh8Js+SQYDiCms6c/ wes7aP8pllBOU7wdtxcCyYnJfF1ig5tiatdB7XexfgvY9YmRBNaSChbPtfAH+/m8oTxs5l 4KyULJFyKckTVctjSgxw+s+1uu81w5PdGIrrMWdiEUxeGEO5LQV/ck9b7TBpHlJ91H+Fl/ GeCGy/2VW4L8pqhpgqETOdxSoCC+aqNrYxVi7U+jmANvQvqOV9xtNuOPGtciqJjiU1lkD9 SEp27g+3JRG9A7HcZbVmPCiXrEMoo+YW6nRX+yrrQ97XrFBTyCk0SctTh1mX5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-23sep header.b=gc907psr; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=vodafonemail.de ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721152924; a=rsa-sha256; cv=none; b=db7joOUmMFxT7kV/ajOMf9gRNkO6onRJE+omSpJiujBnx1etpmJEldj+VL/PiFlwVmYnuD EhRFJHCHZQfXTgOVx8zrUTtGU+GdbxNLc4i+b7I3Xyt5gbOS9z12L1N+AHfuaXWGUM9OE1 DitVzor5C1iNEQhb2r8BCGp1sDjMwOTwkXAgysmStSOO0AssckYVB94LSZaPBor7aNp218 o1z5KawcNHciUULO+Ey8rMDb5YaIR71kn4PrKdSXLloF/jylsQ01/QUa2udEY+Pv/64t4H /PpVANuLf0N/WryHF6djb8jNqX+3LwdWaz13bLKZ2tR8VJ4jO/WFpNuS9x8nAQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A57557559D for ; Tue, 16 Jul 2024 20:02:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTmUP-00065S-UF; Tue, 16 Jul 2024 14:01:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTmUM-00064v-Br for emacs-orgmode@gnu.org; Tue, 16 Jul 2024 14:01:22 -0400 Received: from mr3.vodafonemail.de ([145.253.228.163]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTmUJ-0007sF-AL for emacs-orgmode@gnu.org; Tue, 16 Jul 2024 14:01:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-23sep; t=1721152865; bh=xTLCJw3ES//qTH379ySHYo6G96egNHiBWiexFyPXXXY=; h=From:To:Subject:Date:Message-ID:Content-Type:From; b=gc907psrsR+nowAF85mUO63t++7s9V1P+hDOZgAF6CRq8nwiQPjce2xxMjUUObicA Q44uMA7FslSYEZvv3J8FnlIBXpGDuOyTqITYiYFDbxrDcm5k1clSpDknOL2RDfTxeS C7zHeo/EUUphUcu1Ut6apVnSd8uBBRTx9InkcVSY= Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr3.vodafonemail.de (Postfix) with ESMTPS id 4WNn1Y2tt7z1yWW for ; Tue, 16 Jul 2024 18:01:05 +0000 (UTC) Received: from sappc2 (port-92-196-29-193.dynamic.as20676.net [92.196.29.193]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4WNn1T0TqtzMkrv for ; Tue, 16 Jul 2024 18:00:58 +0000 (UTC) From: Jens Schmidt To: emacs-orgmode@gnu.org Subject: [BUG] org-indent-line edge case in empty Org mode buffer [9.8-pre (release_9.7.6-107-gf21415 @ /home/jschmidt/work/org-mode/lisp/)] Date: Tue, 16 Jul 2024 20:00:41 +0200 Message-ID: <87ed7tb4ja.fsf@sappc2.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain X-purgate-type: clean X-purgate: clean X-purgate-size: 929 X-purgate-ID: 155817::1721152861-6D7F8A4B-8ABFE35B/0/0 Received-SPF: pass client-ip=145.253.228.163; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr3.vodafonemail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.61 X-Migadu-Queue-Id: A57557559D X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.61 X-TUID: r+54z7vGTceQ The following sequence of commands: make vanilla M-x org-mode RET M-x erase-buffer RET SPC M-: (setq org-adapt-indentation 'headline-data) M-x org-indent-line RET results in: Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) org-indent-line() funcall-interactively(org-indent-line) command-execute(org-indent-line record) execute-extended-command(nil "org-indent-line" "org-indent-li") funcall-interactively(execute-extended-command nil "org-indent-line" "org-indent-li") command-execute(execute-extended-command) `org-indent-line' probably should test ELEMENT on nil-ness, but I'm not sure where exactly. Emacs : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-06-25, modified by Debian Package: Org mode version 9.8-pre (release_9.7.6-107-gf21415 @ /home/jschmidt/work/org-mode/lisp/)