From unknown Mon Aug 18 00:09:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27557 <27557@debbugs.gnu.org> To: bug#27557 <27557@debbugs.gnu.org> Subject: Status: 26.0.50: patch org-edit-src-code Reply-To: bug#27557 <27557@debbugs.gnu.org> Date: Mon, 18 Aug 2025 07:09:01 +0000 retitle 27557 26.0.50: patch org-edit-src-code reassign 27557 emacs submitter 27557 Fritz Stelzer severity 27557 normal tag 27557 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 02 20:30:33 2017 Received: (at submit) by debbugs.gnu.org; 3 Jul 2017 00:30:33 +0000 Received: from localhost ([127.0.0.1]:49252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRpG5-0004oE-DH for submit@debbugs.gnu.org; Sun, 02 Jul 2017 20:30:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRcVG-0005u2-Ki for submit@debbugs.gnu.org; Sun, 02 Jul 2017 06:53:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRcVA-0004AK-Du for submit@debbugs.gnu.org; Sun, 02 Jul 2017 06:53:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54344) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dRcVA-0004AB-AF for submit@debbugs.gnu.org; Sun, 02 Jul 2017 06:53:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRcV8-0001T6-Ru for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 06:53:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRcV7-00049F-Up for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 06:53:14 -0400 Received: from mail-yw0-x234.google.com ([2607:f8b0:4002:c05::234]:33829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRcV7-00047F-Nr for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 06:53:13 -0400 Received: by mail-yw0-x234.google.com with SMTP id l21so53966127ywb.1 for ; Sun, 02 Jul 2017 03:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=hUmEncWJxjZrKx/9qsGwNAu8jFpnt0EmIbfMMRVgsXc=; b=DlQO0SbFavyBDhu5OzIqnBsXJUG1JjuYACYWC+i6VjPXmpa58mkR0VxbzK9vYguJtf Gt9mII4Dr1NWB+LPSAO+0/6lTaQ3GUpVwmh5JjdvgQavhQ2XMPWSLH/liv9hrZfWAYR8 vFXZu856jp2XpikSH3lLj8qlT3EWcpUOCguYPEPfZQlE6cUHW+tOCglMzWM75DX/lMd6 BHEQAZkgB12+MVXKxL+zmQphf5zFmQRfgkxO7tmvlC3skxUGfh3vMtifO7Iw80SBeHi7 5Ts3zCRbtxoZIXXPHO/B2hcIO1cl/8r6bFS4H+1ac85lqcP0IJlHBWFAl9JSp9THl1Jo Ew7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hUmEncWJxjZrKx/9qsGwNAu8jFpnt0EmIbfMMRVgsXc=; b=AjRaB3YcneLu4DK3jdRzQO0eiYKsuVgqrFNj5ae0qFkqKIZS36U5B943iKHt1ObF/+ vuIW51TGISEX05/XTEigxf2JfYrP2qWqmvBuCstXLPCntZtrEIzYPVBfz2AHYhFC/fZo nTmd2DA1ZE6wOukGqKSSWb/ko4EG0IYqBASIZM0wOIyifnx/S/f297lZ12Cjxrf37q0N ApB7s0bTux/T+kWGynbnh6LrAfj8g2l5TQ6VA0xzG9cJ0g0Yz3yD8qgYuMKPW+Z9xOql MsCUhyJJH5AGpHSgZ6oMeHUsBLJYsaGkKrJfswuwaTaqjYCaDowiorzHQJA+FsP+MuJi ZYmw== X-Gm-Message-State: AKS2vOzKK7D9Wui3wab99qRl1zR1XrZE8pGE8Zyh5qXNk87Wa877oRf5 HcVvZZ2la/dBzoMy9yZaCgI51B0+FeFP X-Received: by 10.129.50.140 with SMTP id y134mr22562451ywy.312.1498992790814; Sun, 02 Jul 2017 03:53:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.131.71 with HTTP; Sun, 2 Jul 2017 03:53:10 -0700 (PDT) From: Fritz Stelzer Date: Sun, 2 Jul 2017 12:53:10 +0200 Message-ID: Subject: 26.0.50: patch org-edit-src-code To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="001a1140932ad143a10553537459" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -6.8 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 02 Jul 2017 20:30:32 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.8 (------) --001a1140932ad143a10553537459 Content-Type: text/plain; charset="UTF-8" When I use "org-edit-special" in an org babel block, I get this traceback: Debugger entered--Lisp error: (wrong-type-argument listp t) delete((org-filtered) t) remove((org-filtered) t) org-move-to-column(5) org-edit-src-code() org-edit-special(nil) funcall-interactively(org-edit-special nil) call-interactively(org-edit-special record nil) command-execute(org-edit-special record) execute-extended-command(nil "org-edit-special" "org-edit-sp") funcall-interactively(execute-extended-command nil "org-edit-special" "org-edit-sp") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) The reason for this seems to be a rewrite of the c function "delete", that does not accept "t" instead of a list anymore. I guess it was done for a reason. I think "org-move-to-column" causes the problem as it is called in org-src buffers. I tried "org-move-to-column" in an org buffer and it seems to work. My solution would be to use "move-to-column" instead: master ff87c8da24b40399f18f1c4c6fcab601287683ae Author: brotzeit AuthorDate: Sun Jul 2 12:44:53 2017 +0200 Commit: brotzeit CommitDate: Sun Jul 2 12:44:53 2017 +0200 Parent: 9a2a7bb6e6 Let test summary go through even if some logs were not generated Merged: master Containing: master Follows: emacs-25.1 (129272) use move-to-column in source block editing buffer modified lisp/org/org-src.el @@ -356,13 +356,13 @@ org-edit-src-code (org-unescape-code-in-region (point-min) (point-max)) (when markline (org-goto-line (1+ (- markline begline))) - (org-move-to-column + (move-to-column (if org-src-preserve-indentation markcol (max 0 (- markcol total-nindent)))) (push-mark (point) 'no-message t) (setq deactivate-mark nil)) (org-goto-line (1+ (- line begline))) - (org-move-to-column + (move-to-column (if org-src-preserve-indentation col (max 0 (- col total-nindent)))) (org-src-mode) (set-buffer-modified-p nil) --001a1140932ad143a10553537459 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

