seindal@freja.dk (Rene' Seindal) (08/26/88)
How do I insert one hundred zeroes in a buffer? For any non-digit character I just do "C-u 1 0 0 <ch>", but of course, this does not work for digits. How can it be done, less of typing 100 zeroes manually. Naturally, I could say "C-x ( 0 C-u 9 9 C-x )" but what if I just spend half an hour making the keyboard macro of a lifetime (You know -- one of those thing you don't save). I know it is a silly question. I just wondered. BTW. I am using Gnu 18.50. Rene' Seindal, U. of Copenhagen, Denmark. (seindal@diku.dk)
earleh@eleazar.dartmouth.edu (Earle R. Horton) (08/27/88)
In article <3999@freja.dk> seindal@freja.dk (Rene' Seindal) writes: > >How do I insert one hundred zeroes in a buffer? ... >I know it is a silly question. I just wondered. ESC 1 0 0 C-q 0 6 0 C-q [0-7][0-7][0-7] lets you insert octal characters into the buffer. To get 100 sevens, type ESC 100 C-q 0 6 7. To get any of the other digits between zero and seven, interpolate. Earle R. Horton.
dmjones@athena.mit.edu (David M. Jones) (08/27/88)
In article <9940@dartvax.Dartmouth.EDU> earleh@eleazar.dartmouth.edu (Earle R. Horton) writes: >In article <3999@freja.dk> seindal@freja.dk (Rene' Seindal) writes: >>How do I insert one hundred zeroes in a buffer? > >ESC 1 0 0 C-q 0 6 0 Of course, if you don't happen to remember octal codes for the digits, you can always do ESC ESC (insert-char ?0 100) Of course, it has the disadvantage of taking more keystrokes. David Jones.
jgy@hropus.UUCP (John Young) (08/27/88)
> How do I insert one hundred zeroes in a buffer? For any non-digit character I > just do "C-u 1 0 0 <ch>", but of course, this does not work for digits. How > can it be done, less of typing 100 zeroes manually. > Rene' Seindal, U. of Copenhagen, Denmark. (seindal@diku.dk) Try "C-u 1 0 0 C-q 0 6 0" The ^Q lets you follow with the 3 digit octal code of the character you want. Not to clean but........
wayne@dsndata.uucp (Wayne Schlitt) (08/28/88)
try "C-u 1 0 0 C-q 0 6 0"... gross, but it works... -wayne
geigel@soleil.UUCP (jogle) (08/30/88)
In article <3999@freja.dk>, seindal@freja.dk (Rene' Seindal) writes: > > How do I insert one hundred zeroes in a buffer? For any non-digit character I > just do "C-u 1 0 0 <ch>", but of course, this does not work for digits. How > can it be done, less of typing 100 zeroes manually. One way you can do it is by typing (C-u 1 0 0 C-q 0 6 0) with 060 being the octal ascii code for the digit "0". This requires of course that you have the ascii value for the digits at the top of your head. This is A way to do it, not necessarily the BEST way. -- jogle !rutgers!soleil!geigel
davidsen@steinmetz.ge.com (William E. Davidsen Jr) (08/30/88)
In article <3999@freja.dk> seindal@freja.dk (Rene' Seindal) writes: | | How do I insert one hundred zeroes in a buffer? For any non-digit character I | just do "C-u 1 0 0 <ch>", but of course, this does not work for digits. How | can it be done, less of typing 100 zeroes manually. You should be able to use the "quote" key between the repeat count and the digit to be repeated. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me
mrd@sun.soe.clarkson.edu (Mike DeCorte) (08/31/88)
To add variety ^X( 0 ^X) M-100 ^Xe -- Michael DeCorte // (315)268-2292 // P.O. Box 652, Potsdam, NY 13676 Internet mrd@sun.soe.clarkson.edu // Bitnet mrd@clutx.bitnet ------------------------------------------------------------ Clarkson Archiver Server archiver-server@sun.soe.clarkson.edu archive-server%sun.soe.clarkson.edu@omnigate.bitnet dumb1!dumb2!dumb3!smart!sun.soe.clarkson.edu!archive-server ------------------------------------------------------------
duane@cg-atla.UUCP (Andrew Duane) (08/31/88)
In article <280@hropus.UUCP>, jgy@hropus.UUCP (John Young) writes: > > How do I insert one hundred zeroes in a buffer? For any non-digit character I > > just do "C-u 1 0 0 <ch>", but of course, this does not work for digits. > > Try "C-u 1 0 0 C-q 0 6 0" > The ^Q lets you follow with the 3 digit octal code of the character With C-q you need not type in the octal code. Try: C-u 1 0 0 C-q 0 Andrew L. Duane (JOT-7) w:(508)-658-5600 X5993 h:(603)-434-7934 Compugraphic Corp. decvax!cg-atla!duane 200 Ballardvale St. ulowell/ \laidback Wilmington, Mass. 01887 cbosgd!ima/ \cgeuro Mail Stop 200II-3-5S ism780c/ \wizvax Only my cat shares my opinions, and she's breaking in the new help.
jnp@daimi.UUCP (J|rgen N|rgaard) (08/31/88)
In article <12012@steinmetz.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: >In article <3999@freja.dk> seindal@freja.dk (Rene' Seindal) writes: >| >| How do I insert one hundred zeroes in a buffer? For any non-digit character >| (lines deleted) > > You should be able to use the "quote" key between the repeat count and >the digit to be repeated. Aha. (n)Ever tried ? Numerals _ARE_ special.
mitch@Stride.COM (Thomas Mitchell) (09/01/88)
In article <280@hropus.UUCP> jgy@hropus.UUCP (John Young) writes: >> How do I insert one hundred zeroes in a buffer? >> For any non-digit character I >> just do "C-u 1 0 0 <ch>", but of course, this does not work for digits. How >> can it be done, less of typing 100 zeroes manually. >Try "C-u 1 0 0 C-q 0 6 0" Not to clean but........ I always have trouble with octal so. I think these bindings are common. Define a quick keyboard macro ;;C-x(0C-x) Then set up a count (already have 1) ;;C-u99 Now the keyboard macro ;;C-xe Does save looking up octal ;-) -- Thomas P. Mitchell (mitch@stride1.Stride.COM) Phone: (702)322-6868 TWX: 910-395-6073 FAX: (702)322-7975 MicroSage Computer Systems Inc. Opinions expressed are probably mine.
seindal@freja.dk (Rene' Seindal) (09/01/88)
seindal@freja.dk (Rene' Seindal) writes: >How do I insert one hundred zeroes in a buffer? For any non-digit character I >just do "C-u 1 0 0 <ch>", but of course, this does not work for digits. How >can it be done, less of typing 100 zeroes manually. I have received almost a million letters about this, all saying the same. It appears that there are four ways to do this in GNU emacs. They are: 1. Type 100 zeroes. 2. Type ESC 1 0 0 C-q 0 6 0 3. Type ESC ESC (insert-char ?0 100) 4. Type C-x ( 0 ESC 99 C-x ) None of the solutions are very pleasing. Good thing for us the need seldom arises :-) Anyway, now there has been put so much effort in it: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Rene' Seindal, CS Dept., U. of Copenhagen, Denmark. (seindal@diku.dk)
mouse@mcgill-vision.UUCP (der Mouse) (09/09/88)
In article <1588@daimi.UUCP>, jnp@daimi.UUCP (J|rgen N|rgaard) writes: > In article <12012@steinmetz.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: >> In article <3999@freja.dk> seindal@freja.dk (Rene' Seindal) writes: >>> How do I insert one hundred zeroes in a buffer? >> You should be able to use the "quote" key between the repeat count >> and the digit to be repeated. > Aha. (n)Ever tried ? > Numerals _ARE_ special. This is *comp*.emacs, not *gnu*.emacs, though I must admit it sometimes does seem rather like the latter. In *our* emacs, ^U 1 0 0 ^Q 0 works just fine. Yes, I tried it. (Which emacs? A Gosling derivative.) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu
seanf@sco.COM (Sean Fagan) (09/11/88)
In article <1588@daimi.UUCP>, jnp@daimi.UUCP (J|rgen N|rgaard) writes: > In article <12012@steinmetz.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: >> In article <3999@freja.dk> seindal@freja.dk (Rene' Seindal) writes: >>> How do I insert one hundred zeroes in a buffer? >> You should be able to use the "quote" key between the repeat count >> and the digit to be repeated. > Aha. (n)Ever tried ? > Numerals _ARE_ special. It works on my machine, running GNU emacs 18.5[12]. I must admit, however, that having a Meta key helps some...(a '386 running XENIX [surprise, surprise, right?], with the mapkey file someone posted, modified to work with the Latest and Greatest release of XENIX. I'm saying all of this for line-filler stuff). I never really liked the ESC-as-pseudo-Meta, anyway. -- Sean Eric Fagan | "Joy is in the ears that hear, not in the mouth that speaks" seanf@sco.UUCP | -- Saltheart Foamfollower (S. R. Donaldson) (408) 458-1422 | Any opinions expressed are my own, not my employers'.
davidsen@steinmetz.ge.com (William E. Davidsen Jr) (09/17/88)
|In article <1588@daimi.UUCP>, jnp@daimi.UUCP (J|rgen N|rgaard) writes: |> In article <12012@steinmetz.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: |>> In article <3999@freja.dk> seindal@freja.dk (Rene' Seindal) writes: |>>> How do I insert one hundred zeroes in a buffer? |>> You should be able to use the "quote" key between the repeat count |>> and the digit to be repeated. |> Aha. (n)Ever tried ? |> Numerals _ARE_ special. You must be using some brain damaged version of emacs which doesn't have the quote function implemented (correctly). 1) yes I tried: 00000000000000000000000000000000000000000000000000 2) obviously you are one of those people who responds to an attempt at help with a flame if you can't make the answer work. I shall try to never again offer any suggestions on solving your problems. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me
dmjones@athena.mit.edu (David M. Jones) (09/18/88)
In article <12151@steinmetz.ge.com> davidsen@kbsvax.steinmetz.UUCP (William E. Davidsen Jr) writes: >|In article <1588@daimi.UUCP>, jnp@daimi.UUCP (J|rgen N|rgaard) writes: >|> Numerals _ARE_ special. > You must be using some brain damaged version of emacs which doesn't >have the quote function implemented (correctly). Actually, treating numerals specially _is_ the correct implementation -- if you are using GNU emacs. The documentation for quoted-insert reads: Read next input character and insert it. Useful for inserting control characters. You may also type up to 3 octal digits, to insert a character with that code. Perhaps misunderstandings such as this could be avoided in the future if posters would identify the flavor of emacs being referred to. David M. Jones.