From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Getting text from next non-blank line Date: Fri, 19 Apr 2024 20:53:57 +0000 Message-ID: <-NcWr6V6uYcDio-D72eweQPC4nx1UypEOtbiY6bgBb0qLt9NeDKFi_XI4h7x8WoVI5z7wJRDiVk2XRjl7KrLJET8YX6pf1Up-GIp4SUfajw=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11481"; mail-complaints-to="usenet@ciao.gmane.io" To: Heime via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 19 22:54:47 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rxvFv-0002oe-Bf for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 19 Apr 2024 22:54:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxvFK-0008St-Vt; Fri, 19 Apr 2024 16:54:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxvFJ-0008Sj-5g for help-gnu-emacs@gnu.org; Fri, 19 Apr 2024 16:54:09 -0400 Original-Received: from mail-40135.protonmail.ch ([185.70.40.135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxvFH-0005oq-4K for help-gnu-emacs@gnu.org; Fri, 19 Apr 2024 16:54:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1713560044; x=1713819244; bh=HnHBXuF6Fl10JGPJmG1CvOckKybL3SBQNxZ/LZPz0Ys=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=Gz2zMyJYmj7sqcSOnBBU+32mjNaAGR5bYOB0QfGCJhpCW+ZrefRqeY9L/IEtYUoER Q7q318QoKgzUkCYqGiPNpfi3kbjvXm+ultpMyJyss+k/sKvmpcpxJAfvOkGIPBCiy+ oxzFFZ+c5eel3kQNpnEMO+8Yaoff3+twG7zNxwETJjSxQo6JBght1XOHSJgnygfTu8 u2t3DkWULMpUfo8KiOBGbr/oP6+2HyVaCui3QDEqCCt681lmrre29rimpGaMq/zzC1 dXzbn3tAFXyCaG4SmlUJ/cqFLNfjItleXnBCryElyJZ0Pfh81jARk9d4tVLidKMCdT HAJ7aTmePO+Rg== Feedback-ID: 57735886:user:proton X-Pm-Message-ID: f0c962cf1dfd3d6898ecc2ab5304752f3dc5d61e Received-SPF: pass client-ip=185.70.40.135; envelope-from=heimeborgia@protonmail.com; helo=mail-40135.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146384 Archived-At: This interactive function requests the user to input a string associated wi= th=20 the current line number. I want to change it so that the function picks ou= t the text on the current line or the text of the next non-blank line. But a= lso 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)))) ))