0

I’ve been having problems with elisp debugging lately.

I restarted emacs and problems appear to have disappeared. But I noticed something else: all of the In-buffer settings, e.g.

#+BEGIN_QUOTE

#+END_QUOTE

now appear on a very small courier font, instead of the default Monaco. (They used to be Monaco.)

Do you know how I can get back to the old font settings?

I had code for auto-insert-alist and code for yasnippet in my .emacs and I commented them out, but that did not help.

Time stamps and text in tables also chenged to Courier.

This happens only in org-mode.


Font definition in org-faces.el

(defface org-meta-line '((t :inherit (fixed-pitch font-lock-comment-face)))
  "Face for meta lines starting with \"#+\"."
  :group 'org-faces
  :version "22.1")

This is the result of starting emacs with ~% emacs -Q:

~ % emacs -Q                                             
2022-09-09 21:57:33.056 Emacs-x86_64-10_14[43886:27045992] 

It's not legal to call -layoutSubtreeIfNeeded on a view which is already being laid out.  

If you are implementing the view's -layout method, you can call -[super layout] instead. 

Break on void _NSDetectedLayoutRecursion(void) to debug.  

This will be logged only once.  

This may break in the future.

C-u C-x =:

             position: 5 of 85 (5%), column: 4
            character: T (displayed as T) (codepoint 84, #o124, #x54)
              charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x54
               script: latin
               syntax: w    which means: word
             category: .:Base, L:Strong L2R, a:ASCII, l:Latin, r:Roman
             to input: type "C-x 8 RET 54" or "C-x 8 RET LATIN CAPITAL LETTER T"
          buffer code: #x54
            file code: #x54 (encoded by coding system undecided-unix)
              display: by this font (glyph code):
    mac-ct:-*-Courier-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x37)

Character code properties: customize what to show
  name: LATIN CAPITAL LETTER T
  general-category: Lu (Letter, Uppercase)
  decomposition: (84) ('T')

There are text properties here:
  face                 org-meta-line
  font-lock-fontified  t
  fontified            t

M-: (face-at-point):

org-meta-line

M-x describe-face:

Face: org-meta-line (sample) (customize this face)

Documentation:
Face for meta lines starting with "#+".

Defined in ‘org-faces.el’.


           Family: unspecified
          Foundry: unspecified
            Width: unspecified
           Height: unspecified
           Weight: unspecified
            Slant: unspecified
       Foreground: unspecified
DistantForeground: unspecified
       Background: unspecified
        Underline: unspecified
         Overline: unspecified
   Strike-through: unspecified
              Box: unspecified
          Inverse: unspecified
          Stipple: unspecified
             Font: unspecified
          Fontset: unspecified
           Extend: unspecified
          Inherit: (fixed-pitch font-lock-comment-face)

  This face was introduced, or its default value was changed, in
  version 22.1 of Emacs.
20
  • 1
    Start with emacs -Q, open an Org mode file that exhibits the problem, place your cursor on one of the problematic characters, say C-u C-x = and paste the result into your question literally. With the cursor at the same point, say M-: (face-at-point) and paste that into your question. Then say M-x describe-face and enter the face you got previously - then paste the results of that into your question.
    – NickD
    Sep 9, 2022 at 22:03
  • 1
    Please reread what I wrote. I said IF it's the case that this is a duplicate question then please delete it. It's not necessarily about font changes you made. Perhaps Org has redefined the default appearance of some face, and you don't like that change, but you can customize that face to get whatever you like. Etc.
    – Drew
    Sep 10, 2022 at 16:54
  • 2
    If you can't find a library that some of the code you use needs, and you're using emacs -Q, then the fault is in some standard library. A wild guess is that you somehow have a non-vanilla version of Org, which is missing that library. Just be clear with all of your testing and reporting that you're using emacs -Q; otherwise, all bets are off (and in that case you need to bisect your init file).
    – Drew
    Sep 10, 2022 at 16:56
  • 1
    In the output of M-x describe-face RET org-meta-line, the filename org-faces.el should be a link. Try clicking on it and see if it takes you there.
    – NickD
    Sep 11, 2022 at 2:41
  • 1
    It seems to be a bug. The fixed-pitch inherirtance was introduced with commit 667cb6f1aeac330272d55cd2b8849ef75bf7e685 into Org mode and it was reverted with 8aff825682f75c2e889ba02a8bd5e2fbf7778009, in both cases without any explanation in the commits, so I don't know anything more about it. There might have been some discussion on the ML, but I have not searched for it.
    – NickD
    Sep 12, 2022 at 2:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.