[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/simple.el
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/simple.el |
Date: |
Tue, 04 Feb 2003 07:04:40 -0500 |
Index: emacs/lisp/simple.el
diff -c emacs/lisp/simple.el:1.591 emacs/lisp/simple.el:1.592
*** emacs/lisp/simple.el:1.591 Tue Feb 4 05:41:10 2003
--- emacs/lisp/simple.el Tue Feb 4 07:04:38 2003
***************
*** 955,961 ****
(let ((modified (buffer-modified-p))
(recent-save (recent-auto-save-p)))
(or (eq (selected-window) (minibuffer-window))
! (message (if (and transient-mark-mode mark-active)
"Undo in region!"
"Undo!")))
(unless (eq last-command 'undo)
--- 955,961 ----
(let ((modified (buffer-modified-p))
(recent-save (recent-auto-save-p)))
(or (eq (selected-window) (minibuffer-window))
! (message (if (and transient-mark-mode mark-active)
"Undo in region!"
"Undo!")))
(unless (eq last-command 'undo)
***************
*** 1004,1011 ****
Call `undo-start' to get ready to undo recent changes,
then call `undo-more' one or more times to undo them."
(or pending-undo-list
! (error (format "No further undo information%s"
! (if (and transient-mark-mode mark-active)
" for region" ""))))
(let ((undo-in-progress t))
(setq pending-undo-list (primitive-undo count pending-undo-list))))
--- 1004,1011 ----
Call `undo-start' to get ready to undo recent changes,
then call `undo-more' one or more times to undo them."
(or pending-undo-list
! (error (format "No further undo information%s"
! (if (and transient-mark-mode mark-active)
" for region" ""))))
(let ((undo-in-progress t))
(setq pending-undo-list (primitive-undo count pending-undo-list))))
***************
*** 1528,1534 ****
nil shell-command-switch command)))
;; Report the output.
(with-current-buffer buffer
! (setq mode-line-process
(cond ((null exit-status)
" - Error")
((stringp exit-status)
--- 1528,1534 ----
nil shell-command-switch command)))
;; Report the output.
(with-current-buffer buffer
! (setq mode-line-process
(cond ((null exit-status)
" - Error")
((stringp exit-status)
***************
*** 1765,1771 ****
the front of the kill ring, rather than being added to the list.
Optional third arguments YANK-HANDLER controls how the STRING is later
! inserted into a buffer; see `insert-for-yank' for details.
When a yank handler is specified, STRING must be non-empty (the yank
handler is stored as a `yank-handler'text property on STRING).
--- 1765,1771 ----
the front of the kill ring, rather than being added to the list.
Optional third arguments YANK-HANDLER controls how the STRING is later
! inserted into a buffer; see `insert-for-yank' for details.
When a yank handler is specified, STRING must be non-empty (the yank
handler is stored as a `yank-handler'text property on STRING).
***************
*** 1774,1784 ****
may access and use elements from the kill-ring directly, the STRING
argument should still be a \"useful\" string for such uses."
(if (> (length string) 0)
! (if yank-handler
(put-text-property 0 1 'yank-handler yank-handler string)
(remove-list-of-text-properties 0 1 '(yank-handler) string))
(if yank-handler
! (signal 'args-out-of-range
(list string "yank-handler specified for empty string"))))
(if (fboundp 'menu-bar-update-yank-menu)
(menu-bar-update-yank-menu string (and replace (car kill-ring))))
--- 1774,1784 ----
may access and use elements from the kill-ring directly, the STRING
argument should still be a \"useful\" string for such uses."
(if (> (length string) 0)
! (if yank-handler
(put-text-property 0 1 'yank-handler yank-handler string)
(remove-list-of-text-properties 0 1 '(yank-handler) string))
(if yank-handler
! (signal 'args-out-of-range
(list string "yank-handler specified for empty string"))))
(if (fboundp 'menu-bar-update-yank-menu)
(menu-bar-update-yank-menu string (and replace (car kill-ring))))
***************
*** 1798,1804 ****
property to be set on the combined kill ring string. If the specified
yank-handler arg differs from the yank-handler property of the latest
kill string, STRING is added as a new kill ring element instead of
! being appending to the last kill.
If `interprogram-cut-function' is set, pass the resulting kill to it."
(let* ((cur (car kill-ring)))
(kill-new (if before-p (concat string cur) (concat cur string))
--- 1798,1804 ----
property to be set on the combined kill ring string. If the specified
yank-handler arg differs from the yank-handler property of the latest
kill string, STRING is added as a new kill ring element instead of
! being appending to the last kill.
If `interprogram-cut-function' is set, pass the resulting kill to it."
(let* ((cur (car kill-ring)))
(kill-new (if before-p (concat string cur) (concat cur string))
***************
*** 1868,1874 ****
to make one entry in the kill ring.
In Lisp code, optional third arg YANK-HANDLER specifies the yank-handler
! text property to be set on the killed text. See `insert-for-yank'."
(interactive "r")
(condition-case nil
(let ((string (delete-and-extract-region beg end)))
--- 1868,1874 ----
to make one entry in the kill ring.
In Lisp code, optional third arg YANK-HANDLER specifies the yank-handler
! text property to be set on the killed text. See `insert-for-yank'."
(interactive "r")
(condition-case nil
(let ((string (delete-and-extract-region beg end)))
***************
*** 2537,2543 ****
With prefix arg, `transient-mark-mode' is enabled temporarily."
(interactive "P")
(if arg
! (if mark-active
(if (null transient-mark-mode)
(setq transient-mark-mode 'lambda))
(setq arg nil)))
--- 2537,2543 ----
With prefix arg, `transient-mark-mode' is enabled temporarily."
(interactive "P")
(if arg
! (if mark-active
(if (null transient-mark-mode)
(setq transient-mark-mode 'lambda))
(setq arg nil)))
***************
*** 3152,3158 ****
(not (and fill-indent-according-to-mode
(string-match "\\`[ \t]*\\'" prefix)))
(setq fill-prefix prefix))))
!
(while (and (not give-up) (> (current-column) fc))
;; Determine where to split the line.
(let* (after-prefix
--- 3152,3158 ----
(not (and fill-indent-according-to-mode
(string-match "\\`[ \t]*\\'" prefix)))
(setq fill-prefix prefix))))
!
(while (and (not give-up) (> (current-column) fc))
;; Determine where to split the line.
(let* (after-prefix
***************
*** 3740,3746 ****
(if make-local
(make-local-variable var))
!
(set var val)
;; Force a thorough redisplay for the case that the variable
--- 3740,3746 ----
(if make-local
(make-local-variable var))
!
(set var val)
;; Force a thorough redisplay for the case that the variable
***************
*** 3908,3914 ****
(not (equal buffer
(window-buffer (active-minibuffer-window))))))
(error "Minibuffer is not active for completion")
! (unless (run-hook-with-args-until-success
'choose-completion-string-functions
choice buffer mini-p base-size)
;; Insert the completion into the buffer where it was requested.
--- 3908,3914 ----
(not (equal buffer
(window-buffer (active-minibuffer-window))))))
(error "Minibuffer is not active for completion")
! (unless (run-hook-with-args-until-success
'choose-completion-string-functions
choice buffer mini-p base-size)
;; Insert the completion into the buffer where it was requested.
***************
*** 4405,4414 ****
; (message "You cannot modify the prompt")))
;
;
! ;(setq minibuffer-prompt-properties
; (list 'modification-hooks '(minibuffer-prompt-modification)
; 'insert-in-front-hooks '(minibuffer-prompt-insertion)))
! ;
(provide 'simple)
;;; simple.el ends here
--- 4405,4414 ----
; (message "You cannot modify the prompt")))
;
;
! ;(setq minibuffer-prompt-properties
; (list 'modification-hooks '(minibuffer-prompt-modification)
; 'insert-in-front-hooks '(minibuffer-prompt-insertion)))
! ;
(provide 'simple)
;;; simple.el ends here