Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-spur2.glorb.com!homer.glorb.com!.POSTED!not-for-mail From: Headless /body Newsgroups: comp.unix.shell Subject: Re: lseek(2) operators in shells Date: Wed, 14 Mar 2012 22:49:50 -0400 Organization: Glorb Internet Services, http://www.glorb.com Lines: 15 Message-ID: <87mx7io9wx.fsf@NotReallyAn.example.com> References: <55e8c993-a9ca-4e30-a85c-18430f2eb025@db5g2000vbb.googlegroups.com> <86pqcfbvud.fsf@gray.siamics.net> <0844dc91-9a86-4c72-be7f-39fd85fc1f0d@t16g2000yqt.googlegroups.com> <86pqcf86x1.fsf_-_@gray.siamics.net> <20120314171105.GA6799@yahoo.fr> <20120314110444.361@kylheku.com> <20120314124250.550@kylheku.com> <20120314173251.674@kylheku.com> NNTP-Posting-Host: 5qTuZfkz82Mhy+cKT+Hz+A.user.posting2.glorb.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@glorb.com NNTP-Posting-Date: Thu, 15 Mar 2012 02:49:50 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Notice: Scanned by Mr. Bill Xref: csiph.com comp.unix.shell:4482 Kaz Kylheku writes: > On 2012-03-15, Mirko K. wrote: >> My point was, that turning "lseek(2)" into "man 2 lseek" requires >> unnecessary manual editing. Typing "man " and then retype or >> Copy/Paste "lseek[2]" (or whatever) after it would be less hassle. > > Put your cursor on a word in Vim and type K. That looks it up in man. > Type 3K and it looks it up with man 3. (Overridable defaults, of course, > as well as what constitutes a word.) Emacs has a similar function, but it looks at the number as well to fetch the proper man page. So using the read(3) is both useful and brief, and the best possible representation for an Emacs user.