1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Use lexical-binding in time-stamp.el

* lisp/time-stamp.el: Use lexical-binding.  Remove redundant :group
args.
This commit is contained in:
Stefan Kangas 2020-11-15 20:12:45 +01:00
parent 9191c82f6d
commit 7dd671f7f2

View file

@ -1,4 +1,4 @@
;;; time-stamp.el --- Maintain last change time stamps in files edited by Emacs ;;; time-stamp.el --- Maintain last change time stamps in files edited by Emacs -*- lexical-binding: t -*-
;; Copyright (C) 1989, 1993-1995, 1997, 2000-2020 Free Software ;; Copyright (C) 1989, 1993-1995, 1997, 2000-2020 Free Software
;; Foundation, Inc. ;; Foundation, Inc.
@ -87,7 +87,6 @@ transitional behavior (again, as shown).
The behavior of `%5z' is new in Emacs 27. If your files might be The behavior of `%5z' is new in Emacs 27. If your files might be
edited by older versions of Emacs also, do not use this format yet." edited by older versions of Emacs also, do not use this format yet."
:type 'string :type 'string
:group 'time-stamp
:version "27.1") :version "27.1")
;;;###autoload(put 'time-stamp-format 'safe-local-variable 'stringp) ;;;###autoload(put 'time-stamp-format 'safe-local-variable 'stringp)
@ -102,8 +101,7 @@ when they are saved, either add this line to your init file:
or customize option `before-save-hook'. or customize option `before-save-hook'.
See also the variable `time-stamp-warn-inactive'." See also the variable `time-stamp-warn-inactive'."
:type 'boolean :type 'boolean)
:group 'time-stamp)
(defcustom time-stamp-warn-inactive t (defcustom time-stamp-warn-inactive t
"Have \\[time-stamp] warn if a buffer did not get time-stamped. "Have \\[time-stamp] warn if a buffer did not get time-stamped.
@ -111,7 +109,6 @@ If non-nil, a warning is displayed if `time-stamp-active' has
deactivated time stamping and the buffer contains a template that deactivated time stamping and the buffer contains a template that
otherwise would have been updated." otherwise would have been updated."
:type 'boolean :type 'boolean
:group 'time-stamp
:version "19.29") :version "19.29")
(defcustom time-stamp-time-zone nil (defcustom time-stamp-time-zone nil
@ -125,7 +122,6 @@ Its format is that of the ZONE argument of the `format-time-string' function."
(integer :tag "Offset (seconds east of UTC)") (integer :tag "Offset (seconds east of UTC)")
(string :tag "Time zone abbreviation")) (string :tag "Time zone abbreviation"))
(integer :tag "Offset (seconds east of UTC)")) (integer :tag "Offset (seconds east of UTC)"))
:group 'time-stamp
:version "20.1") :version "20.1")
;;;###autoload(put 'time-stamp-time-zone 'safe-local-variable 'time-stamp-zone-type-p) ;;;###autoload(put 'time-stamp-time-zone 'safe-local-variable 'time-stamp-zone-type-p)