From unknown Sun Jun 15 14:44:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15929: point position with electric-pair-mode Resent-From: Dan Nicolaescu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Nov 2013 19:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15929 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 15929@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.138489069211235 (code B ref -1); Tue, 19 Nov 2013 19:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Nov 2013 19:51:32 +0000 Received: from localhost ([127.0.0.1]:33646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VirKd-0002v9-D7 for submit@debbugs.gnu.org; Tue, 19 Nov 2013 14:51:31 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57427) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VirKa-0002ur-RV for submit@debbugs.gnu.org; Tue, 19 Nov 2013 14:51:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VirKU-0005Qg-SZ for submit@debbugs.gnu.org; Tue, 19 Nov 2013 14:51:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VirKU-0005Qa-PZ for submit@debbugs.gnu.org; Tue, 19 Nov 2013 14:51:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VirKT-0003uh-Lv for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 14:51:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VirKO-0005P8-Pj for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 14:51:21 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VirKO-0005P3-M4 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 14:51:16 -0500 Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VirKO-0005At-D1 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2013 14:51:16 -0500 From: Dan Nicolaescu Date: Tue, 19 Nov 2013 14:51:16 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.5 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.5 (-----) emacs -Q M-x electric-pair-mode RET f o o C-SPC C-a The point should now be at the beginning of a line that contains the string: foo Typing " inserts quotes around foo, but the point is moved to the end of the line. After inserting a pair, the point is moved after the last item in the pair, regardless if the point was at the begging of the region. It would be better if the point stayed in the same location. Or at least offer a configuration variable to allow that behavior. Thanks From unknown Sun Jun 15 14:44:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15929: point position with electric-pair-mode Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Nov 2013 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15929 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dan Nicolaescu Cc: 15929@debbugs.gnu.org Received: via spool by 15929-submit@debbugs.gnu.org id=B15929.13849751503282 (code B ref 15929); Wed, 20 Nov 2013 19:20:02 +0000 Received: (at 15929) by debbugs.gnu.org; 20 Nov 2013 19:19:10 +0000 Received: from localhost ([127.0.0.1]:35095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VjDIs-0000qs-CO for submit@debbugs.gnu.org; Wed, 20 Nov 2013 14:19:10 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:35004) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VjDIq-0000qi-Dv for 15929@debbugs.gnu.org; Wed, 20 Nov 2013 14:19:09 -0500 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id rAKJJ67s015135; Wed, 20 Nov 2013 14:19:06 -0500 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id BA364B5162; Wed, 20 Nov 2013 14:19:06 -0500 (EST) From: Stefan Monnier Message-ID: References: Date: Wed, 20 Nov 2013 14:19:06 -0500 In-Reply-To: (Dan Nicolaescu's message of "Tue, 19 Nov 2013 14:51:16 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4768=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4768> : inlines <244> : streams <1077194> : uri <1601019> X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.9 (-) > Typing " inserts quotes around foo, but the point is moved to the end of > the line. After inserting a pair, the point is moved after the last > item in the pair, regardless if the point was at the begging of the > region. > It would be better if the point stayed in the same location. Agreed. Fix welcome. > Or at least offer a configuration variable to allow that behavior. I don't think it's needed. Stefan From unknown Sun Jun 15 14:44:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15929: point position with electric-pair-mode Resent-From: Dan Nicolaescu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Dec 2013 17:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15929 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 15929@debbugs.gnu.org Received: via spool by 15929-submit@debbugs.gnu.org id=B15929.138600701324028 (code B ref 15929); Mon, 02 Dec 2013 17:57:01 +0000 Received: (at 15929) by debbugs.gnu.org; 2 Dec 2013 17:56:53 +0000 Received: from localhost ([127.0.0.1]:54982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VnXjp-0006FT-23 for submit@debbugs.gnu.org; Mon, 02 Dec 2013 12:56:53 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:60390 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VnXjn-0006FH-8s for 15929@debbugs.gnu.org; Mon, 02 Dec 2013 12:56:51 -0500 Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VnXjm-0005bd-Qx; Mon, 02 Dec 2013 12:56:50 -0500 From: Dan Nicolaescu References: Date: Mon, 02 Dec 2013 12:56:50 -0500 In-Reply-To: (Stefan Monnier's message of "Wed, 20 Nov 2013 14:19:06 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Stefan Monnier writes: >> Typing " inserts quotes around foo, but the point is moved to the end of >> the line. After inserting a pair, the point is moved after the last >> item in the pair, regardless if the point was at the begging of the >> region. >> It would be better if the point stayed in the same location. > > Agreed. Fix welcome. Unfortunately I won't have any time to look at this for quite a while... :-( From unknown Sun Jun 15 14:44:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15929: point position with electric-pair-mode Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Sep 2016 04:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15929 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dan Nicolaescu Cc: 15929@debbugs.gnu.org Received: via spool by 15929-submit@debbugs.gnu.org id=B15929.147330773818323 (code B ref 15929); Thu, 08 Sep 2016 04:09:02 +0000 Received: (at 15929) by debbugs.gnu.org; 8 Sep 2016 04:08:58 +0000 Received: from localhost ([127.0.0.1]:53050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhqe2-0004lO-HN for submit@debbugs.gnu.org; Thu, 08 Sep 2016 00:08:58 -0400 Received: from mail-it0-f46.google.com ([209.85.214.46]:37430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhqe0-0004l6-8q; Thu, 08 Sep 2016 00:08:56 -0400 Received: by mail-it0-f46.google.com with SMTP id e124so58997088ith.0; Wed, 07 Sep 2016 21:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=5tXB6Zc00ZTp7DLru1Wucqh2wzaW9FE1y5/idqI+BNw=; b=PZxmpgyAAXjrZuRH7xM7r8eGmPg8bi+D6iYDnWm0ksYGM60nJ5nvX8OurN0MYVDait +YKQr6gOWyy1hCuVwPKIyTIyxiBlNw0WhbWlTHN75we+BjpMOE7ZxxN+Ce6zsvneK75y Iadv4+fLHgpFK1JTYzBnUvhe7MUNuLuw3gHY2ySdtOebbGZKZqkQ+VrgimRE7ShFLV3b 2SVBuGf6sTNW8D+tERRZZ8pwdiucA5ikQOydL5e3Ksig6zhF2de5WjuT9nvlSJ1eHUxG MfXxa+YHCdmEiwsPwFJkGVrd+VOfz4SB5y5/7RQWlyDGUbXndX4gCkbu/V+YvWw3RQzx hRcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=5tXB6Zc00ZTp7DLru1Wucqh2wzaW9FE1y5/idqI+BNw=; b=BZ/M5bCzs3dizDZyPUV61D6OQbGjvE77trNPvVEtO+0h+Rmzt8cI36JTEhzG79Zmy8 sxaVCA5WNSXH+ylo6voyYM3gohwO4VyYMiQ59KIJ/owvgqwtYu+HMjc+Arcc1DBbHFZP xolL/VOYUMQhJbUl4kroc73cwGDwaBR4Cqsm5/Up0df/WgRxKg/zEibR14ssnWIg8Xrk ldvWngSU4YNRWcNOaPj4DD8/ceDhGyTzLPyDYtBJkW1PSz5XFZnweOOlE2Tv4vaklbON AR5JW8pGacPS8/pVCgm8fMZuPULjTbMxPPVMGoRU7f6/n0AkKlLm9mM/a1SXBU/p0r5h cZxg== X-Gm-Message-State: AE9vXwOQ8LCYLlrQ0tcRJdhrjxLmxR2ECxR99PRMTnxdzYlpqYDdUo76eBCgWSP/TSIp7g== X-Received: by 10.36.184.65 with SMTP id m62mr12545372ite.55.1473307730444; Wed, 07 Sep 2016 21:08:50 -0700 (PDT) Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id p7sm5493843itg.14.2016.09.07.21.08.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Sep 2016 21:08:50 -0700 (PDT) From: Alex References: Date: Wed, 07 Sep 2016 22:08:43 -0600 In-Reply-To: (Dan Nicolaescu's message of "Tue, 19 Nov 2013 14:51:16 -0500") Message-ID: <877fan9gok.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 15929 24.4 quit Dan Nicolaescu writes: > emacs -Q > M-x electric-pair-mode RET > > f o o C-SPC C-a > > The point should now be at the beginning of a line that contains the > string: foo > > Typing " inserts quotes around foo, but the point is moved to the end of > the line. After inserting a pair, the point is moved after the last > item in the pair, regardless if the point was at the begging of the > region. > > It would be better if the point stayed in the same location. Or at > least offer a configuration variable to allow that behavior. > > Thanks > > [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (agrambot[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.46 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.46 listed in wl.mailspike.net] 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [209.85.214.46 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 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 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 15929 24.4 quit Dan Nicolaescu writes: > emacs -Q > M-x electric-pair-mode RET > > f o o C-SPC C-a > > The point should now be at the beginning of a line that contains the > string: foo > > Typing " inserts quotes around foo, but the point is moved to the end of > the line. After inserting a pair, the point is moved after the last > item in the pair, regardless if the point was at the begging of the > region. > > It would be better if the point stayed in the same location. Or at > least offer a configuration variable to allow that behavior. > > Thanks > > [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.46 listed in list.dnswl.org] 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [209.85.214.46 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.46 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (agrambot[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid close 15929 24.4 quit Dan Nicolaescu writes: > emacs -Q > M-x electric-pair-mode RET > > f o o C-SPC C-a > > The point should now be at the beginning of a line that contains the > string: foo > > Typing " inserts quotes around foo, but the point is moved to the end of > the line. After inserting a pair, the point is moved after the last > item in the pair, regardless if the point was at the begging of the > region. > > It would be better if the point stayed in the same location. Or at > least offer a configuration variable to allow that behavior. > > Thanks > > This appears to have been fixed in 24.4.