HDTenEightyP/NetNews huggingface dataset:
From: jkr+@CS.CMU.EDU (Ken Rosenblatt)
Newsgroups: gnu.emacs.help
Subject: RMAIL questions
Date: 11 Sep 92 19:02:55 GMT
Article-I.D.: cs.BuFGwv.K0K.2
Organization: Carnegie Mellon University

There are a couple of default behaviors I would like to add or modify:

(1) I would like to have Re: at the beginning of my subject field
    when replying to a message, as is the convention.

(2) I would like to be able to reply to just the sender.

My poor-man's solution to (1) is to define an awkward macro
and assign it to a key sequence to be invoked manually:

(defun define-mail-keys ()
  ;adds Re: to subject
  (define-key mail-mode-map "\C-cr" "\C-c\C-f\C-s\C-a\M-f\C-f Re:")
  ;adds jkr to bcc field
  (define-key mail-mode-map "\C-cb" "\C-c\C-f\C-bjkr")
)

(setq mail-mode-hook (function define-mail-keys))


My solution to (2) is also an awkward macro assign to a key,
which I am satisfied with, but would like to make sure I'm
not missing a simpler, more elegant way to do this:

(defun define-rmail-keys ()
  ;reply to sender, stripping of the CC field
  (define-key rmail-mode-map "R" "r\C-c\C-f\C-c\C-\ \C-rCC:\C-a\C-w\C-d")
)

(setq rmail-mode-hook (function define-rmail-keys))


Thanks,
Ken

-- 

Julio Ken Rosenblatt				Carnegie Mellon University
jkr@cs.cmu.edu					Robotics Institute
Voice:	(412) 268-3084				5000 Forbes Avenue
Fax:	(412) 621-1970				Pittsburgh, PA 15213-3891


	Practice random kindness and senseless acts of beauty.
Newsgroups: gnu.emacs.help
From: liblit@cs.psu.edu (Benjamin R. Liblit)
Subject: bison-mode bugs/patches (was Re: Trying to use bison-mode... HELP)
Date: Mon, 14 Sep 1992 03:31:16 GMT

In article <1992Sep11.140340.12577@itnsg1.cineca.it> lele@itnsg1.cineca.it (Lele Gaifax) writes:
>
>Whenever I try to insert a code-block, Emacs says 
>"Wrong type argument: integer-or-marker-p, nil" in the minibuffer. 

The problem seems to be that a variable called "indent" is not being
properly bound by a let statement.  The original code contains two
instances of:

	(let (indent) ...)

It seems that this was actually intended to bind "indent" to some
initial value.  Assuming this initial value is 0, the code should
really read:

	(let ((indent 0)) ...)

To patch things up, you can replace all instances of "(indent)" with
"((indent 0))".  This will fix the two let statements and shouldn't
match anything else.

On the subject of bison-mode bugs, though, has anyone noticed that
bison-edit-code-block changes the indentation of code blocks when you
re-edit them?  Specifically, my initial %{ ... %} block contains many
"#include" and "#define" lines.  Whenever I re-edit it, all of these
directives are pushed right by two columns.  Anyone have a patch?

In the interests of fair exchange, here's a patch of my own.  I use
bison++, so the code fragments I'm putting in my grammar are C++, not
C.  I performed the following (manual) patch:

	- Use replace-string to change all "bison" to "bison++".
	  This will also change "Bison" to "Bison++", which is neat.

	- Use query-replace-regexp to change all "\bc\b" to "c++"
	  *except* where it is part of:

		- the copyright notice
		- a string literal used for keybinding, like "\C-c"

Presto!  You now have a bison++-mode of your very own.  This assumes
you're using Barry A. Warsaw <baw@cen.com>'s c++-mode of 1992; if
you've instead got Dave Detlefs <dld@cs.cmu.edu>'s c++-mode of 1987,
you also should leave the "\bc\b" in c-auto-newline, c-indent-level,
and c-tab-always-indent untouched.

