]> git.eshelyaron.com Git - emacs.git/commitdiff
(dabbrev-expand, dabbrev--abbrev-at-point)
authorRichard M. Stallman <rms@gnu.org>
Mon, 19 May 1997 01:01:25 +0000 (01:01 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 19 May 1997 01:01:25 +0000 (01:01 +0000)
(dabbrev--search): Use buffer-substring-no-properties.

lisp/dabbrev.el

index ed2d37eb662d04d7cb55c455ac3e7c29754a8cea..1d789a06b3ba4cc564236df23597d6e346ba8ffc 100644 (file)
@@ -493,9 +493,8 @@ See also `dabbrev-abbrev-char-regexp' and \\[dabbrev-completion]."
                ;; as our expansion this time.
                (re-search-forward
                 (concat "\\(\\(" dabbrev--abbrev-char-regexp "\\)+\\)"))
-               (setq expansion
-                     (buffer-substring dabbrev--last-expansion-location
-                                       (point)))
+               (setq expansion (buffer-substring-no-properties
+                                dabbrev--last-expansion-location (point)))
                (if dabbrev--last-case-pattern
                    (setq expansion (upcase expansion)))
 
@@ -624,8 +623,8 @@ See also `dabbrev-abbrev-char-regexp' and \\[dabbrev-completion]."
            (error "No possible abbreviation preceding point"))))
     ;; Now find the beginning of that one.
     (dabbrev--goto-start-of-abbrev)
-    (buffer-substring dabbrev--last-abbrev-location
-                     (point))))
+    (buffer-substring-no-properties
+     dabbrev--last-abbrev-location (point))))
        
 ;;; Initializes all global variables
 (defun dabbrev--reset-global-variables ()
@@ -884,8 +883,8 @@ See also `dabbrev-abbrev-char-regexp' and \\[dabbrev-completion]."
              nil
            ;; We have a truly valid match.  Find the end.
            (re-search-forward pattern2)
-           (setq found-string
-                 (buffer-substring (match-beginning 1) (match-end 1)))
+           (setq found-string (buffer-substring-no-properties
+                               (match-beginning 1) (match-end 1)))
            (and ignore-case (setq found-string (downcase found-string)))
            ;; Ignore this match if it's already in the table.
            (if (dabbrev-filter-elements
@@ -900,8 +899,8 @@ See also `dabbrev-abbrev-char-regexp' and \\[dabbrev-completion]."
        (if found-string
            ;; Put it into `dabbrev--last-table'
            ;; and return it (either downcased, or as is).
-           (let ((result
-                  (buffer-substring (match-beginning 0) (match-end 0))))
+           (let ((result (buffer-substring-no-properties
+                          (match-beginning 0) (match-end 0))))
              (setq dabbrev--last-table
                    (cons found-string dabbrev--last-table))
              (if (and ignore-case (eval dabbrev-case-replace))