diff options
author | Bartosz Duszel <bartosz.duszel@gmail.com> | 2017-04-28 11:25:26 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-04-28 11:25:26 +0300 |
commit | 6a151cf8d5202ddde5d190dad542dadc26b66b93 (patch) | |
tree | b5d97ffd1d8bced84ba407819db18e994a08893a /lisp/simple.el | |
parent | cee4128135d0d9fd6032a0134b649d5fc81370c0 (diff) | |
download | emacs-6a151cf8d5202ddde5d190dad542dadc26b66b93.tar.gz |
Don't pass the value of point to 'push-mark', as that's the default.
* lisp/textmodes/bib-mode.el (mark-bib):
* lisp/simple.el (mark-whole-buffer, yank):
* lisp/ses.el (ses--advice-yank, ses-mark-row, ses-mark-column):
* lisp/progmodes/xscheme.el (xscheme-yank):
* lisp/progmodes/verilog-mode.el (verilog-mark-defun):
* lisp/progmodes/perl-mode.el (perl-mark-function):
* lisp/progmodes/pascal.el (pascal-mark-defun):
* lisp/progmodes/meta-mode.el (meta-mark-defun):
* lisp/progmodes/icon.el (mark-icon-function):
* lisp/progmodes/cc-cmds.el (c-mark-function):
* lisp/obsolete/vip.el (ex-goto):
* lisp/obsolete/vi.el (vi-put-before):
* lisp/mouse.el (mouse-yank-primary):
* lisp/menu-bar.el (menu-bar-select-yank):
* lisp/mail/sendmail.el (mail-yank-original):
* lisp/hexl.el (hexl-beginning-of-buffer, hexl-end-of-buffer):
* lisp/emulation/viper-cmd.el (viper-mark-beginning-of-buffer)
(viper-mark-end-of-buffer):
* lisp/cedet/semantic/senator.el (senator-mark-defun):
* lisp/allout.el (allout-mark-topic): Remove unnecessary argument
`(point)' from calls to `push-mark'. (Bug#25565)
Diffstat (limited to 'lisp/simple.el')
-rw-r--r-- | lisp/simple.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index a58164a1121..edc822eb51e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1104,7 +1104,7 @@ it is usually a mistake for a Lisp function to use any subroutine that uses or sets the mark." (declare (interactive-only t)) (interactive) - (push-mark (point)) + (push-mark) (push-mark (point-max) nil t) ;; This is really `point-min' in most cases, but if we're in the ;; minibuffer, this is at the end of the prompt. @@ -4860,7 +4860,7 @@ See also the command `yank-pop' (\\[yank-pop])." ;; If we don't get all the way thru, make last-command indicate that ;; for the following command. (setq this-command t) - (push-mark (point)) + (push-mark) (insert-for-yank (current-kill (cond ((listp arg) 0) ((eq arg '-) -2) |