From: Heime <heimeborgia@protonmail.com>
To: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: backquote upon variable for :eval
Date: Sun, 28 Jul 2024 20:10:43 +0000 [thread overview]
Message-ID: <gNl3YhDf2Y6i6j_mbrhQ8zDXyYbLPT4VwIAn7kJUeW3O5hVKlA9KiLDNiSTlu2a8LfSnpSX1-4LQgXn1GHp1eZmuNvTgux9wlXHAOCktDZI=@protonmail.com> (raw)
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 ?
(defun vodil-ellipses (bfname wmax &optional actn)
(if (equal actn 'concat)
(concat (substring bfname 0 (- wmax 1)) "… ")
(truncate-string-to-width bfname wmax nil nil "…")) )
(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))))))
next reply other threads:[~2024-07-28 20:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-28 20:10 Heime [this message]
2024-07-28 20:24 ` backquote upon variable for :eval Manuel Giraud via Users list for the GNU Emacs text editor
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='gNl3YhDf2Y6i6j_mbrhQ8zDXyYbLPT4VwIAn7kJUeW3O5hVKlA9KiLDNiSTlu2a8LfSnpSX1-4LQgXn1GHp1eZmuNvTgux9wlXHAOCktDZI=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).