]> git.eshelyaron.com Git - emacs.git/commitdiff
(current-word): Don't include punctuation char when
authorJohn Paul Wallington <jpw@pobox.com>
Fri, 18 Jul 2003 22:46:08 +0000 (22:46 +0000)
committerJohn Paul Wallington <jpw@pobox.com>
Fri, 18 Jul 2003 22:46:08 +0000 (22:46 +0000)
`really-word' arg is non-nil.

lisp/ChangeLog
lisp/simple.el

index 1b84eafd33d2688cdc89231ce67a7e1816fe0cbf..b445cd733ea94695f662979a9f86d60a89072bf9 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-18  John Paul Wallington  <jpw@gnu.org>
+
+       * simple.el (current-word): Don't include punctuation char when
+       `really-word' arg is non-nil.
+
 2003-07-17  Martin Stjernholm  <bug-cc-mode@gnu.org>
 
        * progmodes/awk-mode.el: Obsoleted by the AWK support in CC Mode -
index 5d9659cd285d1d6696340eb67ed4172f81a34b3d..8756d3e771a960ddcf6581c5de9994eab85ecf14 100644 (file)
@@ -3159,7 +3159,7 @@ The function, belying its name, normally finds a symbol.
 If optional arg REALLY-WORD is non-nil, it finds just a word."
   (save-excursion
     (let* ((oldpoint (point)) (start (point)) (end (point))
-          (syntaxes (if really-word "w_" "w"))
+          (syntaxes (if really-word "w" "w_"))
           (not-syntaxes (concat "^" syntaxes)))
       (skip-syntax-backward syntaxes) (setq start (point))
       (goto-char oldpoint)