When I use "org-edit-special" in an org babe= l block, I get this traceback:

Debugger entered--Lisp error: (wrong-= type-argument listp t)
=C2=A0 delete((org-filtered) t)
=C2=A0 remove(= (org-filtered) t)
=C2=A0 org-move-to-column(5)
=C2=A0 org-edit-src-co= de()
=C2=A0 org-edit-special(nil)
=C2=A0 funcall-interactively(org-ed= it-special nil)
=C2=A0 call-interactively(org-edit-special record nil)=C2=A0 command-execute(org-edit-special record)
=C2=A0 execute-extende= d-command(nil "org-edit-special" "org-edit-sp")
=C2= =A0 funcall-interactively(execute-extended-command nil "org-edit-speci= al" "org-edit-sp")
=C2=A0 call-interactively(execute-exte= nded-command nil nil)
=C2=A0 command-execute(execute-extended-command)

The reason for this seems to be a rewrite of the c function "= ;delete", that does not accept "t" instead of a list anymore= . I guess it was done for a reason.
I think "org-move-to-column&quo= t; causes the problem as it is called in org-src buffers. I tried "org= -move-to-column" in an org buffer and it seems to work.


My solution would be to use "move-to-column" instead:

master ff87c8da24b40399f18f1c4c6fcab601287683ae
Author:=C2=A0=C2=A0=C2= =A0=C2=A0 brotzeit <brotzeit= macher@gmail.com>
AuthorDate: Sun Jul 2 12:44:53 2017 +0200
Co= mmit:=C2=A0=C2=A0=C2=A0=C2=A0 brotzeit <brotzeitmacher@gmail.com>
CommitDate: Sun Jul 2 12:44= :53 2017 +0200

Parent:=C2=A0=C2=A0=C2=A0=C2=A0 9a2a7bb6e6 Let test s= ummary go through even if some logs were not generated
Merged:=C2=A0=C2= =A0=C2=A0=C2=A0 master
Containing: master
Follows:=C2=A0=C2=A0=C2=A0 = emacs-25.1 (129272)

use move-to-column in source block editing buffe= r

