diff options
author | Stefan Kangas <stefan@marxist.se> | 2021-01-28 22:06:35 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2021-01-28 22:06:35 +0100 |
commit | cb97581870cb1e3c211e4cead5f14f6cb67e4c8f (patch) | |
tree | d1ec23007a9aa2d4a1996dbf524d9610601b9d44 | |
parent | a50fe43337eef4b287784527f33cceab4f9ab30c (diff) | |
download | emacs-cb97581870cb1e3c211e4cead5f14f6cb67e4c8f.tar.gz |
Use lexical-binding in nroff-mode.el
* lisp/textmodes/nroff-mode.el: Use lexical-binding. Remove
redundant :group args.
-rw-r--r-- | lisp/textmodes/nroff-mode.el | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el index 896578513cf..fe70e925b05 100644 --- a/lisp/textmodes/nroff-mode.el +++ b/lisp/textmodes/nroff-mode.el @@ -1,4 +1,4 @@ -;;; nroff-mode.el --- GNU Emacs major mode for editing nroff source +;;; nroff-mode.el --- GNU Emacs major mode for editing nroff source -*- lexical-binding: t -*- ;; Copyright (C) 1985-1986, 1994-1995, 1997, 2001-2021 Free Software ;; Foundation, Inc. @@ -43,7 +43,6 @@ (defcustom nroff-electric-mode nil "Non-nil means automatically closing requests when you insert an open." - :group 'nroff :type 'boolean) (defvar nroff-mode-map @@ -111,7 +110,7 @@ ;; arguments in common cases, like \f. (concat "\\\\" ; backslash "\\(" ; followed by various possibilities - (mapconcat 'identity + (mapconcat #'identity '("[f*n]*\\[.+?]" ; some groff extensions "(.." ; two chars after ( "[^(\"#]" ; single char escape @@ -119,13 +118,11 @@ "\\)") ) "Font-lock highlighting control in `nroff-mode'." - :group 'nroff :type '(repeat regexp)) (defcustom nroff-mode-hook nil "Hook run by function `nroff-mode'." - :type 'hook - :group 'nroff) + :type 'hook) ;;;###autoload (define-derived-mode nroff-mode text-mode "Nroff" |