]> git.eshelyaron.com Git - emacs.git/commitdiff
T. V. Raman <raman at users.sf.net> (tiny change)
authorGlenn Morris <rgm@gnu.org>
Fri, 17 Aug 2007 07:31:52 +0000 (07:31 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 17 Aug 2007 07:31:52 +0000 (07:31 +0000)
(symbol-under-point, symbol-before-point)
(symbol-before-point-for-complete): Use buffer-substring-no-properties.

lisp/ChangeLog
lisp/completion.el

index 2f6ee763d1dbc9d0462b5360d69fbc5cbaf087f7..974b1a62f631d6e7d6d5a8ed11518f5f873c3468 100644 (file)
@@ -1,3 +1,9 @@
+2007-08-17  T. V. Raman  <raman@users.sf.net>  (tiny change)
+
+       * completion.el (symbol-under-point, symbol-before-point)
+       (symbol-before-point-for-complete): Use
+       buffer-substring-no-properties.
+
 2007-08-17  Glenn Morris  <rgm@gnu.org>
 
        * progmodes/compile.el (compilation-get-file-structure): Make use
index 99d559df96766a6e07140e19bd2ee1a2c4ab8972..b8bf5bd93b8d785098597a866984b3b97c4ac2bc 100644 (file)
@@ -568,7 +568,8 @@ But only if it is longer than `completion-min-length'."
                      (- cmpl-symbol-end cmpl-symbol-start))
                  (<= (- cmpl-symbol-end cmpl-symbol-start)
                      completion-max-length))
-            (buffer-substring cmpl-symbol-start cmpl-symbol-end))))))
+            (buffer-substring-no-properties
+             cmpl-symbol-start cmpl-symbol-end))))))
 
 ;; tests for symbol-under-point
 ;;  `^' indicates cursor pos. where value is returned
@@ -601,7 +602,8 @@ Returns nil if there isn't one longer than `completion-min-length'."
            ;; Return value if long enough.
            (if (>= cmpl-symbol-end
                    (+ cmpl-symbol-start completion-min-length))
-               (buffer-substring cmpl-symbol-start cmpl-symbol-end)))
+               (buffer-substring-no-properties
+                cmpl-symbol-start cmpl-symbol-end)))
           ((= cmpl-preceding-syntax ?w)
            ;; chars to ignore at end
            (let ((saved-point (point)))
@@ -621,7 +623,8 @@ Returns nil if there isn't one longer than `completion-min-length'."
                           (- cmpl-symbol-end cmpl-symbol-start))
                       (<= (- cmpl-symbol-end cmpl-symbol-start)
                           completion-max-length))
-                 (buffer-substring cmpl-symbol-start cmpl-symbol-end)))))))
+                 (buffer-substring-no-properties
+                  cmpl-symbol-start cmpl-symbol-end)))))))
 
 ;; tests for symbol-before-point
 ;;  `^' indicates cursor pos. where value is returned
@@ -670,7 +673,8 @@ Returns nil if there isn't one longer than `completion-min-length'."
                         (- cmpl-symbol-end cmpl-symbol-start))
                     (<= (- cmpl-symbol-end cmpl-symbol-start)
                         completion-max-length))
-               (buffer-substring cmpl-symbol-start cmpl-symbol-end))))))
+               (buffer-substring-no-properties
+                cmpl-symbol-start cmpl-symbol-end))))))
 
 ;; tests for symbol-before-point-for-complete
 ;;  `^' indicates cursor pos. where value is returned