--
Ben Liblit   -----   "Fais que tes reves soient plus longs que la nuit."
liblit@cs.psu.edu   --   brl102@psuvm.psu.edu   --   brl102@psuvm.bitnet
From: proctor@cme.nist.gov (Fred Proctor)
Newsgroups: gnu.emacs.help
Subject: C autoindent and macros
Date: 9 Sep 92 13:53:36 GMT
Organization: National Institute of Standards and Technology

I use a couple of the emacs variables for auto indentation of C code
in my emacs buffers, but these don't apply for code in a macro which
spans several lines that end in the backslash continuation character.
Does anyone know how to fix this so macros whose intermediate lines
are terminated with the backslash are formatted as if they were
straight C code?
Newsgroups: gnu.emacs.help
From: piet@cs.ruu.nl (Piet van Oostrum)
Subject: Re: Dired & Ange-Ftp
Date: Mon, 14 Sep 1992 09:19:13 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> I have been using the dired & and Ange-ftp combination for a while now
LS> and I had a question. Is there a way to make a file that you ftp from
LS> say /pub/msdos/file.idx automatically go into a default directory in
LS> your account instead of having to backspace over all of the host/path
LS> stuff in the line? Seems like I read about something like another
LS> window that you can have it open on whatever directory you are sitting
LS> in currently or something but I can't find this again. Any ideas?
LS> Thanks in advance.

When I translate this to English :=), I think you mean the DWIM feature.

