> !        ;; Return `mode-name' if not blank, `major-mode' otherwise.
> !        (if (and (stringp mode-name)
> !                 ;; Take care of preserving the match-data because this
> !                 ;; function is called when updating the header line.
> !                 (save-match-data
> !                   (string-match "[^ ]" mode-name)))

Any reason why you don't use simpler a test like (zerop (length mode-name))
or (equal mode-name ""), or even just check for mode-name being non-nil?

Are there cases where mode-names are made of nothing but spaces?
Is the empty string ever used for the mode-name?


        Stefan


_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to