🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189261

Line oriented commands?

#189261
From: Frank Peters
Date: Fri, 22 Mar 1991 06:43
28 lines
1776 bytes
I was wondering if anyone has written lisp code for gnu emacs that
allows one to specify a range of lines for a region command to operate
on?  Something that provides the same sort of functionality as (cough
cough) vi.

I don't want to set off a new round of editor wars.  The one thing I
miss in emacs is the ability to say things like:

     run this command on lines 5 through 37
     run this command on lines from the beginning of the file to here
     run this command on lines from here to 47
     run this command from mark a to mark b

and so on.  I know how to do this with goto-lines and such.  What I'm
hoping to find is a function that automates the process somewhat.
Unfortunately I utterly lack the lisp skills to write this myself.

This probably isn't a capability in much demand by emacs users but 6
years of editing with line editors and vi have gotten me extremely
used to having this.

Thanks in advance for any pointers.

Frank

--
Frank Peters   Internet:  fwp1@CC.MsState.Edu         Bitnet:  FWP1@MsState
               Phone:     (601)325-2942               FAX:     (601)325-8921
Technical Details
Message-ID: <FWP1.91Mar22004323@Jester.CC.MsState.Edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!uakari.primate.wisc.edu!ra!Ra.MsState.Edu!fwp1

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,6e991245ce22b1bb,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-03-22 19:13:26 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!uakari.primate.wisc.edu!ra!Ra.MsState.Edu!fwp1
From: fwp1@CC.MsState.Edu (Frank Peters)
Newsgroups: gnu.emacs.help
Subject: Line oriented commands?
Message-ID: <FWP1.91Mar22004323@Jester.CC.MsState.Edu>
Date: 22 Mar 91 06:43:23 GMT
Sender: usenet@ra.MsState.Edu
Distribution: gnu
Organization: Computing Center, Mississippi State University
Lines: 28
Nntp-Posting-Host: jester.cc.msstate.edu