(defvar dired-dwim-target nil
  "*If non-nil, dired tries to guess a default target directory:
If there is a dired buffer displayed in the next window, use
its current subdir, instead of the current subdir of this dired
buffer.

The target is used in the prompt for file copy, move etc.")
-- 
Piet* van Oostrum, Dept of Computer Science, Utrecht University,
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31 30 531806   Uucp:   uunet!mcsun!ruuinf!piet
Telefax:   +31 30 513791   Internet:  piet@cs.ruu.nl   (*`Pete')
From: maennig@fred.informatik.uni-dortmund.de (Olaf Maennig)
Newsgroups: gnu.emacs.help
Subject: How does spell checking work?
Date: 15 Sep 1992 06:58:32 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
Reply-To: maennig@siggi.informatik.uni-dortmund.de
NNTP-Posting-Host: fred

Hello.

Can anyone tell me how the emacs spell checker can be 'misused' to
spell-check a program?

I have written a mode for the specification language TLA+ in which all
keywords are written CAPITAL. I want to check if all capital words are
keywords of the language.

I have written such a function by myself, but due to the high amount of
string-handling functions it is absolutely and intolerably too slow.
Furthermore, while using the function a lot of garbage collections are done,
and that's not what I intended the function to do.

Who can help?
	Olaf
-- 

 ---------------------------------------------------------------------------
     _                   Department of Computer Science IV
    / \     |\/|         University of Dortmund, Germany
    \_/laf  |  |aennig   e-mail: maennig@siggi.informatik.uni-dortmund.de
 ---------------------------------------------------------------------------
Newsgroups: gnu.emacs.help
From: scullyl@prism.cs.orst.edu (Lyle Scully)
Subject: Dired & Ange-Ftp
Reply-To: scullyl@prism.cs.orst.edu
Organization: Oregon State University
Distribution: gnu.emacs.help
Date: Sun, 13 Sep 1992 08:37:20 GMT


I have been using the dired & and Ange-ftp combination for a while now
and I had a question. Is there a way to make a file that you ftp from
say /pub/msdos/file.idx automatically go into a default directory in
your account instead of having to backspace over all of the host/path
stuff in the line? Seems like I read about something like another
window that you can have it open on whatever directory you are sitting
in currently or something but I can't find this again. Any ideas?
Thanks in advance.

Lyle Scully
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+  Lyle Scully                 +   What is left when honor is lost?   +      
+  scullyl@prism.cs.orst.edu   +         -- Publilius Syrus           +   
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Newsgroups: gnu.emacs.help
From: chan@hawking.jpmorgan.com (Milo A. Chan)
Subject: Re: Binding the DEL key.
Organization: J. P. Morgan Securities, Inc.
Distribution: usa
Date: Wed, 9 Sep 1992 15:13:54 GMT

In article <BturFr.BB2@news.cso.uiuc.edu> saj31052@uxa.cso.uiuc.edu (Scotty A Johnson) writes:

   I keep trying to bind the DEL key (^?), but no matter what I try,
   emacs ALWAYS defines the key as backwards-delete-char-untabify.

   I have successfully bound meta-DEL and other keys.  Why the problem
   with this one?

The DEL key is often bound by each major mode in a local keymap.  Try
using the function local-set-key to set the DEL key (a.k.a. "\177") in the
mode hook of the major mode you are using, such as c-mode-hook or
emacs-lisp-mode-hook.  For example:

    (setq c-mode-hook
	  (function (lambda ()
		      (local-set-key "\177" 'my-delete-char))))
--
Milo Chan,  Fixed Income Market Strategies,  J.P. Morgan Securities, Inc.
email:   chan_milo@jpmorgan.com    ...or...   chan@fractl.tn.cornell.edu
phone:   212.648.4483              ...or...          212.648.4486 (sec'y)
From: kevin@traffic.den.mmc.com (Kevin Rodgers)
Newsgroups: gnu.emacs.help
Subject: Re: Basic Commands for GNU
Date: 15 Sep 92 16:08:29 GMT
Organization: Martin Marietta Western Internal Systems, Technical Operations

In article <Sep.14.21.57.12.1992.2034@ruhets.rutgers.edu> myadav@ruhets.rutgers.edu (Mahesh Yadav) writes:
>
>	The other days I got an ftp site from one of you for the emacs
>manual. The manual was 270 pages ! What a waste, especially for the
>person who just want to know few basic commands. One of my friend has
>a GNU Emacs reference card. I made it into a file and I am posting
>here. I hope many of you will find it useful.	

The TeX source to the reference card that comes with the printed Emacs
manual is in etc/refcard.tex.  However, I think it would a good idea to
include the reference card as a node in the Info documentation, for
those sites which don't have TeX installed.  If that's done, it could
then be made more obviously accessible to novices by binding an
additional key ("R") in the help-command keymap to a function that would
invoke Info on the appropriate node:

(defun help-with-refcard ()
  "*Select the Emacs command reference card."
  (interactive)
  (info)
  (Info-goto-node "(emacs)Refcard")
  (message "Type %s to return from the reference card"
	   (substitute-command-keys "\\<Info-mode-map>\\[Info-exit]")))
-- 
Kevin Rodgers				kevin@traffic.den.mmc.com
Martin Marietta MS A16401		(303) 790-3971
116 Inverness Dr. East
Englewood CO 80112 USA			GO BUFFS!
Newsgroups: gnu.emacs.help
From: rcox@cad734.NoSubdomain.NoDomain (Richard Cox)
Subject: Re: c++-mode version 2.195
Organization: Intel Corporation, Santa Clara, CA USA
Date: Mon, 14 Sep 1992 22:19:37 GMT

|> 	I have just acquired a new version of c++-mode. I love it except that
|> I do not like the format where I declare an array of variables. For
|> instance, I like an array to look like that:
|> 	int table[] =
|> 	{
|> 		item1,
|> 		item2,
|> 		.....
|> 	};
|> 
|> But the c++-mode formats it like that:
|> 	int table[] =
|> 	{	
|> 		item1,
|> 		   item2,
|> 		   item3,
|> 		   .....
|> 	};
|> 
|> Could anyone tell me how I can change the variables so that I can have the
|> first format? Thanks in advance.

I Think that this is bug in c++-indent because I have discovered the
same problem in formatting code like this:

class X 
{
   public:
      protected
      private:
}

 only the first line is wrong.  If you put the brace on the same line

class X { <-- same line

It formats correctly.  I have not had time to look at the elisp code yet
and Barry won't be back from vacation for about 2 more weeks so I think
this is a feature until then....

-Rich

-- 
+-----------------------------------------------------------------------------+
|Rich Cox      	       	       	       	   E-Mail: rcox@scdt.intel.com 	      |
|CAD Developer                             AOL: Rich Kid                      |
|Intel Corp.  				   Mailstop: SC3-39     	      |
|      	       	        		   Phone: (408) 765-5199              |
|-----------------------------------------------------------------------------+
| These opinions are shared by everyone, I asked them...                      |
+-----------------------------------------------------------------------------+
Newsgroups: gnu.emacs.help
From: keith@aisg.COM (Keith B. Kee {AISG} )
Subject: c++-mode version 2.195
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Sun, 13 Sep 1992 18:36:03 GMT

Hi:
	I have just acquired a new version of c++-mode. I love it except that
I do not like the format where I declare an array of variables. For
instance, I like an array to look like that:
	int table[] =
	{
		item1,
		item2,
		.....
	};

But the c++-mode formats it like that:
	int table[] =
	{	
		item1,
		   item2,
		   item3,
		   .....
	};

Could anyone tell me how I can change the variables so that I can have the
first format? Thanks in advance.

		-Keith



Newsgroups: gnu.emacs.help,comp.mail.sendmail
From: per@erix.ericsson.se (Per Hedeland)
Subject: Re: sendmail.el: flags to /usr/lib/sendmail wrong?
Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
Date: Sat, 12 Sep 1992 02:21:52 GMT

In article <SCOTT.92Sep11102408@arugula.statsci.com> scott@statsci.com (Scott Blachowicz) writes:
> me>     Subject: returned mail for "| /usr/local/bin/filter"
>
> me>     Mail error was: 554 <"| /usr/local/bin/filter">... Cannot mail directly to programs
...
>Right after I posted that I remembered a possible cause (commenting out the OR
>option line out of Sun's sendmail.cf file). That seems to have fixed the
>problem. After perusing Per Hedeland's list of problems with the OR option, it
>seems that it is a good idea to leave it commented out.

Just commenting it out is rarely the right solution, since you then do
not get the forward-all-mail-to-the-server effect that OR is supposed to
have (and mostly does, although with many problems), and this can have
various bad effects, one of which is that a command such as the above
will be executed on the client rather than on the server (assuming the
user's home directory is available on the client, of course).

The proper way to handle this, and the one I recommend along with the
list, is to use a sendmail.cf that achieves the forwarding by means of
"normal" rules.

Anyway, I can't reproduce your particular problem using OR and the
context you describe (using /bin/cat rather than 'filter' though), and
in fact the error message you give doesn't even seem to be produced by
sendmail, but rather by some other program talking SMTP to sendmail (and
perhaps, incorrectly, having taken upon itself to lookup .forward files
before doing so).

--Per Hedeland
per@erix.ericsson.se  or
per%erix.ericsson.se@sunic.sunet.se  or
...uunet!erix.ericsson.se!per
Newsgroups: gnu.emacs.help
From: alexeev@math.utah.edu (Valery A. Alexeev)
Subject: lpr-buffer
Organization: Department of Mathematics, University of Utah
Distribution: gnu
Date: 12 Sep 92 16:47:01

This might be a very simple question but I couldn't figure it myself
whatever I tried it was wrong.
I cannot print anything from within emacs using M-x lpr-buffer or M-x
lpr-region. Reason: when I normally print text files, I have to
convert them to Postscript first, so I type something like

lptops -backwards | lpr -Pjwb120 file.txt

So I tried to change lpr-command in lpr.el from "lpr" to
"lptops -backwards | lpr" and lpr-switches to "-Pjwb120", well it
does't know the program "lptops -backwards | lpr", so it won't work.

Would some kind soul point me the solution ?

V.
From: mac@crchh570.BNR.CA (Michael Campbell)
Newsgroups: gnu.emacs.help
Subject: Equivalents to vi's H, M, L Commands?
Date: 9 Sep 92 18:35:31 GMT
Reply-To: mac@crchh570.BNR.CA (Michael Campbell)
Organization: Bell Northern Research Inc, Richardson Tx.

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!

========================================================================
Michael Campbell                  BNR Inc.               Richardson, Tx.
ESN        444-5595              Dept 2Q35                 75082-4399
PSTN (214) 684-5595
From: c4craig@teal.csn.org (Craig Anderson)
Newsgroups: gnu.emacs.help
Subject: C calling tree
Date: 9 Sep 92 14:23:57 GMT
Organization: Colorado SuperNet, Inc.


Is there a way to extract and traverse the function calling tree
of a C language project in emacs?

Thanks,

Craig H. Anderson
C4 Network, Inc.
518 17th Street, Suite 1400
Denver, CO 80202
    (303) 825-8183
FAX (303) 893-6510
c4craig@csn.org
Newsgroups: gnu.emacs.help
From: eeide%asylum.cs.utah.edu@cs.utah.edu (Eric Eide)
Subject: Re: How do I subvert a function?
In-reply-to: kevin@edscom.demon.co.uk's message of Fri, 4 Sep 1992 10:01:46 GMT
Organization: University of Utah Department of Computer Science
Distribution: gnu
Date: 4 Sep 92 17:55:44

Kevin Broadey writes:

>I'd like to be able to replace an elisp function with one I've written myself
>while keeping hold of the original.  [...] I tried doing this:-
>
>(fset 'old-original 'original)
>
>(defun original ()
>  (old-original)
>  ;; modify behaviour here
>  ...)

Close.  Try (fset 'old-original (symbol-function 'original)) instead.  Eric.

--
-------------------------------------------------------------------------------
Eric Eide          |          University of Utah Department of Computer Science
eeide@cs.utah.edu  | Buddhist to hot dog vendor: "Make me one with everything."
From: snk@fork.bae.bellcore.com (Samuel Kamens)
Newsgroups: gnu.emacs.help
Subject: Name for an xemacs window?
Date: 4 Sep 92 20:00:25 GMT
Reply-To: snk@bae.bellcore.com
Organization: Bell Communications Research

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
Newsgroups: gnu.emacs.help,gnu.emacs.help,comp.emacs
From: roten@CUBA.gsfc.nasa.gov (Charles Roten)
Subject: Problems with lisp storage, building 18.58 on a 386i/150 .. HELP !!
Organization: /cuba_b/dirbe/roten/.organization
X-Newsreader: GNU Emacs 18.57.1, GNUS 3.13, NNTP 3.10
Date: Mon, 14 Sep 1992 20:51:37 GMT

I have built emacs 18.55 on a Sun 386i/250 several times without incident.  

But something curious happened with 18.57, both on the 386i/250 and a 
Sun 3/160 while installing .. after adding the recommended Sun mouse 
and keyboard elisp to site-init.el, the build got right up to the loading 
of the elisp into emacs after compilation, then the build failed, with the 
messsage 'Pure lisp storage exhausted', or something like that.  

It turned out that the problem was the setting of the variable 'PURESIZE' 
in src/config.h.  Tweaking this from the default of 120000 or so up to 
170000 or so made things work.  

But now I am trying to build Emacs 18.58 on a friend's machine, a Sun 
386i/150 running SunOS 4.0.2.  Same problem, except that in a phone 
conversation, he reported today that a PURESIZE exceeding 300000 still 
fails.  Huh ?!?!?!?  

Could some kind soul enlighten me as to the problem ?  I would hate to 
think that the 386i community has been hosed by the FSF, as well as by 
Sun.  

--
Charles Roten | Hughes-STX, Incorporated | 
  roten@cuba.gsfc.nasa.gov               | 'Use the Source, Luke!'
  7601 Ora-Glen Dr., Greenbelt, MD 20706 | 
  301-513-7805 (w),  301-317-0872 (h)    |            Obi-Wan Stallman
Newsgroups: gnu.emacs.help
From: kevin@traffic.den.mmc.com (Kevin Rodgers)
Subject: Re: TAB characters (was Re: Need help with TABith TABS)
Keywords: emacs, TABS, PASCAL
Organization: Martin Marietta Western Internal Systems, Technical Operations
Date: Fri, 11 Sep 1992 15:13:44 GMT

In article <1992Sep10.194734.23894@bcars6a8.bnr.ca> keithh@bnr.ca (Keith Hanlan) writes:
>In article <BuCHyu.GzG.1@cs.cmu.edu> rudis+@cs.cmu.edu (Rujith S DeSilva) writes:
>>Does this mean that you want saved files to have TAB characters, but want
>>spaces while editing?  If so, why bother to have TABs at all?
>
>No, I want tab characters in my files so that hitting hitting tab
>and then backspace (rubout) results in no change.  Editors which
>convert tabs to spaces are frustrating because the backspace only
>rubs out the final space, instead of all the spaces used to
>replace the tab.

Why don't you just make sure that backspace/delete (whichever you use)
is bound to delete-backward-char, instead of delete-backward-char-
untabify.  It seems the former is the default global binding, but that
some modes bind that key locally to the latter.
-- 
Kevin Rodgers				kevin@traffic.den.mmc.com
Martin Marietta MS A16401		(303) 790-3971
116 Inverness Dr. East
Englewood CO 80112 USA			GO BUFFS!
Newsgroups: gnu.emacs.help
From: epstein@sparc9.cs.uiuc.edu (Milt Epstein)
Subject: Re: Equivalents to vi's H, M, L Commands?
Reply-To: epstein@cs.uiuc.edu
Organization: University of Illinois at Urbana-Champaign
Date: Thu, 10 Sep 1992 15:43:53 GMT

In <1992Sep10.135545.26512@bmerh85.bnr.ca> Hamish.Macdonald@x400gate.bnr.ca (Hamish Macdonald) writes:

>>>>>> On Wed, 09 Sep 92 19:28:05 GMT,
>>>>>> In message <1992Sep09.192805.12394@bmerh85.bnr.ca>,
>>>>>> I wrote:
>
>[some top-of-window, middle-of-window, and bottom-of-window functions
> which won't work in emacs 18.58 for one thing, and are buggy to boot]

[and then some more functions to accomplish some of the above, deleted]

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

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

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

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

-- 
Milt Epstein
Department of Computer Science
University of Illinois
epstein@cs.uiuc.edu
Newsgroups: gnu.emacs.help
From: steibel@venus.cs.umbc.edu (David M. Steibel)
Subject: Re: Can I have more than one initialization file?
Keywords: .emacs, bindings
Organization: University of Maryland Baltimore Campus
Date: Sat, 12 Sep 1992 02:19:55 GMT

mjk@greisen.physics.utah.edu (Matthew J. Kidd) writes:

> I use emacs on two different terminals. In each case I have customized
> the key bindings to correspond with some of the special keys in obvious
> ways.  I would like to create a couple of aliases that invoke emacs 
> with different initialization files. 

The following command line switches should be of interest to you

  -q              Do not load your emacs init file ~/.emacs
  -no-init-file   same as -q

  -l filename     loads 'filename' of lisp code with the functio load
  -load filename  same as -l

I think that answers your problem.
--
David M. Steibel;  Author of the Demacs FAQ;  Internet: steibel@cs.umbc.edu

The greatness of a nation and its moral progress can be measured by the way 
in which its animals are treated. - Mahatma Gandhi.



Newsgroups: gnu.emacs.help