• Noam Postavsky's avatar
    Improve errors & warnings due to fancy quoted vars (Bug#32939) · b2790db0
    Noam Postavsky authored
    Add some hints to the message for byte compiler free & unused variable
    warnings, and 'void-variable' errors where the variable has confusable
    quote characters in it.
    * lisp/help.el (uni-confusables), uni-confusables-regexp): New
    constants.
    (help-command-error-confusable-suggestions): New function, added to
    `command-error-function'.
    (help-uni-confusable-suggestions): New function.
    * lisp/emacs-lisp/bytecomp.el (byte-compile-variable-ref):
    * lisp/emacs-lisp/cconv.el (cconv--analyze-use): Use it.
    
    * lisp/emacs-lisp/lisp-mode.el
    (lisp--match-confusable-symbol-character): New function.
    (lisp-fdefs): Use it to fontify confusable characters with
    font-lock-warning-face when they occur in symbol names.
    * doc/lispref/modes.texi (Faces for Font Lock):
    * doc/lispref/objects.texi (Basic Char Syntax): Recommend backslash
    escaping of confusable characters, and mention new fontification.
    * etc/NEWS: Announce the new fontification behavior.
    * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-fontify-confusables):
    New test.
    b2790db0
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...