Newsgroups: fj.editor.emacs
Path: galaxy.trc.rwcp.or.jp!jaist-news!cs.titech!nirvana.cs.titech!wnoc-tyo-news!sranha!tsran3!tsrasv!kidachi
From: kidachi@tsras1.sra.CO.JP (Hironori -HIRO- Kidachi)
Subject: Re: Q: current line no
In-Reply-To: onono@fuka.info.waseda.ac.jp's message of 27 Jan 1994 10:45:47 GMT
Nntp-Posting-Host: tsras1
References: <YOSHINO.94Jan27171504@penque.ph.tsukuba.ac.jp>
	<ONONO.94Jan27194547@akira.fuka.info.waseda.ac.jp>
Sender: news@tsran3.sra.co.jp (USENET News)
Organization: Software Research Associates, Inc., Japan
Date: Fri, 28 Jan 1994 01:36:38 GMT
Message-ID: <KIDACHI.94Jan28103638@tsras1.sra.CO.JP>
Distribution: fj
Lines: 32
Xref: galaxy.trc.rwcp.or.jp fj.editor.emacs:4376
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.editor.emacs&nb=4376&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.


In article <ONONO.94Jan27194547@akira.fuka.info.waseda.ac.jp>
onono@fuka.info.waseda.ac.jp (ONO Kouichi) writes:

>>    In article <YOSHINO.94Jan27171504@penque.ph.tsukuba.ac.jp>,
>>    yoshino@penque.ph.tsukuba.ac.jp (Hajime Yoshino) wrote:
>> 
>>    > Emacs $B$G(B $B8=:_$N%+!<%=%k0LCV$,2?9T!J2?Ns!KL\$K$"$k$+(B
>>    > $B$rCN$j$?$$$H$-$I$&$9$l$PNI$$$G$7$g$&!)(B
>> 
>>    C-x l (count-lines-page) $B$G$7$g$&$+!#$"$k$$$O(B
>>    C-x = (what-cursor-position) $B$F$N$b$"$j$^$9!#(B

$B;d$O$3$&$$$&$b$N$r;H$C$F$$$^$9!#(B

-----8<----------------------8<-----
(defun show-place ()
  "Display the cursor's current line and column"
  (interactive)
  (save-restriction
    (widen)
    (save-excursion
      (message "Line %d, Column %d"
       (1+ (count-lines 1 (point))) (current-column)))))
-----8<----------------------8<-----

~/.emacs $B$KDI2C$7$F(B M-x show-place $B$H$9$k$H(B
minibuffer $B$K(B Line XX, Column YY $B$HI=<($5$l$^$9!#(B
--
---
 Hironori Kidachi ( E-mail: kidachi@tsrasv.sra.co.jp )
 Software Research Associates TOHOKU. Inc., Japan
