Article View: gnu.emacs.help
Article #188787Re: next-line question
From: Randal L. Schwartz
Date: Tue, 09 Jul 1991 18:22
Date: Tue, 09 Jul 1991 18:22
23 lines
1622 bytes
1622 bytes
In article <1991Jul9.172453.26795@beaver.cs.washington.edu>, pauld@stowe (Paul Barton-Davis) writes: | This is "expensive", but works. I'd like a "cheaper" way, but I'm sure | one will show up ... | | (defun only-next-line (&optional line) | (interactive "p") | (if (= 1 (save-excursion (forward-line 1))) | (beep) | (next-line line))) Stolen from some other net article: (defun next-line (arg) (interactive "p") (previous-line (- arg)) ; cheating (:-) nil) Just another Elisp hacker, -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Intel: putting the 'backward' in 'backward compatible'..."====/
Technical Details
Message-ID:
<1991Jul9.182229.26784@iWarp.intel.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!iWarp.intel.com!newsReferences:
<3845@charon.cwi.nl> <1991Jul9.172453.26795@beaver.cs.washington.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,b8a9d8f033088283 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-07-09 15:00:06 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!iWarp.intel.com!news From: merlyn@iWarp.intel.com (Randal L. Schwartz) Newsgroups: gnu.emacs.help Subject: Re: next-line question Message-ID: <1991Jul9.182229.26784@iWarp.intel.com> Date: 9 Jul 91 18:22:29 GMT References: <3845@charon.cwi.nl> <1991Jul9.172453.26795@beaver.cs.washington.edu> Sender: news@iWarp.intel.com Reply-To: merlyn@iWarp.intel.com (Randal L. Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 23 In-Reply-To: pauld@stowe.cs.washington.edu (Paul Barton-Davis) Nntp-Posting-Host: se.iwarp.intel.com