emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master dfbb207: * lisp/vc/vc.el (vc-checkin): Simplify 'ru


From: Charles A. Roelli
Subject: [Emacs-diffs] master dfbb207: * lisp/vc/vc.el (vc-checkin): Simplify 'run-hook' call.
Date: Mon, 1 Oct 2018 15:38:31 -0400 (EDT)

branch: master
commit dfbb207ff946792efebb31c0c59b8245c304544a
Author: Charles A. Roelli <address@hidden>
Commit: Charles A. Roelli <address@hidden>

    * lisp/vc/vc.el (vc-checkin): Simplify 'run-hook' call.
---
 lisp/vc/vc.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index d3d66d6..6962664 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1536,8 +1536,7 @@ The optional argument REV may be a string specifying the 
new revision
 level (only supported for some older VCSes, like RCS and CVS).
 
 Runs the normal hooks `vc-before-checkin-hook' and `vc-checkin-hook'."
-  (when vc-before-checkin-hook
-    (run-hooks 'vc-before-checkin-hook))
+  (run-hooks 'vc-before-checkin-hook)
   (vc-start-logentry
    files comment initial-contents
    "Enter a change comment."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]