HDTenEightyP/NetNews huggingface dataset:
From: lfk@kerbit.uts.amdahl.com (Lynn Kerby)
Newsgroups: gnu.emacs.help
Subject: Re: TAB key in (C Fill) mode
Date: 25 Jul 92 05:36:55 GMT
	<1992Jul22.180640.5161@murdoch.acc.Virginia.EDU>
	<ETHANB.92Jul22140006@ptolemy.astro.washington.edu>
Reply-To: lfk@uts.amdahl.com
Organization: Amdahl Corporation, Sunnyvale, CA
In-reply-to: ethanb@ptolemy.astro.washington.edu's message of 22 Jul 92 22:00:06 GMT

In article <ETHANB.92Jul22140006@ptolemy.astro.washington.edu> ethanb@ptolemy.astro.washington.edu (Ethan Bradford) writes:
>
>   That's not quite right.  Indent-tabs-mode just controls whether tabs
>   or spaces are used to move over to the goal column; it doesn't keep
>   it from using fancy logic to select a goal column.
>
>   To make a tab just insert itself, you will have to create a
>   c-mode-hook which overrides the default definition of the tab key.
>   The following code (in your .emacs file) should do what you want:
>
>   (setq c-mode-hook
>    (function (lambda () (local-set-key "\t" 'self-insert-command))))
>   --
>   -- Ethan (ethanb@u.washington.edu)

It isn't necessary to put it into a hook, and as other posters have
mentioned, you will loose the *useful* indent function.  I have the
following settings in my .emacs:

(setq c-tab-always-indent t)
(define-key c-mode-map "\M-\C-i" 'c-indent-command)
(define-key c-mode-map "\C-i" 'self-insert-command)

Which pretty much does the same thing, without a mode hook, and allows
Meta-TAB to perform indentation when desired.
--
     Lynn Kerby  -  Amdahl Corporation
                    Sunnyvale, CA
                    ...amdahl!lfk
		    lfk@uts.amdahl.com

Disclaimer: Any and all opinions expressed herein are my own and do not
            necessarily represent the views of anyone, especially my
            employer.
 
Newsgroups: gnu.emacs.help,alt.lucid-emacs.help,comp.emacs
From: logemann@gambln.enet.dec.com (George Logemann)
Subject: Arrow-key bindings
Organisation: Digital Equipment Corporation
Organization: Digital Equipment Corporation - Marlboro, MA
Date: 30 JUL 92 11:36:18 EST



I'm running emacs-18.57 on a VAXstation 3100 (ULTRIX), and
do not know how to bind the arrow keys to 'previous-line,'
'next-line,' etc.

Can someone please mail me the correct bindings (or post them,
or tell me where they're posted) ??

Additionally, please tell me which file they go in.

Regards,
George.

| George Logemann -- george@bgm004.enet.dec.com                       |

| All views and opinions expressed are my own and do not neccessarily |
| reflect those of my clients or employer.                            |
Newsgroups: gnu.emacs.help
From: crew@CS.Stanford.EDU (Roger Crew)
Subject: Re: 2 Elisp questions
Organization: Stanford University Computer Science Dept.
Date: Tue, 28 Jul 1992 23:07:47 GMT

In article <8eRCDdO00VpA4D6Rgt@andrew.cmu.edu> jf41+@andrew.cmu.edu (Jonathan R. Ferro) writes:
> 2. Is there REALLY no built-in function that you can apply to a list of
>    t's and nil's to get their collective AND or OR?  I eventually broke
>    down and wrote my own, but this is surprising.

(apply 'and lst) == (not (memq nil lst))
(apply 'or  lst) == (memq t lst)

--
Roger Crew      OBEY     MARRY AND REPRODUCE      CONSUME      STAY ASLEEP
Internet:  crew@CS.Stanford.EDU
From: barmar@think.com (Barry Margolin)
Newsgroups: gnu.emacs.help
Subject: Re: ?s about emulating vi's z & z- commands ; setting the default mode
Date: 29 Jul 1992 01:10:44 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: telecaster.think.com

In article <1992Jul28.212141.22272@csus.edu> vpcsc4@sfsuvax1.sfsu.edu (Emmett McLean) writes:
>z<CR>                    takes the current line and 
>                         moves it to the top of the screen

When C-l is given a numeric argument, it repositions the current line to
the specified line of the screen, from the top if non-negative, from the
bottom if negative.  So this becomes:

M-0 C-l

>z-                       takes the current line and
>                         moves it to the bottom of the screen

M-- C-l

>Also is there a way to stop the automatic scroll so that 
>when I type C-n when I am at the bottom of the screen I
>see the same screen I seen before with the next line and
>without the top line?

(setq scroll-step 1)

>Also, I would like to have emacs automatically go into shell
>mode when emacs is invoked.  I placed the following instruction
>in my .emacs file :
>
>(setq default-major-mode 'shell-mode )
>
>but when I invoke emacs I am in lisp-interaction-mode.

Default-major-mode is used for new buffers that are not put in a specific
mode.  The *scratch* buffer is intended for executing elisp, so it is
forced into lisp-interaction-mode.

Since the right way to start editing a new file is to use C-x C-f to
specify the file name, the mode of *scratch* shouldn't matter too much.
When C-x C-f creates the new buffer, it will get the default mode you
specified.

-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
From: jla@lucid.com (Joseph Arceneaux)
Newsgroups: gnu.emacs.help
Subject: elisp: interactive calling of C subroutines
Date: 28 Jul 92 17:54:57 GMT
Reply-To: jla@ai.mit.edu
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu


   Date: 28 Jul 92 13:54:30 GMT
   From: acevedo@mit.edu (Raul Acevedo)

       (setq foo (symbol-function 'forward-char))  ; so you can recover it
       (fset 'forward-char 'backward-char)

   This will not work.  Sort of.  See what happens to C-f; it doesn't
   change.  However, see how it behaves at the end of the buffer.  Only
   then does it actually do `backward-char'.  But if you evaluate
   (forward-char) or type M-x forward-char, you *will* actually call
   `backward-char'. 

     Anyone know what's going on?

Your guess (which I've omitted) is partially correct.  There is an
optimization which attempts to execute `forward-char', `backward-char',
and `self-insert' without going through redisplay under certain
conditions.  At the end of the buffer, the conditions aren't met, and
so the command then goes through `command-execute'.
From: snow@clam.rutgers.edu (snow)
Newsgroups: gnu.emacs.help
Subject: help needed building on IRIS
Date: 29 Jul 92 20:03:18 GMT
Distribution: gnu
Organization: /clam/u3/cunix/snow/.organization


I've taken a swing at building and installing gnu-emacs on our IRIS at
work, with the result being an emacs executable that just prints
"killed" on the invoking shell window. 

Here are the steps I went through to get the executable:

1) started with files in /usr/local/emacs-18.58/ from the archive on
ftp.uu.net
2) copied and edited src/config.h, with m-iris4d.h and s-irix4-0.h as
the machine and system files. I added S_SWITCH_MACHINE -cckr, as our
compiler is ANSI. I left HAVE_X_WINDOWS commented out to help isolate
the bug (it gave the same results with or without X).
3) since I'm installing in the standard /usr/local locations, I left
the Makefile definitions of LIBDIR alone.
4) I left paths.el alone
5) I left site-init.el alone
6) I used neither C_OPTIMIZE or C_DEBUG flags
7) I'm using the cc complier from SGI that came with the IRIS
8) I use the ./install.sh script

So, doing a 'make install' does give some warnings from the IRIS
header files, about #ifdef arguments starting with digit, and there
were some errors from mkdir because of directories already existing,
but no other errors. I get an emacs execuable in /usr/local/bin, along with
ctags, exacsclient, and etags, and I get all the directories under
/usr/local/emacs. 

But the executable just prints "killed" 

Any help would be appreciated.

/snow
From: snk@fork.bae.bellcore.com (Samuel N Kamens)
Newsgroups: gnu.emacs.help
Subject: Lucid Emacs (was Re: Gmacs 19 When? (Summary))
Date: 21 Jul 92 12:38:36 GMT
Reply-To: snk@bae.bellcore.com
Organization: Bell Communications Research

In article <CPETTERB.92Jul20161357@mickey.javelin.sim.es.com>, cpetterb@javelin.sim.es.com (Cary Petterborg) writes:
> 
> ********   Thanks for the helpful information, Trevor!!!!   ***********
> 
> In article <TPAQUETTE.92Jul20133316@gumby.ita.lgc.com> tpaquette@ita.lgc.com (Trevor Paquette) writes:
> >      2) Lucid Emacs has more features then Gmacs 19 and Epoch
> 
> I know it has to have more features than Epoch, and I saw RMS's note
> about Lemacs features to be looked at for 19 a while back, and thought
> that maybe things were looking pretty good in 19!  Now I'm really
> disgusted!


In that case, how do I get hold of Lucid Emacs?  Is it a purchaseable
thing, or can I ftp it from somewhere?

Thanks,

Sam Kamens
-- 
Sam Kamens					Bell Communications Research
snk@bae.bellcore.com				Phone: (908) 699-7509
444 Hoes Lane  Room RRC 1D-210
Piscataway, NJ 08854
Newsgroups: gnu.emacs.help
From: hollen@megatek.UUCP (Dion Hollenbeck)
Subject: where are archives?
Organization: Megatek Corporation, San Diego, California
Distribution: usa
Date: Thu, 23 Jul 1992 17:59:48 GMT

Now that I have ftp access, where are archive sites that have GNU
Emacs lisp code?  Not Emacs distribution, but PD stuff which has not
been incorporated into the std distribution.

thanks,
dion
-- 
Dion Hollenbeck       UUCP: {uunet, ucsd, sun}!megatek!hollen
                      INTERNET:            hollen@megatek.com
Megatek Corporation  9645 Scranton Rd.  San Diego, Ca.  92121
Xref: sparky gnu.emacs.help:3562 comp.emacs:2738
From: barmar@think.com (Barry Margolin)
Newsgroups: gnu.emacs.help,comp.emacs
Subject: Re: emacsclient problem
Date: 29 Jul 1992 22:15:27 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
Distribution: gnu
NNTP-Posting-Host: telecaster.think.com
Keywords: emacsclient, emacs

In article <1992Jul29.071558.12586@cco.caltech.edu> hong@cithe501.cithep.caltech.edu.UUCP (John Hong) writes:
>I started my normal emacs session with server-start, and then invoked
>	emacsclient file
>from the same computer and it worked fine.  But if I tried to invoke
>the emacsclient from a different computer, it gave me the error:
>	emacsclient: msgget: No such file or directory

Emacsclient uses Unix domain sockets, which only support communication
between processes on the same system.

I believe someone once posted a replacement to the standard Emacsclient
that supports networked communication.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Newsgroups: gnu.emacs.help
From: moore@src.bae.co.UK (Chris Moore)
Subject: Two ideas for implementing repeat-last-command
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Fri, 24 Jul 1992 11:17:43 GMT


lfernand@ca.ryerson.ee (luis fernandes) said:

> The following two ideas for implementing repeat-last-command dawned 
> on me while reading the GNU Emacs manual:

> [1] Write a lisp program that parses output from 'view-lossage' and binds 
> it to a key that will repeat-last-command.  Everything between either a 
> C- or M- and RET.

> [2] [something similar to [1] in essence]

I'm not sure whether this would be useful.  Why start at C- and M- and end
at RET?  Is that just an arbitrary choice, or is there some reasoning
there?  It seems that if I do some complex sequence of commands which I
which to repeat, it's quite likely to contain C- M- or RET somewhere in the
middle of the sequence.  Isn't it better to have two distinct key sequences
(say, "C-x (" and "C-x )") which explicitly tell emacs when top start and
top recording?

Assuming you're not thinking of storing complex command sequences, you can
generally use "C-x ESC" to repeat previous commands.

I'm probably being dense here, but I don't really see your point.

Chris.
From: dodd@mycenae.cchem (Lawrence R. Dodd)
Newsgroups: gnu.emacs.help
Subject: Re: Save *scratch* on exit (Was Re: #XXX# file remains ...)
Followup-To: gnu.emacs.help
Date: 27 Jul 92 08:36:27
Organization: Dept of Chemical Engineering, UC Berkeley, CA, USA
Distribution: gnu
	<NICKEL.92Jul26152853@desaster.cs.tu-berlin.de>
Reply-To: dodd@mycenae.cchem.berkeley.edu
NNTP-Posting-Host: mycenae.cchem.berkeley.edu
In-reply-to: nickel@cs.tu-berlin.DE's message of Sun, 26 Jul 1992 14:28:53 GMT


>>>>> On Sun, 26 Jul 1992 14:28:53 GMT, nickel@cs.tu-berlin.DE (Juergen Nickelsen) said:

> On a related issue, I think someone a while back asked how one can
> get emacs to ask the user about saving *scratch* buffers when
> exiting emacs.  Right now standard emacs just wipes them is there a
> way to get it to attach some importance to *scratch* buffers?  Just
> a simple "save buffer to disk?" would be nice.

  Juergen> Put the following into your ~/.emacs:

  Juergen> (save-excursion
  Juergen>   (set-buffer "*scratch*")
  Juergen>   (setq buffer-file-name "~/*scratch*"))

This seems to work great for *scratch* but is there a way to set it up for all
buffers not attached to files?



Newsgroups: gnu.emacs.help
From: moore@src.bae.co.UK (Chris Moore)
Subject: How to use emacsclient??
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Thu, 23 Jul 1992 13:39:08 GMT


ericdh@cray.com (Eric D. Hendrickson) said:

> Can someone tell me how to set this up?
> I get connect: Connection refused from emacsclient.

M-x server-start RET
From: sdk@shadow.twinsun.com (Scott D Kalter)
Newsgroups: gnu.emacs.help
Subject: Re: question on universal-argument or C-u
Date: 21 Jul 92 16:14:34 GMT
Organization: Twin Sun, Inc.

In article <1992Jul16.193150.5172@Warren.MENTORG.COM> sharma@euler.Warren.MENTORG.COM (Sharma Kunapalli) writes:

-> I have defined rathed defun'ed :-) a function in
-> emacs lisp. Call that function f. Now I want to
-> write another function which will call this function
-> a certain number of times equal to the number of lines 
-> in the buffer. 
-> 
-> (defun f ()
->   (re-search-forward "^#" nil)
->   (beginning-of-line)
->   (kill-line)
->   (kill-line))
-> 
-> (defun my-rep ()
->    (interactive)
->    (universal-argument 4 (next-line)))
-> 

First, a reasonable way of finding the number of lines in a buffer is:

(count-lines (point-min) (point-max))

Second, a reasonable way of attacking the original problem (assuming
the intent is to remove all lines starting with '#' from a buffer) is
to use the regular expression facilities in emacs:

(defun f ()
  (save-excursion
    (goto-char (point-min))
    (replace-regexp "^#.*\n" "")))	



Hope this helps,

-sdk
Xref: sparky gnu.emacs.help:3475 comp.emacs:2694 comp.sys.3b1:2935 comp.sys.att:1897
From: dburr@sbphy.physics.ucsb.edu (Donald Burr)
Newsgroups: gnu.emacs.help,comp.emacs,comp.sys.3b1,comp.sys.att
Subject: New user to EMACS on 3b1/PC7300 -- help!!
Date: 24 Jul 92 04:25:48 GMT
Reply-To: dburr@sbphy.physics.ucsb.edu
Followup-To: gnu.emacs.help

Well, I decided to take the plunge, and I got Emacs running on my PC7300
(Unkx PC).  This is the GNU Emacs distribution at OSU-CIS, not the one
from The STORE!.

So far, I like it.  It's pretty good.  But I do have a big problem.

I am used to hitting the Backspace key (the one right next to the
Reset/Break button) to erase mistakes.  JOVE works this way, vi works
this way.  But, alas, EMACS doesn't.  It does some sort of help menu
thing.  To correct mistakes, I must use the DEL key, which is extremely
inconvenient (you have to hit shift while hitting ESC), and I'm not used
to that anyway.  I heard that there might be a way to "rebind" the
functionality of keys, but I don't know enough of EMACS to figure out how
to do it.  I would like to rebind the "delete" function to the backspace
key, and put the "help" function (or whatever function that backspace
normally does) into the DEL key (shift-ESC).  How do I do this?

This brings me to another question.  I know so pitifully little about
EMACS, that I will probably be stumbling along for quite some time.  Is
there any books or manuals written on how to use EMACS?  Are they
available via FTP, or anon UUCP, or can someone send them to me through
email?  (Also, I cannot read TEX type files, because I do not have
enough drive space for TEX :-( )  Also does emacs have a manpage?  Can
some kind soul send me that?

Also, the Emacs distribution off osu-cis is extremely minimal -- it only
contains the binary, some support programs, and a few LISP sources.  It
suggests that you get the main Emacs distribution to get the rest.
Unfortunately, the current source distribution of Emacs is way too
large.  I can, however, download the whole Emacs distribution, and
select only the files I need, then stuff those into a separate (smaller)
tarfile, and download that.  WHAT FILES will I need in the Emacs
distribution?  Probably the lisp stuff, and maybe documentation.

Also, last but not least, I am sure that there are some pretty neat
Emacs lisp creations out there.  GNews and gnus come to mind , though I
am sure there are more.  What is the stuff out there I can download that
will enhance Emacs and add new stuff, and where can I get it?

Many thanks for the help.  Please email replies.

--
: Donald Burr, Coordinator          : dburr@sbphy.physics.ucsb.edu   INTERNET :
: Santa Barbara Area Network(SBANET): dburr@gnu.ai.mit.edu (Backup)  ======== :
: Santa Barbara, CA  USA            : DonaldBurr@aol.com (AOL gateway)        :
: uunet!dsc.com!dschub!sbanet!dburr : America OnLine: DonaldBurr              :
From: jsc@saxon.Eng.Sun.COM (John Cooper)
Newsgroups: gnu.emacs.help
Subject: Re: First person supercite attribution and citation
Date: 31 Jul 92 16:00:00 GMT
Organization: SunSoft, Inc., Mountain View, CA
NNTP-Posting-Host: saxon
In-reply-to: peta@thunder.mcrcim.mcgill.edu's message of Thu, 30 Jul 92 22:30:22 GMT

> "Peter" == Peter Whaite <peta@thunder.mcrcim.mcgill.edu> writes:

In article <1992Jul30.223022.26683@thunder.mcrcim.mcgill.edu> peta@thunder.mcrcim.mcgill.edu (Peter Whaite) writes:

    Peter> When I am citing one of my own mail messages I would like
    Peter> supercite to give me something like:

    >>>>> On Thu, 30 Jul 92 14:13:17 -0400, I said:

    Me> Blah blah blather blather blither blither. Blah blah blather blather
    Me> blither blither. Blah blah blather blather blither blither. Blah blah
    Me> blather blather blither blither. 

Note when someone replies to you (as I am doing now), the above 'Me'
citation remains intact, but it doesn't refer to me - it refers to you
instead!! In general any citations matching 'Me' or 'You' need to be
toggled in the reply. I believe this is something that Barry Warsaw is
working on for Supercite V3.0, which is expected some time in the Fall
of this year.
--
	--- John
Newsgroups: gnu.emacs.help
From: acevedo@athena.mit.edu
Subject: elisp: interactive calling of C subroutines
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Tue, 28 Jul 1992 10:02:36 GMT

Hmmm... thanks for the info.  Does the optimization happen only with
those three functions, or with any C subroutines called interactively
like that?

	Raul

Newsgroups: gnu.emacs.help
From: acevedo@athena.mit.edu
Subject: Emacs Lisp: interactive calling of C subroutines
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Wed, 29 Jul 1992 05:28:55 GMT

Thanks for your response...

All this came up because I wrote an "advise" package in elisp.  This
allows you to say

	(advise 'foo 'bar)

and when `foo' is called, `bar' is actually called first (as the
"advice" to `foo'), and then `foo' is called.  It is quite simple and
works by modifying the function cell of `foo'. 

The first use of `advise' was for a user with Carpal Tunnel Syndrome who
wanted to keep track of which keys were used most often; those would be
bound to function keys.  (The keys being tested were advised to count
how many times they were invoked interactively.)  The second use, which
brought about the above problem, was [yet another] hack to get Emacs to
display the current line number; actually this time the column number,
for a Fortran programmer.  I would like to post `advise.el' and
`track-funs.el' sometime soon because I think many people would find
them useful. 

The "current line number" hack comes up quite often, and tracking
function usage is not unreasonable.  I don't like redefining standard
functions, but in these cases there seems to be no other way.  (Even
this way it is not completely reliable.)

	Raul
Xref: sparky gnu.emacs.help:3569 comp.emacs:2741
From: kees@diku.dk (Kees Van Schaik)
Newsgroups: gnu.emacs.help,comp.emacs
Subject: Re: emacsclient problem
Date: 30 Jul 92 14:40:49 GMT
	<1992Jul29.071558.12586@cco.caltech.edu>
Distribution: gnu
Organization: DIKU, University of Copenhagen, Denmark

In article <1992Jul29.071558.12586@cco.caltech.edu> hong@cithe304.cithep.caltech.edu (John Hong) writes:

   I started my normal emacs session with server-start, and then invoked
	   emacsclient file
   from the same computer and it worked fine.  But if I tried to invoke
   the emacsclient from a different computer, it gave me the error:
	   emacsclient: msgget: No such file or directory

That is correct: emacsclient can only run locally on a machine and not via
the network, if I remember correctly that is because of the type of
communication that is used. Anyway, you can only run the emacsclient and
server on the same machine.

   Both computers are clustered and share same file system (NFS file
   system, I believe.)
That does not matter, it is really the machine that counts.

Hope to have been of help,

	Kees
From: hong@cithe304.cithep.caltech.edu (John Hong)
Subject: emacsclient problem
Keywords: emacsclient, emacs
Reply-To: hong@cithe501.cithep.caltech.edu.UUCP (John Hong)
Organization: California Institute of Technology, Pasadena
Distribution: gnu
Date: Wed, 29 Jul 1992 07:15:58 GMT

I started my normal emacs session with server-start, and then invoked
	emacsclient file
from the same computer and it worked fine.  But if I tried to invoke
the emacsclient from a different computer, it gave me the error:
	emacsclient: msgget: No such file or directory
Both computers are clustered and share same file system (NFS file
system, I believe.)  The machines are IBM RISC/6000 running AIX
with Motif X11/R3.  The gnu emacs is of version 18.57 .

If you have any advice, please let me know.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  John Hong               \|/       hong@cithex.bitnet
  256-48 Caltech         - * -      hong@cithex.caltech.edu
  Pasadena, CA 91125      /|\       hong@cithe1.cithep.caltech.edu
From: berglas@cs.uq.oz.au (Anthony Berglas)
Newsgroups: gnu.emacs.help
Subject: Card file/bibliography wanted
Date: 29 Jul 92 04:39:31 GMT
Reply-To: berglas@cs.uq.oz.au

I am about to classify my growing piles of articles so that
I can find them again.

Basically, I want to enter a sentence or two about each one, and
then be able to find them by keyword, author, broad subject etc.
I would also like to be able output bibtex libraries.

This is in effect a simple data base application, but I want the convenience
and integration of Emacs editing.  Outline mode almost does it, in
combination with simple searches, but I would like to be able to validate
classifications, extract just those lines matching a search etc.

I feel that this must be a common problem, and that *.el environments
to do this would be available.

Please let me know if you have or know of one.

Thanks,
--
Anthony Berglas
Rm 503, Computer Science, Uni of Qld
Ph 07 365 2812, Australia.