[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading from a buffer

From: Emanuel Berg
Subject: Re: Reading from a buffer
Date: Wed, 01 Jul 2020 21:20:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Greg Hill wrote:

> I've pretty well mastered the process of *writing
> to* a buffer using *insert* and *format*, but
> I haven't been able to find any equally easy way to
> read that same information back. I've hacked
> together a workaround using *copy-to-register*,
> *get-register* and *read-from-string*, but surely
> there must be a more straightforward approach than
> that. I've searched and searched through all the
> documentation and have come up with nothing for
> doing a simple formatted read from buffer.
> Any suggestions?

(buffer-substring ...)

(with-current-buffer ".emacs"
  (buffer-substring-no-properties (point-min) (point-max)) )


underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]