From: Hugo Mezarina <gnulinux0@aim.com>
To: help-gnu-emacs@gnu.org
Subject: How do i run independent commands on the same defun?
Date: Sun, 22 Jun 2008 12:54:29 -0300 [thread overview]
Message-ID: <485E75B5.5060003@aim.com> (raw)
See... I want to run independent commads on the same defun...
I want to write a function to do this:
copy a region of the current buffer
generete a new buffer
paste that region in that new buffer
sort the fields of the new region
I want to do this inside of the body of a function. I'd like to know if
there is a function like the one a propose on the next lines:
eval-next-lines
(defun copy-and-sort-in-newbuff (original-buff field-name)
(eval-next-lines
(generate-new-buffer (concat original-buff "-" field-name))
(set-buffer original-buff)
(copy-region-as-kill (point-min) (point-max))
(set-buffer (concat original-buff "-" field_name))
(yank)
(sort-fields -1 (point-min)(point-max))
)
)
If there is another way to do this... plesase let me know...
I know it is rookie problem...but it is my current state on this field...
I appreciate your help on this!
Thank you.
Hugo
next reply other threads:[~2008-06-22 15:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-22 15:54 Hugo Mezarina [this message]
2008-06-22 17:33 ` How do i run independent commands on the same defun? Lennart Borgman (gmail)
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=485E75B5.5060003@aim.com \
--to=gnulinux0@aim.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).