Mercurial > emacs
comparison lisp/simple.el @ 110091:66a2fac996a4
merge emacs-23
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 27 Aug 2010 23:05:43 +0900 |
parents | 548603211765 |
children | 051595eb9b58 ad23e0fe40f4 |
comparison
equal
deleted
inserted
replaced
107913:4a06b9752df5 | 110091:66a2fac996a4 |
---|---|
3627 (defun use-region-p () | 3627 (defun use-region-p () |
3628 "Return t if the region is active and it is appropriate to act on it. | 3628 "Return t if the region is active and it is appropriate to act on it. |
3629 This is used by commands that act specially on the region under | 3629 This is used by commands that act specially on the region under |
3630 Transient Mark mode. | 3630 Transient Mark mode. |
3631 | 3631 |
3632 The return value is t provided Transient Mark mode is enabled and | 3632 The return value is t if Transient Mark mode is enabled and the |
3633 the mark is active; and, when `use-empty-active-region' is | 3633 mark is active; furthermore, if `use-empty-active-region' is nil, |
3634 non-nil, provided the region is empty. Otherwise, the return | 3634 the region must not be empty. Otherwise, the return value is nil. |
3635 value is nil. | |
3636 | 3635 |
3637 For some commands, it may be appropriate to ignore the value of | 3636 For some commands, it may be appropriate to ignore the value of |
3638 `use-empty-active-region'; in that case, use `region-active-p'." | 3637 `use-empty-active-region'; in that case, use `region-active-p'." |
3639 (and (region-active-p) | 3638 (and (region-active-p) |
3640 (or use-empty-active-region (> (region-end) (region-beginning))))) | 3639 (or use-empty-active-region (> (region-end) (region-beginning))))) |
3686 (let ((mark (marker-position (mark-marker)))) | 3685 (let ((mark (marker-position (mark-marker)))) |
3687 (if (or arg (null mark) (/= mark (point))) | 3686 (if (or arg (null mark) (/= mark (point))) |
3688 (push-mark nil nomsg t) | 3687 (push-mark nil nomsg t) |
3689 (setq mark-active t) | 3688 (setq mark-active t) |
3690 (run-hooks 'activate-mark-hook) | 3689 (run-hooks 'activate-mark-hook) |
3690 (and select-active-regions (display-selections-p) | |
3691 (x-set-selection 'PRIMARY (current-buffer))) | |
3691 (unless nomsg | 3692 (unless nomsg |
3692 (message "Mark activated"))))) | 3693 (message "Mark activated"))))) |
3693 | 3694 |
3694 (defcustom set-mark-command-repeat-pop nil | 3695 (defcustom set-mark-command-repeat-pop nil |
3695 "Non-nil means repeating \\[set-mark-command] after popping mark pops it again. | 3696 "Non-nil means repeating \\[set-mark-command] after popping mark pops it again. |
5667 (display-warning 'mail | 5668 (display-warning 'mail |
5668 (format "\ | 5669 (format "\ |
5669 The default mail mode is now Message mode. | 5670 The default mail mode is now Message mode. |
5670 You have the following Mail mode variable%s customized: | 5671 You have the following Mail mode variable%s customized: |
5671 \n %s\n\nTo use Mail mode, set `mail-user-agent' to sendmail-user-agent. | 5672 \n %s\n\nTo use Mail mode, set `mail-user-agent' to sendmail-user-agent. |
5672 To disable this warning, set `compose-mail-check-user-agent' to nil." | 5673 To disable this warning, set `compose-mail-user-agent-warnings' to nil." |
5673 (if (> (length warn-vars) 1) "s" "") | 5674 (if (> (length warn-vars) 1) "s" "") |
5674 (mapconcat 'symbol-name | 5675 (mapconcat 'symbol-name |
5675 warn-vars " ")))))) | 5676 warn-vars " ")))))) |
5676 | 5677 |
5677 (let ((function (get mail-user-agent 'composefunc))) | 5678 (let ((function (get mail-user-agent 'composefunc))) |