From: Heime <heimeborgia@protonmail.com>
To: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Getting text from next non-blank line
Date: Fri, 19 Apr 2024 20:53:57 +0000 [thread overview]
Message-ID: <-NcWr6V6uYcDio-D72eweQPC4nx1UypEOtbiY6bgBb0qLt9NeDKFi_XI4h7x8WoVI5z7wJRDiVk2XRjl7KrLJET8YX6pf1Up-GIp4SUfajw=@protonmail.com> (raw)
This interactive function requests the user to input a string associated with
the current line number. I want to change it so that the function picks out
the text on the current line or the text of the next non-blank line. But also
allow the user to write their own text for the line.
(defun tema-mark (kfrz)
"Associate line number at cursor position with key phrase KFRZ."
(interactive "sString: ")
(let ( (lnum (line-number-at-pos)) )
(setq-local tema-lugar
(append tema-lugar (list (cons kfrz lnum)))) ))
next reply other threads:[~2024-04-19 20:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-19 20:53 Heime [this message]
2024-04-19 21:04 ` [External] : Getting text from next non-blank line Drew Adams
2024-04-19 21:38 ` Heime
2024-04-19 21:50 ` Heime
2024-04-19 22:37 ` Stephen Berman
2024-04-19 23:00 ` Heime
2024-04-19 23:12 ` Stephen Berman
2024-04-19 23:18 ` Heime
2024-04-19 23:31 ` Heime
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='-NcWr6V6uYcDio-D72eweQPC4nx1UypEOtbiY6bgBb0qLt9NeDKFi_XI4h7x8WoVI5z7wJRDiVk2XRjl7KrLJET8YX6pf1Up-GIp4SUfajw=@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).