From aaronh@garden.org Fri Oct 24 10:41:14 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.0 required=4.0 tests=BAYES_00,GMAIL,MIXEDBDN, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 24 Oct 2008 17:41:15 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9OHfAvs004695 for ; Fri, 24 Oct 2008 10:41:12 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtQes-0005fS-SM for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2008 13:41:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtQep-0005fF-E2 for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2008 13:41:09 -0400 Received: from [199.232.76.173] (port=53404 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtQep-0005fC-7w for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2008 13:41:07 -0400 Received: from host13.natgard1.cust.sover.net ([207.136.219.173]:52137 helo=marigold.garden.org) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KtQeo-000383-Di for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2008 13:41:06 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by marigold.garden.org (Postfix) with ESMTP id 363C5681A9 for ; Fri, 24 Oct 2008 13:41:01 -0400 (EDT) X-Virus-Scanned: amavisd-new at garden.org Received: from marigold.garden.org ([127.0.0.1]) by localhost (marigold.garden.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k1K6wUpOGp3j for ; Fri, 24 Oct 2008 13:40:55 -0400 (EDT) Received: from localhost.localdomain (unknown [192.168.219.109]) by marigold.garden.org (Postfix) with ESMTP id 99522680EE for ; Fri, 24 Oct 2008 13:40:55 -0400 (EDT) Message-ID: <4902089E.9030302@garden.org> Date: Fri, 24 Oct 2008 13:40:46 -0400 From: "Aaron S. Hawley" User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: PATCH: Fix corner case of texinfo-insert-quote Content-Type: multipart/mixed; boundary="------------080408080708000509060700" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) This is a multi-part message in MIME format. --------------080408080708000509060700 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Patch is attached and in-line. It would be nice to have this, in case one tries to do quotation mark manipulation with with-temp-buffer. Thanks for Emacs, /a Index: ChangeLog =================================================================== RCS file: /sources/emacs/emacs/lisp/ChangeLog,v retrieving revision 1.14668 diff -u -r1.14668 ChangeLog --- ChangeLog 24 Oct 2008 09:39:28 -0000 1.14668 +++ ChangeLog 24 Oct 2008 17:29:37 -0000 @@ -1,3 +1,8 @@ +2008-10-24 Aaron S. Hawley + + * textmodes/texinfo.el (texinfo-insert-quote): Handle corner + case where point is at the beginning of the buffer. + 2008-10-24 Juanma Barranquero * subr.el (locate-user-emacs-file): New function. Index: textmodes/texinfo.el =================================================================== RCS file: /sources/emacs/emacs/lisp/textmodes/texinfo.el,v retrieving revision 1.122 diff -u -r1.122 texinfo.el --- textmodes/texinfo.el 6 May 2008 04:33:13 -0000 1.122 +++ textmodes/texinfo.el 24 Oct 2008 17:29:37 -0000 @@ -682,7 +682,9 @@ (if (or arg (= (preceding-char) ?\\) (save-excursion - (backward-char (length texinfo-open-quote)) + (if (> (point) (length texinfo-open-quote)) + (backward-char (length texinfo-open-quote)) + (goto-char (point-min))) (when (or (looking-at texinfo-open-quote) (looking-at texinfo-close-quote)) (delete-char (length texinfo-open-quote)) @@ -694,7 +696,8 @@ (setq in-env t))))) (self-insert-command (prefix-numeric-value arg)) (insert - (if (memq (char-syntax (preceding-char)) '(?\( ?> ?\s)) + (if (or (bobp) ;; (eq (preceding-char) 0) + (memq (char-syntax (preceding-char)) '(?\( ?> ?\s))) texinfo-open-quote texinfo-close-quote))))) --------------080408080708000509060700 Content-Type: text/plain; name="texinfo.el-bobp.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="texinfo.el-bobp.diff" Index: ChangeLog =================================================================== RCS file: /sources/emacs/emacs/lisp/ChangeLog,v retrieving revision 1.14668 diff -u -r1.14668 ChangeLog --- ChangeLog 24 Oct 2008 09:39:28 -0000 1.14668 +++ ChangeLog 24 Oct 2008 17:29:37 -0000 @@ -1,3 +1,8 @@ +2008-10-24 Aaron S. Hawley + + * textmodes/texinfo.el (texinfo-insert-quote): Handle corner + case where point is at the beginning of the buffer. + 2008-10-24 Juanma Barranquero * subr.el (locate-user-emacs-file): New function. Index: textmodes/texinfo.el =================================================================== RCS file: /sources/emacs/emacs/lisp/textmodes/texinfo.el,v retrieving revision 1.122 diff -u -r1.122 texinfo.el --- textmodes/texinfo.el 6 May 2008 04:33:13 -0000 1.122 +++ textmodes/texinfo.el 24 Oct 2008 17:29:37 -0000 @@ -682,7 +682,9 @@ (if (or arg (= (preceding-char) ?\\) (save-excursion - (backward-char (length texinfo-open-quote)) + (if (> (point) (length texinfo-open-quote)) + (backward-char (length texinfo-open-quote)) + (goto-char (point-min))) (when (or (looking-at texinfo-open-quote) (looking-at texinfo-close-quote)) (delete-char (length texinfo-open-quote)) @@ -694,7 +696,8 @@ (setq in-env t))))) (self-insert-command (prefix-numeric-value arg)) (insert - (if (memq (char-syntax (preceding-char)) '(?\( ?> ?\s)) + (if (or (bobp) ;; (eq (preceding-char) 0) + (memq (char-syntax (preceding-char)) '(?\( ?> ?\s))) texinfo-open-quote texinfo-close-quote))))) --------------080408080708000509060700-- From rgm@gnu.org Fri Oct 24 10:55:34 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.2 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, MURPHY_DRUGS_REL8,NOSUBJECT,RCVD_IN_DNSWL_MED,UNRESOLVED_TEMPLATE, X_DEBBUGS_NO_ACK autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 24 Oct 2008 17:55:34 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9OHtVs8008255 for ; Fri, 24 Oct 2008 10:55:32 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KtQq6-00007t-Ut; Fri, 24 Oct 2008 13:52:46 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18690.2926.878911.816898@fencepost.gnu.org> Date: Fri, 24 Oct 2008 13:52:46 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: black X-Ran: -1hDN3#MKVLq9`6a[BBJWV&1}^ei,B.ev.n+5"dky.z_BI'978}L%N_Ld:Rf|E?#&[]7TK X-Debbugs-No-Ack: yes close 989 tags 1239 patch From rgm@gnu.org Mon Dec 1 19:38:03 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1239-done) by emacsbugs.donarmstrong.com; 2 Dec 2008 03:38:04 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB23c1fp024803 for <1239-done@emacsbugs.donarmstrong.com>; Mon, 1 Dec 2008 19:38:02 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1L7M4s-00009m-Tm; Mon, 01 Dec 2008 22:37:34 -0500 From: Glenn Morris To: 1239-done@debbugs.gnu.org Subject: Re: bug#1239: PATCH: Fix corner case of texinfo-insert-quote References: <4902089E.9030302@garden.org> X-Spook: MD2 illuminati Soviet IRA MD4 $400 million in gold X-Ran: 0F~AL,NAiN3=S{$VOu~eJ#/'IbwKpST((S7S-Yx55~uYq[8KaG:YOarjl65J}MiVwEwX3p X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 01 Dec 2008 22:37:34 -0500 In-Reply-To: <4902089E.9030302@garden.org> (Aaron S. Hawley's message of "Fri, 24 Oct 2008 13:40:46 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii OK; installed. 2008-12-02 Aaron S. Hawley * textmodes/texinfo.el (texinfo-insert-quote): Handle corner case where point is at the beginning of the buffer. (Bug#1239) From unknown Mon Jun 23 14:57:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Tue, 30 Dec 2008 15:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator