[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Output in Emacs
From: |
Barry Margolin |
Subject: |
Re: Output in Emacs |
Date: |
Mon, 03 Nov 2003 22:25:31 GMT |
In article <mailman.3057.1067896989.21628.help-gnu-emacs@gnu.org>,
Johannes Quint <johannes.quint@web.de> wrote:
>and how to READ the contents of a buffer-line and then apply a function
>to it?
(defun apply-function-to-current-line (func)
(let ((string
(save-excursion
(beginning-of-line)
(let ((start (point)))
(end-of-line)
(buffer-substring start (point))))))
(funcall func string)))
--
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
- Output in Emacs, Dirk Joos, 2003/11/02
- Re: Output in Emacs,
Barry Margolin <=