unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean-Christophe Helary <jean.christophe.helary@traduction-libre.org>
To: Greg Hill <gregoryohill@gmail.com>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Reading from a buffer
Date: Fri, 3 Jul 2020 12:38:33 +0900	[thread overview]
Message-ID: <0884F1C1-94B7-4E69-B62C-C826A1E78637@traduction-libre.org> (raw)
In-Reply-To: <CADSjfO4QoA=5Q02u8G=PVCABzU6OHJOf3r6=pxc8Uq34yUe3LQ@mail.gmail.com>

As Jakub mentioned, did you check the f.el library ?

https://github.com/rejeep/f.el

> On Jul 2, 2020, at 5:19, Greg Hill <gregoryohill@gmail.com> wrote:
> 
> The function 'buffer-substring-no-properties' is certainly a step in the
> right direction, thank you. I've now got it down to:
> (setq count (car (read-from-string (buffer-substring-no-properties (mark)
> (point)))))
> But I'm nothing short of astonished that there is not yet anything in
> standard Emacs Lisp that is comparable to a formatted read-from-buffer
> statement in a more conventional programming language like Fortran or C.
> I'm imagining something akin to '(insert (format...' but working in the
> opposite direction, something like '(unformat (read...'.  Perhaps I'll just
> create my own library of intuitive and easy-to-use buffer I/O functions
> since I expect to be doing quite a bit of this sort of thing in the future.

-- 
Jean-Christophe Helary @brandelune
http://mac4translators.blogspot.com




  parent reply	other threads:[~2020-07-03  3:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-01 20:19 Reading from a buffer Greg Hill
2020-07-01 21:10 ` Stefan Monnier
2020-07-02  0:39 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-07-03  3:38 ` Jean-Christophe Helary [this message]
2020-07-03  6:33   ` Greg Hill
  -- strict thread matches above, loose matches on Subject: below --
2020-07-01 19:12 Greg Hill
2020-07-01 19:19 ` Eli Zaretskii
2020-07-01 19:20 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-07-01 19:21 ` Jakub Jankiewicz
2020-07-01 19:21 ` Jakub Jankiewicz

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=0884F1C1-94B7-4E69-B62C-C826A1E78637@traduction-libre.org \
    --to=jean.christophe.helary@traduction-libre.org \
    --cc=gregoryohill@gmail.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).