emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/replace.el


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/replace.el
Date: Sat, 01 Dec 2001 23:45:54 -0500

Index: emacs/lisp/replace.el
diff -c emacs/lisp/replace.el:1.123 emacs/lisp/replace.el:1.124
*** emacs/lisp/replace.el:1.123 Tue Nov 20 18:25:34 2001
--- emacs/lisp/replace.el       Sat Dec  1 23:45:54 2001
***************
*** 69,75 ****
        (setq from (read-from-minibuffer (format "%s: " string)
                                       nil nil nil
                                       query-replace-from-history-variable
!                                      nil t)))
      (setq to (read-from-minibuffer (format "%s %s with: " string from)
                                   nil nil nil
                                   query-replace-to-history-variable from t))
--- 69,85 ----
        (setq from (read-from-minibuffer (format "%s: " string)
                                       nil nil nil
                                       query-replace-from-history-variable
!                                      nil t))
!       ;; Warn if user types \n or \t, but don't reject the input.
!       (if (string-match "\\\\[nt]" from)
!         (let ((match (match-string 0 from)))
!           (cond
!            ((string= match "\\n")
!             (message "Note: `\\n' here doesn't match a newline; to do that, 
type C-q C-j instead"))
!            ((string= match "\\t")
!             (message "Note: `\\t' here doesn't match a tab; to do that, just 
type TAB")))
!           (sit-for 2))))
! 
      (setq to (read-from-minibuffer (format "%s %s with: " string from)
                                   nil nil nil
                                   query-replace-to-history-variable from t))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]