From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Example of how to handle multi-line records in Emacs forms mode (i.e. using forms.el) ? Date: Mon, 01 Jul 2024 14:42:22 +0300 Message-ID: <86ed8dfie9.fsf@gnu.org> References: <20240630173032.GM13058@uit.co.uk> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8395"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 01 13:43:02 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 1sOFR0-0001xg-CS for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Jul 2024 13:43:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOFQS-0004lQ-4C; Mon, 01 Jul 2024 07:42:28 -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 1sOFQQ-0004kr-Qi for help-gnu-emacs@gnu.org; Mon, 01 Jul 2024 07:42:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOFQQ-0006gL-IB for help-gnu-emacs@gnu.org; Mon, 01 Jul 2024 07:42:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wcJC9rDy7WwMgAIygwJiDbVsUFI2ssnE+cMDJr0MJf4=; b=StPTR+I0FzVg iYyoAG5ToEr5DvVpPlFIDTidQZeKeP3++t46sY6mbmJRJ5QdIZJVhg2YBfCYSp6kBv1KejKFkWHyx gBTzUh0an1NCliYJaV/PUHARlj038nIDAb2ObzcVwtjvMyOC9KQn3xQAPnvcqn50377dm96jYpgJX W+8a0DQBv9QnPLu8Dtc2nqjaovJ51wiAnEntfA9RZwFUozT4tyQiiZVKpgq6oT0l/lXvP+9L2JuhU IUk/qzjv1sIc6fz5XbXsYolgfMExAaQuPGAGlhrRL4uZUcsOTega3JhwRXBKtsP+EnyivfO9lStxq smdS9KuzAwlHnSG6X8nmLA==; In-Reply-To: <20240630173032.GM13058@uit.co.uk> (message from Niall Mansfield on Sun, 30 Jun 2024 18:30:32 +0100) 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:147042 Archived-At: > Date: Sun, 30 Jun 2024 18:30:32 +0100 > From: Niall Mansfield > > Is it possible to handle multi-line records using Emacs forms mode? > > For example, how would you handle something like this: > > Title: GNU Emacs Manual > Author: Richard M. Stallman > Publisher: FSF > Location: home > > Title: The Colour of Magic > Author: Terry Pratchett > Location: loaned > > Title: Mio Cid > Author: Anonymous > Location: home > > Title: chapters.gnu.org administration guide > Author: Nacho Gonzalez > Author: Jose E. Marchesi > Location: unknown > > (which is taken from a tutorial example for GNU recutils). > > I ask because the Forms Mode User's Manual > (https://www.gnu.org/software/emacs/manual/html_mono/forms.html) > talks of "multi-line fields" ("Fields may contain text which > shows up in the forms in multiple lines") but I can't see > how to handle multi-line records. Embed literal ^J characters in the text?