|
|
Newsgroups: gnu.emacs.help
From: bar...@think.com (Barry Margolin)
Date: 1 Oct 1992 09:19:56 GMT
Local: Thurs, Oct 1 1992 9:19 am
Subject: Re: SUMMARY - repeating a macro X times
In article <EJH.92Sep30164...@khonshu.colorado.edu> e...@khonshu.colorado.edu (Edward J. Hartnett) writes:
>> Yes, but the problem was I couldn't find the way to give a repeat The Glossary section in the Emacs manual has an entry for "Numeric >> count! (Now I know, of course). But where is that in the manual? I >> tried help for repeat, count, repeat count, numeric argument, >> argument, numberic, and couldn't think of anything else. Argument" which has a cross-reference to the "Arguments" section of the manual that describes how to supply arguments. In other words, I found out by typing: C-h i { enter Info } bar...@think.com {uunet,harvard}!think!barmar You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: gnu.emacs.help
From: co...@sdf.lonestar.ORG (Corey Carroll)
Date: Thu, 1 Oct 1992 08:14:51 GMT
Local: Thurs, Oct 1 1992 8:14 am
Subject: help
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: gnu.emacs.help
From: ke...@traffic.den.mmc.com (Kevin Rodgers)
Date: 1 Oct 92 15:19:32 GMT
Local: Thurs, Oct 1 1992 3:19 pm
Subject: Re: filtering output from shell
In article <GARY.92Sep30160...@strident.think.com> g...@think.com (Gary Sabot) writes: I rewrote telnet-filter in a file called telnet-filter.el in a directory >I'm running telnet in shell mode to talk to a balky computer that insists >Does anyone have code fragment that shows how I can filter some of this in my load-path, and put this in my ~/.emacs: (autoload 'telnet "telnet-filter" Here's my telnet-filter.el: ;;;; telnet-filter.el ;;;; Delete unprintable characters from telnet output. ;; Advertise provided feature: ;; Load telnet: ;; Options: (defvar telnet-filter-regexp "[^\t\n -~]" ; all unprintable characters (make-variable-buffer-local 'telnet-filter-regexp) ;; Modify the process output filter: (defun telnet-filter (proc string) You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: gnu.emacs.help
From: ra...@cs.cornell.edu (T. V. Raman)
Date: Thu, 1 Oct 1992 17:02:19 GMT
Local: Thurs, Oct 1 1992 5:02 pm
Subject: Killing inferior lisp buffer: Make emacs confirm: How?
The summary and keywords say it all. I am running ilisp and have lucid How do I prevent the *lucid* buffer getting killed accidentally? Of course I could kluge it so that the *lucid* buffer always looks as Thanks, --Raman You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: gnu.emacs.help
From: da...@thymus.synaptics.COM (Dave Gillespie)
Date: Thu, 1 Oct 1992 17:42:00 GMT
Subject: Re: position function?
Steven L. Smith writes: and Barry Margolin replies with some Lisp code: > Is there a "position" (cl) function for GNU emacs or something > similar? > (defun position (object list) While this will certainly do the job, you can do the job much more > (let ((i 0) > (found nil)) > (while (not (or found (null list))) > ... simply, as well as more efficiently, using "length" and "memq". Remember, "memq" (like to Common Lisp's "member") returns the tail of the list starting at the found item: (defun position (object list) It's true that this version traverses part of the list twice in -- Dave You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: gnu.emacs.help
From: bar...@think.com (Barry Margolin)
Date: 2 Oct 1992 21:08:41 GMT
Local: Fri, Oct 2 1992 9:08 pm
Subject: Re: position function?
In article <9210020742.AA01...@thymus.synaptics> da...@synaptics.com writes: I actually thought of this, but didn't think it was worth posting (see >While this will certainly do the job, you can do the job much more >simply, as well as more efficiently, using "length" and "memq". below). >(defun position (object list) That should be > (let ((found (memq object list))) > (and found (- (length list) found)))) (defun position (object list) >It's true that this version traverses part of the list twice in That was the factor that I didn't take into account. I'm too used to real >the two "length" calls, but that's insignificant next to the fact >that "length" is a primitive written in C rather than a >byte-compiled loop. Lisps, where the loop will be compiled into machine code, so the performance difference between built-in and user-written functions is less significant. -- Barry Margolin System Manager, Thinking Machines Corp. bar...@think.com {uunet,harvard}!think!barmar You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: gnu.emacs.help
From: da...@thymus.synaptics.COM (Dave Gillespie)
Date: Fri, 2 Oct 1992 15:05:27 GMT
Local: Fri, Oct 2 1992 3:05 pm
Subject: Re: position function?
Barry Margolin writes: Oops---sorry about that! >> (and found (- (length list) found)))) > That should be > (and found (- (length list) (length found))))) > I'm too used to real It would not be all that hard to compile Emacs Lisp into C, and then > Lisps, where the loop will be compiled into machine code, so the > performance difference between built-in and user-written functions is less > significant. into machine code. (Well, okay, pretty hard, but not *that* hard. :-) I looked into this once, but without some kind of dynamic linker in Emacs the scheme is just too much trouble to use. -- Dave You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: gnu.emacs.help
From: j...@bigbird.bu.edu (Joe Wells)
Date: 7 Oct 92 17:48:55 GMT
Local: Wed, Oct 7 1992 5:48 pm
Subject: Re: position function?
In article <BvE9Lv....@news.larc.nasa.gov> sm...@icat.larc.nasa.gov (Steven L. Smith) writes:
Is there a "position" (cl) function for GNU emacs or something similar? No, and don't write one. If you need to use such a function, name it This is very important because it will prevent your code from clashing What I want to do is find the position of a symbol in a list of (defun xxx-symbol-position (symbol list) Also, what dialect of lisp does GNU emacs run? GNU Emacs Lisp. -- Joe Wells <j...@cs.bu.edu> You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: gnu.emacs.help, comp.emacs, gnu.emacs.gnus, gnu.emacs.vm.bug
From: orl...@surya4.cern.ch (Jean Orloff)
Date: Fri, 2 Oct 1992 10:01:39 GMT
Local: Fri, Oct 2 1992 10:01 am
Subject: Re: Changing to Unix Mailbox?
Harald> I'm now able to sort out my incoming mails. But I'd like to be
Harald> able to do the same with the outgoing ones. I'm currently Harald> using the FCC header to make a file-copy of the outgoing Harald> mails. Harald> Anyone know a smart method to make my outgoing mails in Unix I have included -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: gnu.emacs.help, comp.emacs, gnu.emacs.gnus, gnu.emacs.vm.bug
From: orl...@surya4.cern.ch (Jean Orloff)
Date: Fri, 2 Oct 1992 11:14:52 GMT
Local: Fri, Oct 2 1992 11:14 am
Subject: Re: Changing to Unix Mailbox?
Harald> I'm now able to sort out my incoming mails. But I'd like to be
Harald> able to do the same with the outgoing ones. I'm currently Harald> using the FCC header to make a file-copy of the outgoing Harald> mails. Harald> Anyone know a smart method to make my outgoing mails in Unix I have included -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2010 Google |