|
From: | Kevin Rodgers |
Subject: | Re: Output in Emacs |
Date: | Mon, 03 Nov 2003 16:38:44 -0700 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Barry Margolin wrote:
(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)))
It's even easier now: (funcall func (buffer-substring (line-beginning-position) (line-end-position))) -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |