summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorBartosz Duszel <bartosz.duszel@gmail.com>2017-04-28 11:25:26 +0300
committerEli Zaretskii <eliz@gnu.org>2017-04-28 11:25:26 +0300
commit6a151cf8d5202ddde5d190dad542dadc26b66b93 (patch)
treeb5d97ffd1d8bced84ba407819db18e994a08893a /lisp/progmodes
parentcee4128135d0d9fd6032a0134b649d5fc81370c0 (diff)
downloademacs-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/progmodes')
-rw-r--r--lisp/progmodes/cc-cmds.el2
-rw-r--r--lisp/progmodes/icon.el4
-rw-r--r--lisp/progmodes/meta-mode.el2
-rw-r--r--lisp/progmodes/pascal.el4
-rw-r--r--lisp/progmodes/perl-mode.el4
-rw-r--r--lisp/progmodes/verilog-mode.el4
-rw-r--r--lisp/progmodes/xscheme.el2
7 files changed, 11 insertions, 11 deletions
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el
index 561e6767e12..a5ddcb4b92d 100644
--- a/lisp/progmodes/cc-cmds.el
+++ b/lisp/progmodes/cc-cmds.el
@@ -2041,7 +2041,7 @@ function does not require the declaration to contain a brace block."
(push-mark-p (and (eq this-command 'c-mark-function)
(not extend-region-p)
(not (c-region-is-active-p)))))
- (if push-mark-p (push-mark (point)))
+ (if push-mark-p (push-mark))
(if extend-region-p
(progn
(exchange-point-and-mark)
diff --git a/lisp/progmodes/icon.el b/lisp/progmodes/icon.el
index 0c699a00e88..92a89fef70b 100644
--- a/lisp/progmodes/icon.el
+++ b/lisp/progmodes/icon.el
@@ -459,9 +459,9 @@ Returns nil if line starts inside a string, t if in a comment."
(defun mark-icon-function ()
"Put mark at end of Icon function, point at beginning."
(interactive)
- (push-mark (point))
+ (push-mark)
(end-of-icon-defun)
- (push-mark (point))
+ (push-mark)
(beginning-of-line 0)
(beginning-of-icon-defun))
diff --git a/lisp/progmodes/meta-mode.el b/lisp/progmodes/meta-mode.el
index 3db3b8ad733..33772263884 100644
--- a/lisp/progmodes/meta-mode.el
+++ b/lisp/progmodes/meta-mode.el
@@ -780,7 +780,7 @@ The environment indented is the one that contains point or follows point."
"Put mark at end of the environment, point at the beginning.
The environment marked is the one that contains point or follows point."
(interactive)
- (push-mark (point))
+ (push-mark)
(meta-end-of-defun)
(push-mark (point) nil t)
(meta-beginning-of-defun))
diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el
index bf49ba4a363..a7d0624a74a 100644
--- a/lisp/progmodes/pascal.el
+++ b/lisp/progmodes/pascal.el
@@ -507,9 +507,9 @@ See also the user variables `pascal-type-keywords', `pascal-start-keywords' and
"Mark the current Pascal function (or procedure).
This puts the mark at the end, and point at the beginning."
(interactive)
- (push-mark (point))
+ (push-mark)
(pascal-end-of-defun)
- (push-mark (point))
+ (push-mark)
(pascal-beg-of-defun)
(when (featurep 'xemacs)
(zmacs-activate-region)))
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el
index b75f32ee200..3def37a2ea8 100644
--- a/lisp/progmodes/perl-mode.el
+++ b/lisp/progmodes/perl-mode.el
@@ -1104,9 +1104,9 @@ With argument, repeat that many times; negative args move backward."
(defun perl-mark-function ()
"Put mark at end of Perl function, point at beginning."
(interactive)
- (push-mark (point))
+ (push-mark)
(perl-end-of-function)
- (push-mark (point))
+ (push-mark)
(perl-beginning-of-function)
(backward-paragraph))
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el
index 48ee55500f8..9f3bad1c1a2 100644
--- a/lisp/progmodes/verilog-mode.el
+++ b/lisp/progmodes/verilog-mode.el
@@ -4212,9 +4212,9 @@ This puts the mark at the end, and point at the beginning."
(interactive)
(if (featurep 'xemacs)
(progn
- (push-mark (point))
+ (push-mark)
(verilog-end-of-defun)
- (push-mark (point))
+ (push-mark)
(verilog-beg-of-defun)
(if (fboundp 'zmacs-activate-region)
(zmacs-activate-region)))
diff --git a/lisp/progmodes/xscheme.el b/lisp/progmodes/xscheme.el
index 4502c6d33f7..bdfe30af505 100644
--- a/lisp/progmodes/xscheme.el
+++ b/lisp/progmodes/xscheme.el
@@ -580,7 +580,7 @@ See also the commands \\[xscheme-yank-pop] and \\[xscheme-yank-push]."
(xscheme-rotate-yank-pointer (if (listp arg) 0
(if (eq arg '-) -1
(1- arg))))
- (push-mark (point))
+ (push-mark)
(insert (car xscheme-expressions-ring-yank-pointer))
(if (consp arg)
(exchange-point-and-mark)))