HDTenEightyP/NetNews huggingface dataset:
From: nickel@cs.tu-berlin.de (Juergen Nickelsen)
Subject: Re: Equivalents to vi's H, M, L Commands?
Reply-To: nickel@cs.tu-berlin.de
Organization: STONE Project, Technical University of Berlin, Germany
Date: Thu, 10 Sep 1992 16:34:38 GMT

In article <1992Sep09.183531.5615@bnr.ca> mac@crchh570.BNR.CA (Michael
Campbell) writes:

> Does anyone know of emacs functions that perform a similar function to 
> the vi commands H, M, and L (Home, Middle, and Last)? These functions 
> move the cursor to the top of the screen (Home), the middle line of the 
> screen (Middle), and the last line of the screen (Last). They do not 
> effect vi's position in the file - they simply allow you to move the 
> cursor around the currently displayed screen. Please post any replies
> to this newsgroup. Thanks!

Two solutions have already been posted -- both unnecessary, because
this functionality is already available in Emacs. Look at the
documentation to the function "recenter", usually bound to C-l:

    Center point in window and redisplay screen.  With ARG, put point
    on line ARG.  The desired position of point is always relative to
    the current window.  Just C-u as prefix means put point in the
    center of the screen.  No arg (i.e., it is nil) erases the entire
    screen and then redraws with point in the center.

So  C-l is equivalent to M
M-- C-l is equivalent to L
M-0 C-l is equivalent to H.

--
Juergen Nickelsen
From: pedersen@seas.smu.edu (Ted Pedersen)
Newsgroups: gnu.emacs.help
Subject: Tandy 1000 SX trouble
Date: 11 Sep 92 20:43:29 GMT
Organization: SMU School Of Engineering and Applied Science

Here's a problem that a student of mine is having...

The student is logged onto our Unix system from his home. He is using
a Tandy 1000 SX and is running MCVT100 emulation mode (I hope that
makes sense...) and has the following problem while using emacs.

When he hits a 7 on his number pad the key functions as a home key.
When he hits a Shift 7 (to get a \) nothing happens. 

Any ideas about what he can do. He has not remapped his keys using
.emacs in any way at this time...

Thanks for any help.
Ted Pedersen
Newsgroups: gnu.emacs.help
From: nickel@cs.tu-berlin.DE (Juergen Nickelsen)
Subject: Re: gc-cons-threshold values
Followup-To: gnu.emacs.help
Reply-To: nickel@cs.tu-berlin.de
Organization: STONE Project, Technical University of Berlin, Germany
Date: Tue, 15 Sep 1992 17:23:53 GMT

(I am crossposting this to gnu.emacs.help since it is more a "help"
than a "bug" topic.)

In article <SCOTTM.92Sep14123426@intime.intime.com>
scottm@intime.INTime.COM (Scott Michel) writes:

> What are the consequences of setting gc-cons-threshold, and secondly,
> what are good values. I know the immediate consequences are that garbage
> collection occurs less often, and probably takes longer to perform. Other
> than those two, what else is there? What are good values?

Usually I feel perfectly comfortable with the default value (100000).
But in my ~/.emacs some large packages are loaded (dired, ange-ftp,
completion), such that with a gc-cons-threshold of 100000, three
garbage collections would occur during the load. The resulting
slow-down of Emacs' startup is significant (*some* seconds even on a
SPARCstation 2). To avoid this, I temporarily increase the value of
gc-cons-threshold:


