Minor refactors & tweaks across the board

This commit is contained in:
Henrik Lissner 2019-08-06 14:50:42 -04:00
parent 62aea0a73a
commit 3423974234
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 9 additions and 6 deletions

View file

@ -399,8 +399,7 @@ If RETURN-P, return the message as a string instead of displaying it."
in interactive sessions, nil otherwise (but logs a warning)."
(condition-case e
(let (command-switch-alist)
(load (if noninteractive file (file-name-sans-extension file))
'noerror 'nomessage))
(load (substring file 0 -3) 'noerror 'nomessage))
((debug error)
(if noninteractive
(message "Autoload file warning: %s -> %s" (car e) (error-message-string e))