aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/comint.el
diff options
context:
space:
mode:
authorGlenn Morris2011-01-22 11:36:45 -0800
committerGlenn Morris2011-01-22 11:36:45 -0800
commit7c82f3e23e37cc848a38b1f8be7149fd672a6393 (patch)
treee721d1d5361deeb04278045331d74e9c7f8b00f0 /lisp/comint.el
parent80094035aff85d827e1ef65627974b34ad9fa8df (diff)
parentbd2a4b24c4a591240862704737b5bc696ff67cbf (diff)
downloademacs-7c82f3e23e37cc848a38b1f8be7149fd672a6393.tar.gz
emacs-7c82f3e23e37cc848a38b1f8be7149fd672a6393.zip
Merge from emacs-23
Diffstat (limited to 'lisp/comint.el')
-rw-r--r--lisp/comint.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index da722002c20..1912cdcfc44 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1294,7 +1294,9 @@ than the logical beginning of line."
1294 (message "Relative reference exceeds input history size")))) 1294 (message "Relative reference exceeds input history size"))))
1295 ((or (looking-at "!!?:?\\([0-9^$*-]+\\)") (looking-at "!!")) 1295 ((or (looking-at "!!?:?\\([0-9^$*-]+\\)") (looking-at "!!"))
1296 ;; Just a number of args from the previous input line. 1296 ;; Just a number of args from the previous input line.
1297 (replace-match (comint-previous-input-string 0) t t) 1297 (replace-match (comint-args (comint-previous-input-string 0)
1298 (match-beginning 1) (match-end 1))
1299 t t)
1298 (message "History item: previous")) 1300 (message "History item: previous"))
1299 ((looking-at 1301 ((looking-at
1300 "!\\??\\({\\(.+\\)}\\|\\(\\sw+\\)\\)\\(:?[0-9^$*-]+\\)?") 1302 "!\\??\\({\\(.+\\)}\\|\\(\\sw+\\)\\)\\(:?[0-9^$*-]+\\)?")