(let ((gc-cons-threshold 1000000))

  .
  .    (several startup initializations)
  .

  ;; files to be loaded
  (require 'dired)
  (require 'ange-ftp)
  (load "time" nil t)
  (load "uncompress" nil t)
  (load "completion" nil t)
  (initialize-completions)
  (load (concat term-file-prefix (getenv "TERM")) t t nil)

  .
  .    (other initializations)
  .
      )

This sped up the startup phase by a factor of 3.

--
Juergen Nickelsen

Newsgroups: gnu.emacs.help
From: keith@aisg.COM (Keith B. Kee {AISG} )
Subject: set environment variables within emacs
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Fri, 11 Sep 1992 00:54:34 GMT

How can I do a setenv operation in emacs? For instance, I want to do
a "setenv LD_OPTIONS '-y_test' " before I compile a program.

Thanks.

			-Keith

Newsgroups: gnu.emacs.help
From: Hamish.Macdonald@x400gate.bnr.ca (Hamish Macdonald)
Subject: Re: Equivalents to vi's H, M, L Commands?
Organization: Bell Northern Research
	<1992Sep10.135545.26512@bmerh85.bnr.ca>
	<1992Sep10.154353.28044@sunb10.cs.uiuc.edu>
Date: Thu, 10 Sep 92 16:45:25 GMT

>>>>> On Thu, 10 Sep 1992 15:43:53 GMT,
>>>>> In message <1992Sep10.154353.28044@sunb10.cs.uiuc.edu>,
>>>>> epstein@sparc9.cs.uiuc.edu (Milt Epstein) wrote:

Milt> Uh, am I missing something, i.e. is there any reason these
Milt> things need to be so complicated?  Won't the following work just
Milt> fine:

Milt>      home (or top):     C-u 0 C-l
Milt>      middle:            C-u C-l (or just C-l)
Milt>      last (or bottom):  C-u -1 C-l 

Milt> C-l is by default bound to recenter, which optionally takes a
Milt> prefix argument that indicates which window line to place the
Milt> current line at.  Negative numbers count up from the bottom.

These change what is displayed in the window, rather than just moving
point as Michael wanted.

Milt> (I might as well point out the "inverse" function,
Milt> move-to-window-line, which similarly takes prefix arguments, and
Milt> which isn't by default bound to any key.)

Ah.... I should have found this.  top-of-window, bottom-of-window and
middle-of-window can easily be rewritten to take advantage of this
function.

You could use the prefix argument to move-to-window-line, but having
separate commands make it easy to bind keys to the different commands.

(defun top-of-window ()
    "move point to first line of window"
    (interactive)
    (move-to-window-line 0))

(defun bottom-of-window ()
    "move point to last line of window"
    (interactive)
    (move-to-window-line -1))

(defun middle-of-window ()
    "move point to middle line of window"
    (interactive)
    (move-to-window-line nil))

This is my last posting on this subject :-)
Newsgroups: gnu.emacs.help
From: keithh@bnr.ca (Keith Hanlan)
Subject: Re: Need help with TABith TABS & Is there a PASCAL Mode?
Keywords: emacs, TABS, PASCAL
Organization: Bell-Northern Research Ltd., Ottawa
Date: Thu, 10 Sep 1992 00:27:25 GMT

In article <1992Sep09.171648.3781@bnr.ca> mac@bnr.ca (Michael Campbell) writes:
>Baji (and anyone else interested), 
>
>To force emacs to do indentation with spaces only, I have the
>following in my .emacs:
>
>  (setq indent-tabs-mode nil)

I am just learning emacs now but as soon as my proficiency picks
up a bit here is what I am going to do:
o set tab-width to whatever I prefer.

o hook into reading in a file a function which automatically
  tabifies the file.  This means assuming that the file was
  written with a tabstop of eight.

o hook into writing out a file (write-file-hooks) a function 
  which, depending on the type of file, either:
  o untabifies the file completely or
  o untabifies the file, resets the tab-width to eight, and
    then tabifies the file again.

And then I'll never have to worry about tab-widths again!

Please feel free to shoot holes in my plan or give me an
off-the-shelf solution.

Regards,
From: keith@aisg.COM (Keith B. Kee {AISG} )
Newsgroups: gnu.emacs.help
Subject: Turning off beeping on a terminal
Date: 11 Sep 92 13:23:30 GMT
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu

Hi:
	How do I turn off the beeping on my vt100 terminal inside emacs 
	without fidling with the termcap entry?

	Thanks
Newsgroups: gnu.emacs.help
From: lele@itnsg1.cineca.it (Lele Gaifax)
Subject: Trying to use bison-mode... HELP
Organization: Laboratorio di Fisica Computazionale, INFM. Trento Italia
Date: Fri, 11 Sep 1992 14:03:40 GMT

I'm trying to use bison-mode.el by Brandon S. Allbery, found in the Elisp
Archive, with emacs 18.58 on a NeXTstation

Whenever I try to insert a code-block, Emacs says 
"Wrong type argument: integer-or-marker-p, nil" in the minibuffer. 
This happens also with a very simple Bison grammar, like the following:

%%

foo : TERMINAL '.' TERMINAL
      {

When I insert the '{' (it is binded to 'bison-insert-edit-code-block') I got
the mentioned message.

I tried to find out where this function is called, but with no luck. 

Can anyone give me some hints? Are there other packages to edit Bison/YACC
grammars? What about a Flex/Lex mode?

thanks, lele.
-- 
Lele Gaifax - lele@itnsg1.cineca.it
Newsgroups: gnu.emacs.help
From: rens@lorax.shearson.com (Rens Troost)
Subject: Re: How do I set the variable 'vm-auto-folder-alist'
Reply-To: rens@shearson.com
Organization: Lehman Brothers
Date: Mon, 14 Sep 1992 12:02:57 GMT



In article <MEYER.92Sep14100153@ibsen.geomatic.no> meyer@geomatic.no (Harald Martens Meyer) writes:


   (Maybe an example or two...)

 Well, Here's mine:

  (setq vm-auto-folder-alist 
       '(
  	("From"
		    
	 ("^\\([^\@ ]+\\)" . (buffer-substring (match-beginning 1) (match-end 1) ))
	 )))

What this does is give me the user name (if it is a well-formatted
INET address) as the default folder. If you are at an oddly-configured
site, you might want to (setq vm-gargle-uucp t).

The documentation is a little confusing, and should probably provide
an examnple. It says:

	buffer.  You can use the match data from any `\( ... \)' grouping
	constructs in REGEXP along with the function buffer-substring
	to build a

-Rens


--
  __   ___  ,    __  
 /__) /__  /| / (    |  J. Laurens Troost    Lehman Brothers Technical Services
/  \ (___ / |/ __)   |  *Opinions expressed herein are mine. Mine, I tell you!*
-------------------------------------------------------------------------------
INET: rens@shearson.com        VOICE: (212) 464-3705        FAX: (212) 464-2040
Newsgroups: gnu.emacs.help,comp.mail.sendmail
From: scott@statsci.com (Scott Blachowicz)
Subject: sendmail.el: flags to /usr/lib/sendmail wrong?
Reply-To: scott@statsci.com
Organization: Statistical Sciences, Inc., Seattle, WA USA
Date: Fri, 11 Sep 1992 17:42:18 GMT

Our setup is as follows:
    -Emacs 18.55 and 18.58 (problem occurs with either).
    -Running Emacs on either Sun SPARC SunOS4.1.1 or HP9000/720 HP-UX 8.05.
     (mail gets through on the HP720, but not the SPARC)
    -There is a central mail server running on a Sun3 SunOS4.1.1 that is not
     being used to run Emacs.

When I send mail (C-x m: mail) to a particular user, I get a message back that
looks like this:

    Subject: returned mail for "| /usr/local/bin/filter"

    Mail error was: 554 <"| /usr/local/bin/filter">... Cannot mail directly to programs

    --- returned mail follows ---

He has a .forward file that runs the filter program from the elm distribution.

That was the entire message. Now, I changed 'sendmail-program to point at a
script of mine that saves the argument list, then execs the real
/usr/lib/sendmail, so it looks like it is being run like this:
    /usr/lib/sendmail -oi -t -f scott -oem -odb

As far as I know the sendmail.cf on that SPARC is Sun's "subsidiary machine"
.cf file.

Any clues as to what might need changing in the SPARC's sendmail.cf file? or
other ways to work around this?

Thanx,
--
Scott Blachowicz    Ph: 206/283-8802x240      USPS:  Statistical Sciences, Inc
                                                      1700 Westlake Ave N #500
scott@statsci.com / uunet!statsci!scott                Seattle, WA USA   98109
..or..     Scott.Blachowicz@seaslug.org
Newsgroups: gnu.emacs.help
From: TA2321S@acad.drake.edu (THE PENGUIN)
Subject: Help on mark command
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Mon, 7 Sep 1992 12:26:51 GMT

	To the list,
     I'm new to emacs so have patience.  Here is what I want to do:  select say
100 lines from a text file cut them and create another file and put 
those 100 lines into the new file.  But, I want to use the mark command to 
select the text.  I know I can do a C-u 100 C-k to kill that many lines.  But,
I want to be able to select the text with the mark command say put a mark here
at line number 200 with a C-@ command and then go 100 lines down and say C-@
again so that the region of text is marked off.  Then I can do a C-x C-f
to find the new file and then do a C-y command to yank back those 100 lines
and put them into the new file.  But the mark or C-@ command doesn't want to
put the second mark at the end of my region of text.  Help.
********************************************************************************
*  VAX Senior Consultant             |  Yours through INTERNET,                *
*  Dial Center for Computer Sciences |  Terry Asher   <TA2321S@ACAD.DRAKE.EDU>,*
*  Academic Computing Services       |  UNIX-INTERNET <TA2321S@DUNIX.DRAKE.EDU>*
*  Drake University                  |                                         *
*  2407 Carpenter                    | For the listner who listens in the snow,*
*  Des Moines, Iowa  50311  USA      |and nothing himself, beholds the nothing *
*  (515) 271-3677                    |that is not there and that is there.     *
********************************************************************************
Newsgroups: gnu.emacs.help
From: kburton@iowa.UUCP (Kevin Burton)
Subject: Emacs "more" command
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Fri, 11 Sep 1992 17:46:27 GMT

Currently the most common reason that I leave emacs is to look at files too big
to be edited of view within an emacs buffer. Large listings (like ls-lR from
uunet), output of a command where I only want the top few lines of the output,
etc are examples of typical applications. Is what I want to do within emacs
is 'more'. I can't easily do this in shell mode because of the limited
settings for the TERM "emacs". Has anyone develop a way to do more within
emacs ?

Thanks.

-
Kevin Burton
Noran Instruments				voice: (608) 831-6511 x317
2551 West Beltline Highway, Room 532		  FAX: (608) 836-7224
Middleton, WI 53562				email: kburton@noran.com
From: klehr@creamer.bellcore.com (Thomas J. Klehr)
Newsgroups: gnu.emacs.help
Subject: Re: Name for an xemacs window?
Date: 4 Sep 92 20:40:44 GMT
Reply-To: klehr@bae.bellcore.com (Thomas J. Klehr)
Organization: /u/klehr/.organization

In article <1992Sep4.200025.26787@walter.bellcore.com> snk@fork.bae.bellcore.com (Samuel Kamens) writes:

   Hi,

   When I bring up emacs as its own X window (we call it xemacs around
   here), I get a name of "xemacs@fork" (fork is my machine) for the
   window.

   I'd like to change that to be something else, like "MAIL".

   Does anyone know how to do this?

   Thanks,

   Sam

   -- 
   Sam Kamens					Bell Communications Research
   snk@bae.bellcore.com				Phone: (908) 699-7509
   444 Hoes Lane  Room RRC 1D-210
   Piscataway, NJ 08854

Use -wn window-name and -in icon-name when you invoke emacs.

Tom
--
_______________________________________________________________________________

Thomas J. Klehr                             Email: klehr@bae.bellcore.com
Bellcore  (RRC 4A-732)                      Phone: (908) 699-7095
444 Hoes Lane
Piscataway, NJ 08854
Newsgroups: gnu.emacs.help
From: jason@news.larc.nasa.gov (Jason Austin)
Subject: ispell.el on iris
Reply-To: Jason C. Austin <j.c.austin@larc.nasa.gov>
Organization: NASA Langley Research Center, Hampton, VA USA
Date: Thu, 10 Sep 1992 17:19:25 GMT


	Ispell.el does not seem to work right on an Iris running
Irix4.0.4.  In works fine on the same emacs compiled for a Sun Sparc.
It looks like it's trying to check an entire line at a time instead of
just a single word.  Anyone have any idea why this is happening?
--
Jason C. Austin
j.c.austin@larc.nasa.gov

Newsgroups: gnu.emacs.help
From: tnt@netcom.com (Terry Turner)
Subject: japanese (kana) emacs?
Date: Thu, 10 Sep 92 15:04:42 GMT
Organization: Watch the Skies
Distribution: gnu

i saw something posted a while back about a janapese version of emacs. or
was i dreaming?

info appreciated.
-- 
terry
	tnt@netcom.com
From: sef@Veritas.COM (Sef Kloninger)
Newsgroups: gnu.emacs.help
Subject: newline in certain modes only
Date: 10 Sep 92 22:20:07 GMT
Organization: VERITAS Software


I currently use the newline.el package posted on the net recently
to display the line number and colume position on the mode line.
As this slows down scrolling, I would like to be able to enable it
only in certain major modes.

Here is the current entry in my .emacs file:
(setq term setup hook
	'(lambda ()
	    (load-library "newline")))

I want to turn it off for text mode, others too.

thanks in advance for any help
	-sef
-- 
------------------
Sef Kloninger
Veritas Software                        Stanford University
sef@veritas.com                         sef@cs.stanford.edu
Newsgroups: gnu.emacs.help
From: twpierce@unix.amherst.edu (Tim Pierce)
Subject: "unswapping" keys, retaining emacs intro banner, and other stuff
Organization: Amherst College, Amherst MA
Date: Sun, 6 Sep 1992 20:43:58 GMT

Background: I've set up Emacs 18.58 on a DECstation 5000/240 running
Ultrix 4.2a.  This machine will be our main Unix box for all students
and faculty at Amherst, and will be the machine on which nearly all
on-campus newsreading will be done.

Since most of the people using this machine will be connecting to it
over a Sytek broadband network, which uses ^S^Q flow control and hence
overrides the Emacs keybindings, we made the decision to dump Emacs
with site-init.el containing (swap-keys \C-s \C-t) and (swap-keys \C-q
\C-o).  We have also dumped a "virgin" Emacs executable under the name
"gnuemacs", if they really need the default settings.

Problem: I don't like this dumping of multiple binaries; it seems
unnecessarily unwieldy to me.  However, since few of our users are
computer users (let alone Unix jockeys), leaving the Emacs banner
screen intact (explaining notation, how to get "undo", how to get the
tutorial running) is a high priority for us.  I have not been able to
find a convenient way to set up both the "emacs" and "gnuemacs"
commands so that the banner remains intact at least upon firing up
"emacs."  (I don't care whether it appears during "gnuemacs" -- I
figure if you really want to run that, you probably know what you're
doing anyway.)

Any ideas?  I could set up "gnuemacs" as an alias or shell script to
invoke "emacs" and reswap the original keybindings, but I don't like
that solution -- what I've read of the swap-keys code suggests that
this will simply add translations to keyboard-translate-table rather
than removing the original swap.  Is there any way to "unswap" two
keybindings after doing swap-keys?

This is kind of an odd and gluey situation, so I won't be surprised if
it leaves you scratching your heads.  Please write if you can't figure
out what I'm saying or what I'm worried about.

-- 
____ Tim Pierce                / "I don't know how much support NAMBLA
\  / twpierce@unix.amherst.edu /  has in the gay community."
 \/ (BITnet: TWPIERCE@AMHERST) /   -- Clayton Cramer, August 1992
From: faggk@topaz.ucq.edu.au
Newsgroups: gnu.emacs.help
Subject: 132 characters wide
Date: 12 Sep 92 13:24:31 AET
Organization: University of Central Queensland, Australia

I would appreciate assistance on how I might setup emacs for a 132 character
line width. 

--
Kevin Fagg                                  AARNET: K_Fagg@ucq.edu.au
Faculty of Business                         Phone:  +61 79 309532 
University of Central Queensland    	    Fax:    +61 79 309700
Rockhampton, Australia
Newsgroups: gnu.emacs.help
From: piet@cs.ruu.nl (Piet van Oostrum)
Subject: Re: Dired & Ange-Ftp
Date: Tue, 15 Sep 1992 13:17:59 GMT
Distribution: gnu.emacs.help
Reply-To: piet@cs.ruu.nl (Piet van Oostrum)
Organization: Dept of Computer Science, Utrecht University, The Netherlands

>>>>> scullyl@prism.cs.orst.edu (Lyle Scully) (LS) writes:

LS> Okay this is kind of what I am talking about. What is the next window
LS> and how do you get it to come up? This is what I thought I needed so I
LS> could put files up. Right now I am not even sure how to do that. I
LS> thought that you had your current ftp session and could pop up a
LS> second buffer that had say a directory in your home path. That way you
LS> could put and get files from either directory as you needed. 

Yes, this is how you do it. You have two windows: one is the ftp directory,
the other one the directory where you want your files to go. In the ftp
directory you can mark a couple of files and then type the "c" command.
Then they will be copied to the other directory (This of course works also
the other way around, between two normal directories and maybe even between
two ftp directories).
-- 
Piet van Oostrum <piet@cs.ruu.nl>
Newsgroups: gnu.emacs.help
From: hrue@sima.sintef.no (hrue)
Subject: Re: Using <ALT> as meta key
Organization: SINTEF Industrial Mathematics, Trondheim, Norway
Date: 6 Sep 92 20:46:00


arrow trouble ? 

try something like this, not sure that it works but you can modify it
as you want.  this is evaluated if TERM is set to vt100. 

-hr

(if (string= (getenv "TERM") "vt100")
    (progn
      (define-key esc-map "OA" 'previous-line)
      (define-key esc-map "OB" 'next-line)
      (define-key esc-map "OC" 'forward-char)
      (define-key esc-map "OD" 'backward-char)))

--
       |^^^^^^|        ___________________________________
       |      |       /                                    \
       |      |      | Haavard Rue                          |
       | (o)(o)      | The Norwegian Instiute of Technology |
      @      _)      | Department of Mathemathical Sciences |
       | ,___|     ,,| N-7034 Trondheim NTH, Norway         |
       |   /   ..''  | fax:+47-7-593524, hrue@imf.unit.no   |
      /____\          \____________________________________/
From: abo@cory.Berkeley.EDU (Andy Abo)
Subject: Re: Setting up VM
Keywords: VM vm
Organization: University of California, at Berkeley
Date: Mon, 7 Sep 1992 20:13:28 GMT

abo@cory.Berkeley.EDU (Andy Abo) writes:

>I would like to use the `vm' mail reader.  I read the info page,
>which said I should type: M-x vm
>which resulted in: [No match]
>After some snooping, I found in vm.elc and the other .elc files
>in /usr/sww/lib/emacs/lisp on my machine.  I did a

>% setenv EMACSLOADPATH /usr/sww/lib/emacs/lisp

>but that did not help.  I suspect I need some special stuff in my
>init file (.emacs) to get vm to run.  Can someone tell me the 
>stuff I need?  Thanks.

>Andy

Thanks to all those who answered.  Put the following in your .emacs
file to enable M-x vm:

	(autoload 'vm "vm" "VM Mail Reader" t)

Newsgroups: gnu.emacs.help
From: james@wrs.com (James Moore)
Subject: question about tags - any way to do exact matches?
Reply-To: james@wrs.com
Organization: Wind River Systems
Date: Tue, 15 Sep 1992 17:50:52 GMT

Is there a way to specify an exact match for a function name in a tags
file?  I'm working on some routines that have one-character names
(mostly debugging commands, 's' for single-step, etc.), and when I
simply try to, say, (find-tag "s") it comes up with every routine in
the system that contains "s."  Is there a way to say I only want exact
matches?  I'm using emacs 18.51.1.

-- 
James Moore                            /|\                        james@wrs.com
Wind River Systems                     \|/                  Alameda, California
	 "Half of what he said meant something else, and the other half
			  didn't mean anything at all"