From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 24 12:34:11 2019 Received: (at submit) by debbugs.gnu.org; 24 Mar 2019 16:34:11 +0000 Received: from localhost ([127.0.0.1]:56971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h864Z-0001PL-I8 for submit@debbugs.gnu.org; Sun, 24 Mar 2019 12:34:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h864X-0001P4-5b for submit@debbugs.gnu.org; Sun, 24 Mar 2019 12:34:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:42562) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h864R-00081k-U3 for submit@debbugs.gnu.org; Sun, 24 Mar 2019 12:34:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h864Q-0000I8-Gn for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 12:34:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h864P-00081G-F1 for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 12:34:02 -0400 Received: from forward400p.mail.yandex.net ([77.88.28.105]:57709) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h864O-00080c-NH for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 12:34:01 -0400 Received: from mxback3o.mail.yandex.net (mxback3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1d]) by forward400p.mail.yandex.net (Yandex) with ESMTP id 41CEB1BC101B for ; Sun, 24 Mar 2019 19:33:56 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback3o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 7KBbt1WcUg-XtRutITp; Sun, 24 Mar 2019 19:33:55 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1553445235; bh=iZ3AefYxZZJe0pPLdiowo9nWHUvbhBwbZ3NiRhPK+Xs=; h=Message-Id:Date:Subject:To:From; b=ANI/HyX8JXB+9nE1NEft+vwX7sfrzMpNuq5WIMaZG1K5/VWxoAOyNmn5EUBmw+Kij aWEXA/wB4F+6aI8eynUY4N6yBmbPPzbifdLI/a5msIFzxbfxtnMRTKDAeNiEN2+qwh Ng2rXCwmhtQWa8yDVrcYYMhFaQkimeKKxQdgGrZY= Authentication-Results: mxback3o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by iva1-3d0d937e850f.qloud-c.yandex.net with HTTP; Sun, 24 Mar 2019 19:33:55 +0300 From: pinkanon pinkanon Envelope-From: pinkanon-pinkanon@yandex.ru To: bug-gnu-emacs@gnu.org Subject: org-edit-src-code undesirable behaviour MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sun, 24 Mar 2019 18:33:55 +0200 Message-Id: <3260071553445235@iva1-3d0d937e850f.qloud-c.yandex.net> Content-Transfer-Encoding: 7bit Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 77.88.28.105 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit 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.0 (/) GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.7) of 2019-03-17 Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/) There are two things that work undesirably for me when using org-edit-src-code: (1) With a selected region, the point in the edit buffer will be one line below the bottom of the selection. (2) After closing the edit buffer, if it was modified, the point jumps to the beginning of the block. (3) If I wanted to programmatically edit src code in the block, is calling 'org-edit-src-code the right way anyway? Because there seems to be some lag, besides the points mentioned above. Steps to reproduce: M-x org-mode Eval this function: (defun commit-bad-deeds () (interactive) (let* ((p (point)) (w (get-buffer-window (current-buffer)))) (org-edit-src-code) (gnus-delete-line) ; any code that modifies buffer (org-edit-src-exit) (set-window-point w p))) Bind it: (global-set-key (kbd "M-w") 'commit-bad-deeds) Paste this code: #+BEGIN_SRC elisp (1) cursor jumps to the beginning of this line (2) lawfully-good line to be selected (3) and this line to be murdered instead (4) w/ no witnesses #+END_SRC - Jump to line (2) - Select whole line: (progn (end-of-line) (set-mark (line-beginning-position))) or any other way - press M-w Observe: (1) Line (3) removed instead of (2) (2) Point jumping to the beginning of the block (3) Lag? From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 24 12:48:26 2019 Received: (at control) by debbugs.gnu.org; 24 Mar 2019 16:48:26 +0000 Received: from localhost ([127.0.0.1]:56976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h86IL-0001lj-SB for submit@debbugs.gnu.org; Sun, 24 Mar 2019 12:48:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h86IL-0001lX-2E for control@debbugs.gnu.org; Sun, 24 Mar 2019 12:48:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h86IF-0004Qs-Ba for control@debbugs.gnu.org; Sun, 24 Mar 2019 12:48:19 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1h86IF-0001Wu-2q for control@debbugs.gnu.org; Sun, 24 Mar 2019 12:48:19 -0400 Subject: control message for bug 34977 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sun, 24 Mar 2019 12:48:19 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) reassign 34977 org-mode From debbugs-submit-bounces@debbugs.gnu.org Sun May 05 06:25:06 2019 Received: (at 34977) by debbugs.gnu.org; 5 May 2019 10:25:06 +0000 Received: from localhost ([127.0.0.1]:53063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNEKQ-0003uw-0l for submit@debbugs.gnu.org; Sun, 05 May 2019 06:25:06 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:53917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNEKM-0003tZ-CH for 34977@debbugs.gnu.org; Sun, 05 May 2019 06:25:03 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 35B51240008; Sun, 5 May 2019 10:24:57 +0000 (UTC) From: Nicolas Goaziou To: pinkanon pinkanon Subject: Re: bug#34977: org-edit-src-code undesirable behaviour References: <3260071553445235@iva1-3d0d937e850f.qloud-c.yandex.net> Date: Sun, 05 May 2019 12:24:57 +0200 In-Reply-To: <3260071553445235@iva1-3d0d937e850f.qloud-c.yandex.net> (pinkanon pinkanon's message of "Sun, 24 Mar 2019 18:33:55 +0200") Message-ID: <875zqpfbba.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34977 Cc: 34977@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: -1.7 (-) Hello, pinkanon pinkanon writes: > There are two things that work undesirably for me when using org-edit-src-code: > (1) With a selected region, the point in the edit buffer will be one line below the bottom of the selection. > (2) After closing the edit buffer, if it was modified, the point jumps to the beginning of the block. > (3) If I wanted to programmatically edit src code in the block, is calling 'org-edit-src-code the right way anyway? Because there seems to be some lag, besides the points mentioned above. > > Steps to reproduce: > > M-x org-mode > > Eval this function: > > (defun commit-bad-deeds () > (interactive) > (let* ((p (point)) > (w (get-buffer-window (current-buffer)))) > (org-edit-src-code) > (gnus-delete-line) ; any code that modifies buffer > (org-edit-src-exit) > (set-window-point w p))) > > Bind it: > > (global-set-key (kbd "M-w") 'commit-bad-deeds) > > Paste this code: > > #+BEGIN_SRC elisp > (1) cursor jumps to the beginning of this line > (2) lawfully-good line to be selected > (3) and this line to be murdered instead > (4) w/ no witnesses > #+END_SRC > > - Jump to line (2) > - Select whole line: (progn (end-of-line) (set-mark (line-beginning-position))) or any other way > - press M-w > > Observe: > (1) Line (3) removed instead of (2) > (2) Point jumping to the beginning of the block > (3) Lag? I cannot reproduce any of these observations. Could you check that no other function is interfering? Regards, -- Nicolas Goaziou From debbugs-submit-bounces@debbugs.gnu.org Sun May 24 04:19:40 2020 Received: (at 34977-done) by debbugs.gnu.org; 24 May 2020 08:19:41 +0000 Received: from localhost ([127.0.0.1]:36431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jclrA-0004nq-Lc for submit@debbugs.gnu.org; Sun, 24 May 2020 04:19:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jclr9-0004ng-3P for 34977-done@debbugs.gnu.org; Sun, 24 May 2020 04:19:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57940) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jclr2-0008ID-64; Sun, 24 May 2020 04:19:32 -0400 Received: from lns-bzn-32-82-254-31-120.adsl.proxad.net ([82.254.31.120]:52196 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jclr1-0004fB-Tk; Sun, 24 May 2020 04:19:32 -0400 Received: by guerry (Postfix, from userid 1000) id 419511A604DE; Sun, 24 May 2020 10:19:30 +0200 (CEST) From: Bastien To: Nicolas Goaziou Subject: Re: bug#34977: org-edit-src-code undesirable behaviour References: <3260071553445235@iva1-3d0d937e850f.qloud-c.yandex.net> <875zqpfbba.fsf@nicolasgoaziou.fr> Date: Sun, 24 May 2020 10:19:30 +0200 In-Reply-To: <875zqpfbba.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 05 May 2019 12:24:57 +0200") Message-ID: <87r1v9agod.fsf@bzg.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34977-done Cc: 34977-done@debbugs.gnu.org, pinkanon pinkanon 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: -3.3 (---) Hi, Nicolas Goaziou writes: > I cannot reproduce any of these observations. Could you check that no > other function is interfering? Well, I tried and could not reproduce this either. I am closing the bug report. -- Bastien From unknown Sat Sep 06 14:23:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 21 Jun 2020 11:24:07 +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