File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 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; ;
You can’t perform that action at this time.
0 commit comments