GNU bug report logs - #1241
patch: thingatpt.el syntactic sugar (cont.)

Previous Next

Package: emacs;

Reported by: "Aaron S. Hawley" <aaronh <at> garden.org>

Date: Fri, 24 Oct 2008 18:05:06 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1241 in the body.
You can then email your comments to 1241 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1241; 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):

From: "Aaron S. Hawley" <aaronh <at> garden.org>
To: bug-gnu-emacs <at> gnu.org
Subject: patch: thingatpt.el syntactic sugar (cont.)
Date: Fri, 24 Oct 2008 13:54:49 -0400
[Message part 1 (text/plain, inline)]
I posted this patch last year, but I don't think anybody picked it up.

http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-10/msg00091.html

An updated version of the patch is attached and in-line below.
/a


Index: thingatpt.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/thingatpt.el,v
retrieving revision 1.47
diff -u -r1.47 thingatpt.el
--- thingatpt.el	22 Oct 2008 20:51:23 -0000	1.47
+++ thingatpt.el	24 Oct 2008 17:50:47 -0000
@@ -169,19 +169,19 @@
       (nth 3 (parse-partial-sexp (point) orig)))))

 (defun end-of-sexp ()
-  (let ((char-syntax (char-syntax (char-after (point)))))
+  (let ((char-syntax (char-syntax (char-after))))
     (if (or (eq char-syntax ?\))
-	    (and (eq char-syntax ?\") (in-string-p)))
-	(forward-char 1)
+           (and (eq char-syntax ?\") (in-string-p)))
+       (forward-char 1)
       (forward-sexp 1))))

 (put 'sexp 'end-op 'end-of-sexp)

 (defun beginning-of-sexp ()
-  (let ((char-syntax (char-syntax (char-before (point)))))
+  (let ((char-syntax (char-syntax (char-before))))
     (if (or (eq char-syntax ?\()
-	    (and (eq char-syntax ?\") (in-string-p)))
-	(forward-char -1)
+           (and (eq char-syntax ?\") (in-string-p)))
+       (forward-char -1)
       (forward-sexp -1))))

 (put 'sexp 'beginning-op 'beginning-of-sexp)
@@ -405,10 +405,10 @@
   (interactive "p")
   (while (< arg 0)
     (skip-syntax-backward
-     (char-to-string (char-syntax (char-after (1- (point))))))
+     (char-to-string (char-syntax (char-before))))
     (setq arg (1+ arg)))
   (while (> arg 0)
-    (skip-syntax-forward (char-to-string (char-syntax (char-after 
(point)))))
+    (skip-syntax-forward (char-to-string (char-syntax (char-after))))
     (setq arg (1- arg))))

 ;;  Aliases
[thingatpt.el.diff (text/plain, inline)]
Index: thingatpt.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/thingatpt.el,v
retrieving revision 1.47
diff -u -r1.47 thingatpt.el
--- thingatpt.el	22 Oct 2008 20:51:23 -0000	1.47
+++ thingatpt.el	24 Oct 2008 17:50:47 -0000
@@ -169,19 +169,19 @@
       (nth 3 (parse-partial-sexp (point) orig)))))
 
 (defun end-of-sexp ()
-  (let ((char-syntax (char-syntax (char-after (point)))))
+  (let ((char-syntax (char-syntax (char-after))))
     (if (or (eq char-syntax ?\))
-	    (and (eq char-syntax ?\") (in-string-p)))
-	(forward-char 1)
+           (and (eq char-syntax ?\") (in-string-p)))
+       (forward-char 1)
       (forward-sexp 1))))
 
 (put 'sexp 'end-op 'end-of-sexp)
 
 (defun beginning-of-sexp ()
-  (let ((char-syntax (char-syntax (char-before (point)))))
+  (let ((char-syntax (char-syntax (char-before))))
     (if (or (eq char-syntax ?\()
-	    (and (eq char-syntax ?\") (in-string-p)))
-	(forward-char -1)
+           (and (eq char-syntax ?\") (in-string-p)))
+       (forward-char -1)
       (forward-sexp -1))))
 
 (put 'sexp 'beginning-op 'beginning-of-sexp)
@@ -405,10 +405,10 @@
   (interactive "p")
   (while (< arg 0)
     (skip-syntax-backward
-     (char-to-string (char-syntax (char-after (1- (point))))))
+     (char-to-string (char-syntax (char-before))))
     (setq arg (1+ arg)))
   (while (> arg 0)
-    (skip-syntax-forward (char-to-string (char-syntax (char-after (point)))))
+    (skip-syntax-forward (char-to-string (char-syntax (char-after))))
     (setq arg (1- arg))))
 
 ;;  Aliases

Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
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 #10 received at 1241-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Aaron S. Hawley" <aaronh <at> garden.org>
Cc: 1241-done <at> debbugs.gnu.org
Subject: Re: patch: thingatpt.el syntactic sugar (cont.)
Date: Fri, 24 Oct 2008 20:14:07 -0400
> I posted this patch last year, but I don't think anybody picked it up.

I applied it.  Thanks.




bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Sat, 22 Nov 2008 15:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 216 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.