unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Sean Whitton <spwhitton@spwhitton.name>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, emacs-devel@gnu.org
Subject: Re: master 8ee21db4af: Add new function `read-string-from-buffer'.
Date: Fri, 29 Apr 2022 12:44:41 +0300	[thread overview]
Message-ID: <YmuziQQMFye96gxL@protected.localdomain> (raw)
In-Reply-To: <8735i2wpc0.fsf@athena.silentflame.com>

I am using similar function all the time.

(defun read-from-buffer (&optional value buffer-name mode title keymap place highlight-list minor-modes)

I suggest you implement some of these features:

- I like to designate offen the buffer-name, it becomes more
  descriptive

- Some text is in different modes, some strings are in html-mode, some
  are in markdown-mode, some in asciidoc mode, some are SQL mode, and
  so on;

- I may need to pass keymap to function

- I pass some minor-modes when necessary

PLACE is something related to database, like database, column, ID,
when I edit database objects, it is not related and not necessary to
this general function


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



  parent reply	other threads:[~2022-04-29  9:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <165080616575.16300.17375829044466066664@vcs2.savannah.gnu.org>
     [not found] ` <20220424131606.1E4FEC009A8@vcs2.savannah.gnu.org>
2022-04-24 14:03   ` master 8ee21db4af: Add new function `read-string-from-buffer' Sean Whitton
2022-04-24 14:07     ` Lars Ingebrigtsen
2022-04-29  9:44     ` Jean Louis [this message]
2022-04-29 12:20       ` Stefan Monnier
2022-04-29 13:18         ` Jean Louis
2022-04-29 13:52           ` Stefan Monnier
2022-05-18  5:17             ` Jean Louis

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=YmuziQQMFye96gxL@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=spwhitton@spwhitton.name \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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