Skip to content

Commit 0064659

Browse files
committed
Expand name mns.
1 parent 45bfc42 commit 0064659

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

indent-control.el

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,17 @@
164164
((>= in-val in-max) (setq in-val in-max)))
165165
in-val)
166166

167-
(defun indent-control--major-mode-p (mns)
168-
"Check if this major mode MNS."
169-
(cond ((stringp mns) (string= (symbol-name major-mode) mns))
170-
((listp mns)
171-
(let ((index 0) (len (length mns)) current-mode-name found)
167+
(defun indent-control--major-mode-p (name)
168+
"Return non-nil if NAME is current variable `major-mode'."
169+
(cond ((stringp name) (string= (symbol-name major-mode) name))
170+
((listp name)
171+
(let ((index 0) (len (length name)) current-mode-name found)
172172
(while (and (not found) (< index len))
173-
(setq current-mode-name (nth index mns)
173+
(setq current-mode-name (nth index name)
174174
found (indent-control--major-mode-p current-mode-name)
175175
index (1+ index)))
176176
found))
177-
((symbolp mns) (equal major-mode mns))
177+
((symbolp name) (equal major-mode name))
178178
(t nil)))
179179

180180
;;

0 commit comments

Comments
 (0)