unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Elisp - tag in list
@ 2021-01-18 20:28 wael-zwaiter
  2021-01-18 21:01 ` Óscar Fuentes
  0 siblings, 1 reply; 3+ messages in thread
From: wael-zwaiter @ 2021-01-18 20:28 UTC (permalink / raw)
  To: Help Gnu Emacs

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")) )






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Elisp - tag in list
  2021-01-18 20:28 Elisp - tag in list wael-zwaiter
@ 2021-01-18 21:01 ` Óscar Fuentes
  2021-01-18 21:20   ` wael-zwaiter
  0 siblings, 1 reply; 3+ messages in thread
From: Óscar Fuentes @ 2021-01-18 21:01 UTC (permalink / raw)
  To: help-gnu-emacs

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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Elisp - tag in list
  2021-01-18 21:01 ` Óscar Fuentes
@ 2021-01-18 21:20   ` wael-zwaiter
  0 siblings, 0 replies; 3+ messages in thread
From: wael-zwaiter @ 2021-01-18 21:20 UTC (permalink / raw)
  To: Óscar Fuentes; +Cc: help-gnu-emacs

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.
> 
> 
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-18 21:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-18 20:28 Elisp - tag in list wael-zwaiter
2021-01-18 21:01 ` Óscar Fuentes
2021-01-18 21:20   ` wael-zwaiter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).