unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Manuel Giraud via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: backquote upon variable for :eval
Date: Sun, 28 Jul 2024 22:24:40 +0200	[thread overview]
Message-ID: <87wml5i7sn.fsf@ledu-giraud.fr> (raw)
In-Reply-To: <gNl3YhDf2Y6i6j_mbrhQ8zDXyYbLPT4VwIAn7kJUeW3O5hVKlA9KiLDNiSTlu2a8LfSnpSX1-4LQgXn1GHp1eZmuNvTgux9wlXHAOCktDZI=@protonmail.com> (Heime's message of "Sun, 28 Jul 2024 20:10:43 +0000")

Heime <heimeborgia@protonmail.com> writes:

> I am using the backquote, but I get errors when using ,tknm
>
> How can this be fixed ?  Perhaps I got to arrange the code in a
> different way ?

Yes I think that you should re-arrange and re-read "(elisp) Backquote"
and maybe "(elisp) Evaluation" too.

[...]

> (defun vodil-bfnap (wmax &optional actn)
>
>   (setq-default mode-line-buffer-identification
>     `(:eval
>         (let* ( (bfnm (buffer-name (window-buffer)))
>                 (tknm (if (> (length bfnm) wmax)
>                           (vodil-ellipses bfnm wmax actn)
>                         bfnm)) )
>           (propertized-buffer-identification (format " %s " ,tknm))))))

What could contain an evaluation of tknm here?
-- 
Manuel Giraud



  reply	other threads:[~2024-07-28 20:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-28 20:10 backquote upon variable for :eval Heime
2024-07-28 20:24 ` Manuel Giraud via Users list for the GNU Emacs text editor [this message]
2024-07-28 20:44   ` Heime
2024-07-28 21:04     ` Christopher Dimech

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=87wml5i7sn.fsf@ledu-giraud.fr \
    --to=help-gnu-emacs@gnu.org \
    --cc=heimeborgia@protonmail.com \
    --cc=manuel@ledu-giraud.fr \
    /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).