unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Getting text from next non-blank line
@ 2024-04-19 20:53 Heime
  2024-04-19 21:04 ` [External] : " Drew Adams
  0 siblings, 1 reply; 9+ messages in thread
From: Heime @ 2024-04-19 20:53 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

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




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

end of thread, other threads:[~2024-04-19 23:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-19 20:53 Getting text from next non-blank line Heime
2024-04-19 21:04 ` [External] : " 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

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