Article View: comp.emacs
Article #3409Re: EMACS ??? <---> VI !!!
From: Alan M. Carroll
Date: Thu, 30 May 1991 15:32
Date: Thu, 30 May 1991 15:32
40 lines
2119 bytes
2119 bytes
In article <1991May30.124131.4679@bronze.ucs.indiana.edu>, ury@mosque.huji.ac.il (ury segal) writes:
>
> Look. EMACS is too complex. I tryed to find How to get the current line
> number for 1/4 hour And I couldn't. SO I USE VI !
Way cool dude. Personally, I use vi _and_ Emacs*. This is one of the
great things about this country, that we have editor-ial freedom, to
use whatever editor we choose.
> (By the way, How you get the current line number ?)
In Epoch, you can put the following in your startup file, and holding
down shift and clicking the left mouse button on the line will tell
you the line number.
(defun amc:mouse-buffer-line (marg)
"Show the line number and buffer of the mouse EVENT"
;; marg is (point buffer window screen)
;; Pop over to the clicked buffer
(save-excursion (set-buffer (cadr marg))
;; Figure out how far down the mouse point is
(let ((n (count-lines (point-min) (car marg))))
;; display it. Include the buffer name for good measure.
(message (format "Line %d in %s" n (buffer-name (cadr marg))))
)))
;; Bind shift left down to display the line number.
(global-set-mouse mouse-left mouse-shift 'amc:mouse-buffer-line)
*Epoch, really, but it's effectively the same thing. In fact, I was a
dedicated vi user until I wrote Epoch. Yes, it's true, Epoch 1 and 2
were developed using vi. You heard it here first.
--
Alan M. Carroll <-- Another casualty of applied metaphysics
Epoch Development Team
Urbana Il. "I hate shopping with the reality-impaired" - Susan
Technical Details
Message-ID:
<1991May30.153201.3082@m.cs.uiuc.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!m.cs.uiuc.edu!uiucdcs!carrollReferences:
<1991May30.124131.4679@bronze.ucs.indiana.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!m.cs.uiuc.edu!uiucdcs!carroll From: carroll@cs.uiuc.edu (Alan M. Carroll) Newsgroups: comp.emacs Subject: Re: EMACS ??? <---> VI !!! Message-ID: <1991May30.153201.3082@m.cs.uiuc.edu> Date: 30 May 91 15:32:01 GMT References: <1991May30.124131.4679@bronze.ucs.indiana.edu> Sender: news@m.cs.uiuc.edu (News Database (admin-Mike Schwager)) Organization: Technophiles Inc. - Engineers with Attitude Lines: 40 Nntp-Posting-Host: ash.cs.uiuc.edu