GNU bug report logs -
#1239
PATCH: Fix corner case of texinfo-insert-quote
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1239 in the body.
You can then email your comments to 1239 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1239
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
"Aaron S. Hawley" <aaronh <at> garden.org>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <aaronh <at> garden.org>
+
+ * textmodes/texinfo.el (texinfo-insert-quote): Handle corner
+ case where point is at the beginning of the buffer.
+
2008-10-24 Juanma Barranquero <lekktu <at> gmail.com>
* 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)))))
[texinfo.el-bobp.diff (text/plain, inline)]
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 <aaronh <at> garden.org>
+
+ * textmodes/texinfo.el (texinfo-insert-quote): Handle corner
+ case where point is at the beginning of the buffer.
+
2008-10-24 Juanma Barranquero <lekktu <at> gmail.com>
* 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)))))
Tags added: patch
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Fri, 24 Oct 2008 18:05:08 GMT)
Full text and
rfc822 format available.
Reply sent to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
Full text and
rfc822 format available.
Notification sent to
"Aaron S. Hawley" <aaronh <at> garden.org>
:
bug acknowledged by developer.
Full text and
rfc822 format available.
Message #12 received at 1239-done <at> emacsbugs.donarmstrong.com (full text, mbox):
OK; installed.
2008-12-02 Aaron S. Hawley <aaronh <at> garden.org>
* textmodes/texinfo.el (texinfo-insert-quote): Handle
corner case where point is at the beginning of the buffer. (Bug#1239)
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Tue, 30 Dec 2008 15:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 179 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.