[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Elisp - tag in list
From: |
wael-zwaiter |
Subject: |
Re: Elisp - tag in list |
Date: |
Mon, 18 Jan 2021 22:20:11 +0100 |
Easy customisation. Cool.
In it correct to use "face inferior-vshift display" in the code below?
(defun subinf-font-lock (pos)
(unless (or (memq (get-text-property pos 'face)
'(font-lock-constant-face font-lock-builtin-face
font-lock-comment-face))
;; Check for backslash quoting
(let ((odd nil)
(pos pos))
(while (eq (char-before pos) ?\\)
(setq pos (1- pos) odd (not odd)))
odd))
(if (eq (char-after pos) ?_)
`(face inferior-vshift display (raise ,(car subinf-vshift)))
`(face superior-vshift display (raise ,(cadr subinf-vshift))))))
> Sent: Tuesday, January 19, 2021 at 9:01 AM
> From: "Óscar Fuentes" <ofv@wanadoo.es>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Elisp - tag in list
>
> wael-zwaiter@gmx.com writes:
>
> > Can people explain me the tag used in list below?
> >
> > (defcustom subinf-typeface-display '(-0.2 0.2)
> > :group 'tex
> > :type '(list (float :tag "inferior-glyph")
> > (float :tag "superior-glyph")) )
>
> Do
>
> M-x customize-variable [ENTER] subinf-typeface-display [ENTER]
>
> try setting a value and the answer to your question should be obvious.
>
>
>