modified=C2=A0=C2=A0 lisp/org/org-src.el
@@ -356,13 +356,13 @@ = org-edit-src-code
=C2=A0=C2=A0=C2=A0=C2=A0 (org-unescape-code-in-region = (point-min) (point-max))
=C2=A0=C2=A0=C2=A0=C2=A0 (when markline
=C2= =A0=C2=A0=C2=A0=C2=A0 =C2=A0 (org-goto-line (1+ (- markline begline)))
-= =C2=A0=C2=A0=C2=A0 =C2=A0 (org-move-to-column
+=C2=A0=C2=A0=C2=A0 =C2=A0= (move-to-column
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 (if org-src-prese= rve-indentation markcol
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2= =A0 (max 0 (- markcol total-nindent))))
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0 = (push-mark (point) 'no-message t)
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0 (s= etq deactivate-mark nil))
=C2=A0=C2=A0=C2=A0=C2=A0 (org-goto-line (1+ (-= line begline)))
-=C2=A0=C2=A0=C2=A0 (org-move-to-column
+=C2=A0=C2= =A0=C2=A0 (move-to-column
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0(if org-src-pre= serve-indentation col (max 0 (- col total-nindent))))
=C2=A0=C2=A0=C2=A0= =C2=A0 (org-src-mode)
=C2=A0=C2=A0=C2=A0=C2=A0 (set-buffer-modified-p ni= l)
--001a1140932ad143a10553537459-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 03 08:45:09 2017 Received: (at 27557) by debbugs.gnu.org; 3 Jul 2017 12:45:09 +0000 Received: from localhost ([127.0.0.1]:49514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dS0iy-0008Mz-Te for submit@debbugs.gnu.org; Mon, 03 Jul 2017 08:45:09 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:34758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dS0ix-0008MZ-02; Mon, 03 Jul 2017 08:45:07 -0400 Received: by mail-it0-f67.google.com with SMTP id o202so8842518itc.1; Mon, 03 Jul 2017 05:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=lLx4yFpyrG4Gl8K7tYRaZSSAKdxFFUWqXFR1dkMxnko=; b=WzEBEKmm99fSUjW7uVuj2zssCAic6sLruVbv2nWNW1dlj4+R2lp51yMPN1GZJjUgc5 A38nvxHEHgCzV4682OYwArC3o4gj9SKh7w0y0fyxFGTj334jef8eCNKTvEPlFTw22KVy lcsOZcN3nWNt5Zm11PrvVw4IRA4JEBHRooVglgLLydyBssa9SxSSS/jxr56VW5W2Oihm W1GEru6RtKZTg0XcKv/qi3Q6tIBqNrQP/3yZVuiSpVilUq7hBUjxhSeqyMWrvBINJPCn PIJB0i2vcVBTubFknIXh5d3NN4yF/w6gN9ZktpWHq6hJqlumw2LRi79e4XMnSam4qChm Wdfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=lLx4yFpyrG4Gl8K7tYRaZSSAKdxFFUWqXFR1dkMxnko=; b=PRdP7OyQHNADECuiPEE4ceZYqOHSkKsOqyLHQp0wIx9FkX8aE9jggMDnld+MUSaU5b SMCwyhTofgZ8eTRMI2vVkVni6SidJt/RdYXkj5vFsQtS1+0iRtuBUPeSxDEZLw9SWz0O LTTlPCzunZ/+4gyKZQ9FLa/zahprfxiNy2z20HEZQCg1ahUybEU/DO7hNTXZ9psnTJPz j7EGd/CDsUDsX+3cNg1YxAYiORruvLWepkRze6Y7B2GFbSoIx23Mp05qfEw2HoTyr2hZ mnb7UWlmKVQzJu4CBXNF2p6VM4VV/7DLbcNMoU8MWvASnJToz4WQ8N+CwTxCl5t1HH6+ 235g== X-Gm-Message-State: AIVw111Yt9NlQ6/Zz4nwqpEhR3mwzGUwFVJTAPIWGSmJA53cuwG5dbDl Adxn79MblZyHh8Ev X-Received: by 10.36.4.76 with SMTP id 73mr8225521itb.58.1499085900851; Mon, 03 Jul 2017 05:45:00 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id f127sm2708514itf.27.2017.07.03.05.44.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jul 2017 05:44:59 -0700 (PDT) From: npostavs@users.sourceforge.net To: Fritz Stelzer Subject: Re: bug#27557: 26.0.50: patch org-edit-src-code References: Date: Mon, 03 Jul 2017 08:46:36 -0400 In-Reply-To: (Fritz Stelzer's message of "Sun, 2 Jul 2017 12:53:10 +0200") Message-ID: <87eftxk7rn.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 27557 Cc: 27557@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) tags 27557 fixed close 27557 quit Fritz Stelzer writes: > When I use "org-edit-special" in an org babel block, I get this traceback: > > Debugger entered--Lisp error: (wrong-type-argument listp t) > delete((org-filtered) t) > remove((org-filtered) t) > org-move-to-column(5) > org-edit-src-code() > org-edit-special(nil) This seems to have been fixed with the recent org-mode update. [1: 5cecd27582]: 2017-06-22 11:54:18 +0200 Update Org to v9.0.9 http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=5cecd275820df825c51bf9a27fcc7e35f30ff273 [2: 1ce7864d1f]: 2017-06-22 11:54:27 +0200 Add Org schemas.xml contents to Emacs schemas.xml http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=1ce7864d1f3fc81257193b8cece934f984285c92 [3: 5cfdf8dd17]: 2017-06-22 12:26:08 +0200 ; Fix ORG-NEWS formatting in previous commit http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=5cfdf8dd17366e3ebf9f4e000b82a281c4183e66 [4: 896641b962]: 2017-06-23 10:58:09 +0200 Synchronize with the "emacs-sync" branch from Org http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=896641b962443a6398ebe337cd78a6c1180971c1 [5: 20e006ffee]: 2017-06-23 10:59:16 +0200 ; Fix version in orgcard.tex http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=20e006ffee41062f1b551a92c24d9edc53cd0f56 From unknown Mon Aug 18 00:09:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 01 Aug 2017 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator