unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: wael-zwaiter@gmx.com
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Elisp - tag in list
Date: Mon, 18 Jan 2021 22:20:11 +0100	[thread overview]
Message-ID: <trinity-51e6aa4c-f0e5-4526-b3a0-df636ec6e0d1-1611004811350@3c-app-mailcom-bs11> (raw)
In-Reply-To: <87mtx6dkn7.fsf@telefonica.net>

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



      reply	other threads:[~2021-01-18 21:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-51e6aa4c-f0e5-4526-b3a0-df636ec6e0d1-1611004811350@3c-app-mailcom-bs11 \
    --to=wael-zwaiter@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ofv@wanadoo.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).