Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!ucsdhub!sdcsvax!ucsd!rutgers!gatech!bloom-beacon!ATHENA.MIT.EDU!kit From: kit@ATHENA.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: More Text Widget Questions Message-ID: <8812231739.AA05367@DORA.MIT.EDU> Date: 23 Dec 88 17:39:09 GMT References: <8812222359.AA01399@thelake.cray.com> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 25 > Question 1: I would like to select a line with the mouse, > and figure out what line number that is in the file. How? > Question 2: Related to number 1, given a line number in the > file, how do I display that part of the file, ie. linenumber -n > to linenumber +n? > Question 3: How do I change the source file name? I want to > display a different file without exiting. I don't want to > change (edit) the current file, I want to display a different file. I shudder to suggest this since the code for xmh is so ugly, but... xmh does all of these things, perhaps you should take a look at it, it is on the X tape - clients/xmh. Chris D. Peterson MIT X Consortium / Project Athena Net: kit@athena.mit.edu Phone: (617) 253 - 1326 USMail: MIT - Room E40-342C 77 Massachusetts Ave. Cambridge, MA 02139