help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invalid face reference: quote


From: Davin Pearson
Subject: Re: Invalid face reference: quote
Date: Tue, 7 Jun 2016 01:01:58 -0700 (PDT)
User-agent: G2/1.0

Removing all of the quote characters from my ~/dlisp/d-flock.el file and other 
files still brings up the following warnings in the *Messages* buffer.

Invalid face reference: quote [76 times]
Invalid face reference: quote [20 times]
Entering debugger...
Invalid face reference: quote [6 times]
Back to top level.
Invalid face reference: quote [36 times]
Copied buffer to clipboard
Invalid face reference: quote [6 times]
(No files need saving)
Invalid face reference: quote [14 times]


On Tuesday, June 7, 2016 at 11:51:45 AM UTC+12, Barry Margolin wrote:
> In article <592a4a24-7483-4718-8c61-adbb5d76ff70@googlegroups.com>,
>  Davin Pearson <davin dot pearson at gmail.com> wrote:
> 
> > When I am using GNU Emacs version 23.1.1 I frequently get the
> > following error in the *Messages* buffer:
> > 
> > Invalid face reference: quote [21 times] or more times
> > 
> > What am I doing wrong with font lock mode to get these error messages?
> > 
> > I have the following code set up for my fontification:
> 
> The list is quoted, you don't need quotes inside it -- that causes it to 
> try to use the literal symbol "quote". So change things like 
> 'font-lock-type-face and 'bold to font-lock-type-face and bold.
> 
> >       (d-font-lock-add-end
> >        '(
> >          ;; FOO-SAD-FSDF: sadfadf
> >          ;; NOTE: adfasdfosdf
> >          ;;("\\([ ]\\|^\\)\\(\\([A-z'-]+[ ]\\)*[A-Z][A-Z0-9.'-]+:\\) 
> >          \\(.*$\\)"
> >          ;; (2 d-face-special-reference t) (4 d-face-cc-debugging t)) ;; 
> > was 
> >          fg:white
> > 
> >          ("\\([A-Z][a-zA-Z0-9_]*\\)::" 1 'font-lock-type-face nil)
> >          ("\\([A-Z]*\\):" (1 fg:white nil))
> > 
> >          ;; QUESTION: hello (not smegged)
> >          ;;("DUCK" 1 d-face-property t)
> >          ("\\(\\<BACK ADDED:\\)\\(.*$\\)"                    (1 
> >          d-face-cc-debugging t) (2 fg:lightgreen t))
> >          ("\\(\\<LIMITATION[-A-Z +]*:\\)\\(.*$\\)"           (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<CODE:\\)\\([A-Z +]*\\)\\(.*$\\)"            (1 
> > bg:lightgreen 
> >          t) (2 fg:lightgreen t) (3 'default t))
> >          ("\\(\\<NOT FOUND:\\)\\(.*$\\)"                     (1 
> > bg:lightgreen 
> >          t) (2 fg:lightgreen t))
> >          ("\\(\\<DELETE ?ME:\\)\\(.*$\\)"                    (1 
> >          d-face-cc-debugging t) (2 fg:lightgreen t))
> >          ("\\(\\<FIXED:\\)\\(.*$\\)"                         (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<BURNED:\\)\\(.*$\\)"                        (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<SOLUTION:\\)\\(.*$\\)"                      (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<SEE:\\)\\(.*$\\)"                           (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<NEW[A-Z ]*:\\)\\(.*$\\)"                    (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<COPY:\\)\\(.*$\\)"                          (1 
> >          d-face-cc-debugging t) (2 fg:lightgreen t))
> >          ("\\(\\<RENAME:\\)\\(.*$\\)"                        (1 
> >          d-face-cc-debugging t) (2 fg:lightgreen t))
> >          ("\\(\\<PUT:\\)\\(.*$\\)"                           (1 
> >          d-face-cc-debugging t) (2 fg:lightgreen t))
> >          ("\\(\\<URL:\\)\\(.*$\\)"                           (1 
> >          d-face-cc-debugging t) (2 fg:lightgreen t))
> >          ("\\(\\<COOL:\\)\\(.*$\\)"                          (1 
> >          d-face-cc-debugging t) (2 fg:lightgreen t))
> >          ("\\(\\<TOMORROW:\\)\\(.*$\\)"                      (1 
> >          d-face-cc-debugging t) (2 fg:lightgreen t))
> >          ("\\(\\<FAILED[A-Z +]*\\)\\(.*$\\)"                 (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<MISSING[A-Z +]*\\)\\(.*$\\)"                (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<REMOVE ?ME:\\)\\(.*$\\)"                    (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<PUT BACK:\\)\\(.*$\\)"                      (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<NOT DO:\\)\\(.*$\\)"                        (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<TEMP:\\)\\(.*$\\)"                          (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<SEARCH FOR:\\)\\(.*$\\)"                    (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<COMPILE:\\)\\(.*$\\)"                       (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ;;("\\(\\<ADD[A-Z ]*:\\)\\(.*$\\)"                  (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<FIXME[?:!]+\\)\\(.*$\\)"                    (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<BROKEN[-A-Z0-9 .+&/]*[:?]\\)\\(.*$\\)"       (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<TODO[-A-Z0-9 .+&/]*[:?]\\)\\(.*$\\)"         (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<TEST[-A-Z0-9 .+]*[:?]\\)\\(.*$\\)"           (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<PULL ?OUT:\\)\\(.*$\\)"                     (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<LATER:\\)\\(.*$\\)"                         (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<PROBLEM:\\)\\(.*$\\)"                       (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<CLASH:\\)\\(.*$\\)"                         (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ;;("\\(\\<REVERTED[A-Z0-9 .]*:\\)\\(.*$\\)"         (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<REVERTED[-A-Z0-9 .+]*:\\)\\(.*$\\)"           (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> > 
> >          ("\\(\\<PULLED BACK[-A-Z0-9 .+]*:\\)\\(.*$\\)"        (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<DEBUG[-A-Z0-9 .+]*:\\)\\(.*$\\)"              (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<DEBUGGED[-A-Z0-9 .+]*:\\)\\(.*$\\)"           (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<OKAY[-A-Za-z0-9 +]*:\\)\\(.*$\\)"             (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<HOWTO[-A-Za-z0-9 +]*:\\)\\(.*$\\)"            (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<DOING:\\)\\(.*$\\)"                           (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<ISIN:\\)\\(.*$\\)"                            (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<RESOLVE CLASH:\\)\\(.*$\\)"                   (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<INSTALLED:\\)\\(.*$\\)"                       (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<PATCH[-A-Z0-9 +]*:\\)\\(.*$\\)"               (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<BUG[-A-Z0-9 +]*:\\)\\(.*$\\)"                 (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<WHY[-A-Z0-9 +]*[?:]+\\)\\(.*$\\)"             (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<WHEREIS[-A-Z0-9 +]*[?:]+\\)\\(.*$\\)"         (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<PENDING[-A-Z0-9 +]*[?:]+\\)\\(.*$\\)"         (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<WTF[-A-Z0-9 +]*[?:]+\\)\\(.*$\\)"             (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<WARNING[-A-Z0-9 +]*[?:]+\\)\\(.*$\\)"         (1 
> >          d-face-red-and-yellow t) (2 fg:red t))
> >          ("\\(\\<ERROR:\\)\\(.*$\\)"                         (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<NOT[-a-zA-Z0-9'. +]*:\\)\\(.*$\\)"                         
> >          (1 bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<URGENT:\\)\\(.*$\\)"                        (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<REDO:\\)\\(.*$\\)"                          (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<REMOVE:\\)\\(.*$\\)"                        (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<RESOLVE[-A-Z' +]*:\\)\\(.*$\\)"               (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<BUGGER[-A-Z' +]*:\\)\\(.*$\\)"                (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ("\\(\\<TIME[-A-Z +]*[:!?]\\)[ \t]+\\([^\r\n]*\\)"    (1 
> >          bg:lightgreen t)   (2 fg:lightgreen t))
> >          ("\\(\\<MILESTONE[:!?]\\)[ \t]+\\([^\r\n]*\\)"      (1 
> > bg:lightgreen 
> >          t)   (2 fg:lightgreen t))
> >          ("\\(\\<QUERY[:!?]\\)[ \t]+\\([^\r\n]*\\)"          (1 
> >          bg:lightmagenta t)   (2 fg:lightmagenta t))
> >          ("\\(\\<BUGFIXED:\\)\\(.*$\\)"                      (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<NOTE[-A-Z0-9 _.+/]*:\\)\\(.*$\\)"              (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<TOTAL[-A-Z0-9 +]*:\\)\\(.*$\\)"               (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<SPLATTED[-A-Z0-9 .&/+]*:\\)\\(.*$\\)"         (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<SEMI[-A-Z0-9 .&/+]*:\\)\\(.*$\\)"             (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<DONE[-A-Z0-9 .&/+]*:\\)\\(.*$\\)"             (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<GOT[-A-Z0-9 .&/+]*:\\)\\(.*$\\)"              (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<ADDED[-A-Z0-9 .&/+]*:\\)\\(.*$\\)"            (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<CHANGED[-A-Z0-9 .&/+]*:\\)\\(.*$\\)"          (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<REMOVED[-A-Z0-9 .&/+]*:\\)\\(.*$\\)"          (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<DOWNLOADED[-A-Z0-9 .&/+]*:\\)\\(.*$\\)"       (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<NOT DONE[-A-Z0-9,. _+]*:\\)\\(.*$\\)"        (1 
> >          bg:lightmagenta t) (2 fg:lightmagenta t))
> >          ;;("\\(\\<SEMI[A-Z0-9 .&/]*:\\)\\(.*$\\)"           (1 
> >          d-face-property-inverse t) (2 d-face-property t))
> >          ("\\(\\<class:\\) \\([-a-zA-Z0-9_.+]*\\)"            (1 'bold t) 
> > (2 
> >          'font-lock-type-face t))
> >          ("\\(\\<constructor:\\) \\([-a-zA-Z0-9_.+]*\\)"      (1 'bold t) 
> > (2 
> >          'font-lock-function-name-face t))
> >          ("\\(\\<method:\\) \\([-a-zA-Z0-9_.+]*\\)"           (1 'bold t) 
> > (2 
> >          'font-lock-function-name-face t))
> >          ("\\(\\<methods:\\) \\(\\([-a-zA-Z0-9_.+]* *\\)*\\)" (1 'bold t) 
> > (2 
> >          'font-lock-function-name-face t))
> >          ("\\(\\<function:\\) \\([-a-zA-Z0-9_.+]*\\)"         (1 'bold t) 
> > (2 
> >          'font-lock-function-name-face t))
> >          ("\\(\\<variable:\\) \\([-a-zA-Z0-9_.+]*\\)"         (1 'bold t) 
> > (2 
> >          'font-lock-variable-name-face t))
> >          ("\\(\\<classVar:\\) \\([-a-zA-Z0-9_.+]*\\)"         (1 'bold t) 
> > (2 
> >          'font-lock-variable-name-face t))
> >          ("\\(\\<defun:\\) \\([-a-zA-Z0-9_.+]*\\)"            (1 'bold t) 
> > (2 
> >          'font-lock-function-name-face t))
> >          ("\\(\\<defmacro:\\) \\([-a-zA-Z0-9_.+]*\\)"         (1 'bold t) 
> > (2 
> >          'font-lock-function-name-face t))
> >          ("\\(\\<file:\\) \\([a-zA-Z0-9_.+]*\\)"              (1 'bold t))
> >          ("\\(\\<line:\\) \\([0-9]+\\)"                       (1 'bold t) 
> > (2 
> >          fg:lightmagenta t))
> >          ("#[-a-zA-Z0-9'.:+]+"                                 0 
> >          'font-lock-function-name-face t)
> >          ;;  end of smegs
> >          ("^[ \t]*[^\n\r]*[\r\n]"                            0 
> >          d-face-red-and-white t)
> >          ;;("\\<message-and-sit\\>"                            0 
> > d-debug-face 
> >          t)
> >          ;; IMPORTANT NOTES! sdfsdf
> >          ;; IMPORTANT NOTES? sdfsdff
> >          ("\\(\\<[A-Z]+[^a-z\r\n!:;()]*[A-Z0-9][!?]+\\)\\(.*$\\)"
> >           (1 d-face-green-and-yellow t)
> >           (2 bg:yellow t))
> >          ))
> >       ))
> > 
> >   )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]