unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Writing text to a dedicated buffer
@ 2021-05-02 12:48 Christopher Dimech
  2021-05-02 13:05 ` Christopher Dimech
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Christopher Dimech @ 2021-05-02 12:48 UTC (permalink / raw)
  To: Help Gnu Emacs

I am writing text to a package dedicated buffer.  Is this the way to
go about doing that.  Or are there neater ways?


(defun gungadin-guidance-message ()
   "Displays embedded rudimentary help for gungadin.
Gungadin forms part of Behistun, a Gnu Package."

   (let ((out-buffer (get-buffer-create "*Gungadin*")))
     (with-current-buffer out-buffer
       (insert "\nGungadin\n\n")
       (insert "Gungadin is part of Behistun, a Gnu Package.\n\n")
       (insert "Gungadin 1.0 of 2017-05-02")
       (insert "\nCopyright (C) 2017 Christopher Dimech\n")
       (insert "\nAuthor: Christopher Dimech")

       (insert gungadin-guidance-message)
       (pop-to-buffer out-buffer))) )




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-05-04 13:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-02 12:48 Writing text to a dedicated buffer Christopher Dimech
2021-05-02 13:05 ` Christopher Dimech
2021-05-02 17:08   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-02 13:25 ` Christopher Dimech
2021-05-02 14:23   ` Joost Kremers
2021-05-02 17:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-04 13:07 ` Filipp Gunbin

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