HDTenEightyP/NetNews huggingface dataset:
From: h.b.furuseth@usit.uio.NO
Subject: Re: More intelligent default mode selection?
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Wed, 22 Jul 1992 00:44:02 GMT

The regexps matching filenames in auto-mode-alist need not be just
suffixes.  To get all files under "pl" directories in perl-mode:

	(nconc auto-mode-alist '(("/pl/" . perl-mode)))

Put the directories at the *end* of auto-mode-alist, otherwise they
would override normal filename suffixes.


Or you might like something like this:

(defun default-mode ()
  (maybe-perl-mode 'text-mode))

(defun maybe-perl-mode (&optional default)
  (cond ((save-excursion
	   (save-restriction
	     (widen)
	     (goto-char (point-min))
	     (looking-at "#! */[!-~]*/perl")))	; Perl script
	 (perl-mode))
	(default (funcall default))))

(setq default-major-mode 'default-mode
      find-file-hooks (append find-file-hooks '(maybe-perl-mode)))


Regards,

Hallvard
From: kevin@sherman.pas.rochester.edu (kevin mcfadden)
Newsgroups: gnu.emacs.help
Subject: lemacs documentation
Date: 24 Jul 92 17:04:51 GMT
Distribution: na
Organization: University of Rochester


	I have just installed lemacs-19.2 and I would like to know about any
differences in the documentation of lemacs and emacs before I print it out.
From what I have gleaned from the ../man and ../etc directories it seems
to have been rewritten by the Lucid people.  


Thanks,

kevin@sherman.pas.rochester.edu
From: kyle@rodan.UU.NET (Kyle Jones)
Newsgroups: gnu.emacs.help
Subject: Re: installing vm 4.41
Date: 26 Jul 1992 16:58:46 -0400
Organization: UUNET Communications
NNTP-Posting-Host: rodan.uu.net

ryanr@lamar.lamar.ColoState.EDU (Richard Ryan) writes:
 > Although the machine seems to go into vm and views the headers with an
 > "h" command all right, the letter itself does not show up on the screen
 > ecxcept for its header Could someone tell me what's going wrong and how
 > to fix it?

Hit the space bar. 

(Struggling desperately with the temptation to end the article
here, Kyle continues...)

When VM shows you only the headers of the message, this is called
"previewing" and is normal behavior when viewing a new message.
When you type SPACE, VM will uncover the rest of the message and
mark the message as read.  If you don't like this feature just

(setq vm-preview-lines nil)

in your .emacs and VM won't hide the body of new messages.

Newsgroups: gnu.emacs.help
From: cmeyer@warp.Stanford.EDU (Craig Meyer)
Subject: easy gnuemacs questions
Organization: DSO, Stanford University
X-Newsreader: Tin 1.1 PL4
Date: Mon, 27 Jul 92 05:14:35 GMT

1) Is there a way to specify two or more files when invoking gnuemacs,
with each file ending up in its own window?

2) Is there a way to make . refer to the directory where gnuemacs was 
invoked instead of the default directory?

3) What is a simple way to change the default directory?  (This is 
a real beginner's question; I know that I have to set the variable
default-directory, but I don't know the syntax for binding this to a key.)

Thanks,
Craig
cmeyer@spiral.stanford.edu







Newsgroups: gnu.emacs.help
From: ryanr@lamar.lamar.colostate.edu (Richard Ryan)
Subject: answers to my rmail problems and thanks
Date: Sun, 26 Jul 1992 01:05:25 GMT
Distribution: gnu
Organization: /m/a/ryanr/.organization

Hello,

Before I continue, I would like to extend to everyone who has helped me
with rmail the deepest thanks.

I've getting mail to share the answers I've been getting concerning
sharing answers I've been getting to my rmail problems.

Problem 1:
	I had been getting error messages concerning emacs' rmail
reading my /usr/spool/mail/ryanr file.  Because emacs was not allowed
to suck up "ryanr" from the directory, rmail could not read "ryanr."

Here's the answer:

>   You need to change the group (using chown or chgrp) of the
>   executable file 'etc/movemail' to the group named 'mail', and then
>   turn on the setgid bit of 'etc/movemail' using 'chmod'.  So the
>   commands will be something like this:
> 
>    cd /usr/local/emacs/etc      # or wherever the emacs/etc directory is
>    chgrp mail movemail          # or maybe chown <user>.mail movemail
>    chmod 2555 movemail          # the 2 is setgid, the 5s make it 
>                                 # executable and readable
> 	
>   You will need to have the sysadmin do this if you cannot.

Problem 2:
	After the sys admin fixed the problem, rmail could not find my
mail file.

Answer:
	When I was trying to figure out the first problem, I had
pretty much dinked around with my .emacs file in desperation.  I had
tried to tell rmail where in the H-E-double-toothpicks to look for my
darn ol' mail file.  Somebody sent me mail letting me know that I
needed the last slash you now see in the following string argument.
(setq rmail-spool-directory "/usr/spool/mail/")

If there's anything else anyone else wants to know concerning the
requests for help with rmail I've posted, please mail me.

Again, for everyone who has helped me out with this situation, thank
you.

Richard.

p.s.  Ironically, my next posting is going to be a request for help
installing VM  :-)
--
...
Xref: sparky gnu.emacs.help:3553 comp.emacs:2736
From: qlong@themis.cs.umass.edu (Qiegang Long)
Newsgroups: gnu.emacs.help,comp.emacs
Subject: Re: emacs fonts
Date: 29 Jul 92 15:52:51 GMT
Reply-To: QLONG@CS.UMASS.EDU
Followup-To: gnu.emacs.help
Organization: Dept. Computer Science, University of Massachusetts, Amherst
In-reply-to: maxn@geriatrix.cs.uoregon.edu's message of 29 Jul 92 04:39:01 GMT


In article <1992Jul29.043901.16937@cs.uoregon.edu> maxn@geriatrix.cs.uoregon.edu (Max Napolitano) writes:
> 
> I am new to posting, so bear with me.
> 
> I am in search of a good font to use for emacs.  The default font used 
> on our system is very small.  Hence I would like to know what other
> people use as their emacs font, assuming theirs is not the default.
> 
> I run X11 and use "xfontsel" and "xlsfonts | less" to see the various
> fonts on our system.  There are a lot, which is why I am asking for
> your help in narrowing "the search".   
> 

  The fixed width fonts are ok for emacs. In xfontsel, the 11th
bit (spc) should be m. Not many choices. 

I use 9x15 and -adobe-*-medium-r-*-18-*-m-*

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Qiegang Long			Internet:  QLONG@CS.UMASS.EDU	   
Dept. Computer Science		Voice:     (413)545-3444 (O)         	   
University of Massachusetts	           (413)546-6118 (H)         
Amherst, MA01003		Facsimile: (413)545-1249             
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: shirono@ssd.csd.harris.com (Roberto Shironoshita)
Newsgroups: gnu.emacs.help
Subject: Re: adding new functions
Date: 23 Jul 92 23:09:47 GMT
Article-I.D.: gcx1.SHIRONO.92Jul23180947
Reply-To: shirono@ssd.csd.harris.com
Distribution: gnu
Organization: Harris Computer Systems
In-reply-to: ryanr@lamar.ColoState.EDU's message of 23 Jul 92 20:30:33 GMT

In article <Jul23.203033.61716@yuma.ACNS.ColoState.EDU> ryanr@lamar.ColoState.EDU (Richard Ryan) writes:

> I'm trying to figure out add a new  function.
> I tried putting the following in a file I've loaded
> with load-file and I've also tried putting it in
> the .emacs file.
> (defun gt-indent-region ()
>   (shell-command-on-region 4 "sed -e '/^\(.\)/s//> \1/'"))
>
> Although I'm not very certain this would work, I can't even
> try it out if I can't load it.  When I try executing it after
> loading the file it's in I get a "No match" message.  I've
> looked in the FAQ's, but I couldn't find this question there.
> Funny, it seemed like an FAQ kind of thing to me.

It sounds as if you are trying to make an interactive function.  To do so,
the body of the function must call the "interactive" function:

	(defun gt-indent-region ()
	  (interactive)

Furthermore, on-line help for shell-command-on-region says:

	Noninteractive args are START, END, COMMAND, FLAG.
	Noninteractively FLAG means insert output in place of text from START
	to END, and put point at the end, but don't alter the mark.

So, your call is missing a couple of arguments.

Another problem exists with your command string.  Backslash (\) inside
strings mean something to GNU Emacs lisp, so you can't just do what you
did.  What you need is something like:

	"sed -e '/^\\(.\\)/s//> \\1/'"

> Also, what I'm trying to do with this command is put a "> "
> in the left margin.  If you've got a better function, please
> send me a copy.

There is no need to call on sed to do this.  The following function does
the change you want in place.

	(defun gt-indent-region (start end)
	  (interactive "r")
	  (save-excursion
	    (push-mark end t)
	    (let ((em (mark-marker)))
	      (goto-char start)
	      (if (looking-at "^.")
		  (insert "> "))
	      (while (and (= 0 (forward-line 1))
			  (<= (point) (marker-position em)))
		(if (looking-at "^.")
		    (insert "> "))))))
--

     Roberto Shironoshita      ||   Internet: shirono@ssd.csd.harris.com
      Harris Corporation       ||
   Computer Systems Division   ||   UUCP: ...!uunet!ssd.csd.harris.com!shirono
                               ||
DISCLAIMER: The opinions expressed here are my own; they in no way reflect the
            opinion or policies of Harris Corporation.
Newsgroups: gnu.emacs.gnews
From: msanghvi@remus.ulowell.edu (Mehul Sanghvi)
Subject: test pls ignore
Reply-To: msanghvi@cs.ulowell.edu
Organization: /usr/ug/1993/msanghvi/.organization
Distribution: gnu
Date: Thu, 23 Jul 1992 07:50:31 GMT


this is a tes

--
===============================================================================
Mehul "raja lakhan" Sanghvi    | University of Massachusets at Lowell, CS Dept.
Inet: msanghvi@cs.ulowell.edu  | US Mail:  754 Aiken St. #11
UUCP: harvard!ulowell!msanghvi |           Lowell, MA. 01850-1804
Newsgroups: gnu.emacs.gnus
From: eric@telebit.com (Eric Smith)
Subject: Re: gnus-Group-kill-group and gnus-Group-list-all-groups
Organization: Telebit Corporation
	<KPC.92Jul24235324@zog.arc.nasa.gov>
Date: 26 Jul 92 15:22:41

My point was that when you kill newsgroups now, they are put into a kill
buffer.  I don't know specifically what you (kpc) want, but others seem to
think that they should stay in the *Newsgroups* buffer, so they can always see
all the newsgroups.  This defeats the purpose of using kill to move them
around (by killing them, moving the point, and yanking them back).

It seems that what people want is to have them in the *Newsgroups* buffer,
but not do any processing of them in order to speed things up.  Right now,
when they are in the kill buffer, gnus doesn't do anything with them, so it
is faster than just unsubscribing them.

My suggestion was rather than breaking the kill/yank process which allows the
newsgroups to be moved around, there should simply be a form of heavy-duty
unsubscribe that would leave them in the *Newsgroups* buffer, but completely
ignore them otherwise.

Eric
Newsgroups: gnu.emacs.gnus
From: eric@telebit.com (Eric Smith)
Subject: Re: gnus-Group-kill-group and gnus-Group-list-all-groups
Organization: Telebit Corporation
Date: 24 Jul 92 16:25:10

So if everyone thinks that killed newsgroups should still be shown in the
list, then how is it proposed that they be moved around to reorder the list?
The current method is at least conceptually similar to other uses of kill in
emacs.

If you don't want the groups in your .newsrc, what you really want is a
more heavy-duty form of unsubscribe.

Eric
Newsgroups: gnu.emacs.gnus
From: flee@cs.psu.edu (Felix Lee)
Subject: Re: gnus-Group-kill-group and gnus-Group-list-all-groups
	<TALE.92Jul21173038@ten.uu.net>
Date: Wed, 22 Jul 1992 07:55:02 GMT

There are two things I think should happen:

0. A better way of finding out about new newsgroups.  GNUS shouldn't
have to put every newsgroup in your .newsrc.el.

1. More than one newsgroup buffer, each showing a different slice of
newsgroups.  Subscribed groups is one slice, unsubscribed is another,
killed is a third.  New groups is perhaps a fourth.  And you might
split your subscribed groups into smaller slices, for more convenient
reading.
--
From: ssh@vnet.ibm.com (Stephen S. Hultquist)
Newsgroups: gnu.emacs.gnus
Subject: Using multiple servers
Date: Tue, 21 Jul 92 11:16:48 -0700

I'm trying to set up gnus to use multiple .newsrc* files for multiple servers.
I can't figure out how to give gnus the prefix for use as the other server.

Thanks to those of you who sent mhe forwarding macros!  I'll get working copies
to the others of you who requested them (as long as my mail gets to you).
--
Steve Hultquist                          Open systems and networking specialist
if it's to be, it's up to me...                                    ISSC Boulder
   ...opinions independent of my employer's official position, of course...
From: simon@lia.di.epfl.ch (Simon Leinen)
Newsgroups: gnu.emacs.gnus
Subject: missing CRs in NNTP communication (RFC violation)
Date: 30 Jul 92 10:42:58 GMT
Organization: DI-LIA -- Ecole Polytechnique Federale de Lausanne
X-Md4-Signature: 870626cb5828e09f03067e3e23ee6389

Testing GNUS against a new NNTP implementation, I found that GNUS
fails to terminate the lines it sends to the remote NNTP server
correctly.  RFC 977 states:

   272     Each command line must be terminated by a CR-LF (Carriage Return -
   273     Line Feed) pair.
[...]

For lines of posted articles this requirement is not stated
explicitly, but the server I tested required CRLFs even there (this
has been fixed now).

My fix was to replace two functions in nntp.el to insert proper CRLF
sequences before sending lines to the NNTP process.  Tested on Lucid
GNU Emacs 19.2 with C-News 1.5.11 and VMNNTP.
-- 
Simon.

(defun nntp-encode-text ()
  "Encode text in current buffer for NNTP transmission.
1. Insert additional `.' at beginning of lines that start with a dot.
2. Insert CRs at the end of lines that don't have it already.
3. Insert `.' at end of buffer (end of text mark)."
  (save-excursion
    ;; Insert newline at end of buffer.
    (goto-char (point-max))
    (if (not (bolp))
	(insert "\n"))
    ;; Replace `.' at beginning of line with `..'.
    (goto-char (point-min))
    ;; (replace-regexp "^\\." "..")
    (while (search-forward "\n" nil t)
      (if (or (= (match-beginning 0) (point-min))
	      (not (eq (char-after (1- (match-beginning 0))) 13)))
	  (progn
	    (forward-char -1)
	    (insert "\r")
	    (forward-char 1)))
      (if (looking-at "\\.")
	  (insert ".")))
    ;; Insert `.' at end of buffer (end of text mark).
    (goto-char (point-max))
    (insert ".\r\n")
    ))

(defun nntp-send-strings-to-server (&rest strings)
  "Send list of STRINGS to news server as command and its arguments."
  (let ((cmd (car strings))
	(strings (cdr strings)))
    ;; Command and each argument must be separeted by one or more spaces.
    (while strings
      (setq cmd (concat cmd " " (car strings)))
      (setq strings (cdr strings)))
    ;; Make sure the connection hasn't been closed on us.
    (or (nntp-server-opened)
	(nntp-restart-connection))
    ;; Command line must be terminated by a CR-LF.
    (nntp-trace "SEND [%s]" cmd)
    (process-send-string nntp-server-process (concat cmd "\r\n"))
    ))
Lines: 18
Date: Thu, 30 Jul 92 08:33:09 MDT
From: gritton@alaska.et.byu.edu (Jamie Gritton)
Organization: Brigham Young University, Provo UT USA
Newsgroups: gnu.emacs.gnus
Subject: Re: missing CRs in NNTP communication (RFC violation)
Reply-To: gritton@byu.edu

simon@lia.di.epfl.ch (Simon Leinen) writes:

> Testing GNUS against a new NNTP implementation, I found that GNUS
> fails to terminate the lines it sends to the remote NNTP server
> correctly.  RFC 977 states:

>    272     Each command line must be terminated by a CR-LF (Carriage Return -
>    273     Line Feed) pair.
> [...]

   While it is a good thing to make a news client (ie gnus) comply to
the written rule, note that common usage of many protocols based on a
simplified telnet accept CR-NL, CR-0, and NL.
   The servers should generally accept all of these, since there are
too many clients that break the written rule. I suggest you also
modify your NNTP server to be more liberal in what it accepts.
--
James Gritton - gritton@byu.edu - I disclaim
Newsgroups: gnu.emacs.gnus
From: nuge@newport.med.ge.com (James A. Nugent)
Subject: Re: gnus-Group-kill-group and gnus-Group-list-all-groups
Organization: GE Medical Systems, Milwaukee, WI
Distribution: gnu
Date: 21 Jul 92 17:39:57 GMT

In article <RV.92Jul19221803@duck.cs.brown.edu> rv@cs.brown.edu
(rodrigo vanegas) writes:

> i enjoy the extra speed provided by the kill-group functionality, but
> i'm not sure if i appreciate having to trade-off the intended purpose
> of list-all-groups.  Assuming that an unsubscribed group is also a
> killed group, how can one easily get a list of groups available for
> subscription?  Is it not reasonable behavior for the 'List of
> Newsgroups' buffer to list not only groups subscribed and unsubscribed
> to but also those that are killed?

> perhaps a display such as this:

> 	K      : gnu.emacs.bug
> 	K      : gnu.emacs.gnews
> 	      0: gnu.emacs.gnus
> 	U    51: gnu.emacs.help
> 	U     6: gnu.emacs.sources
> 	      0: gnu.emacs.vm
> 	K      : gnu.emacs.vm.bug

        What is the functional difference between unsubscribing and
killing a group?


--
Jim Nugent
GE Medical Systems
Milwaukee, WI
Newsgroups: gnu.emacs.gnus
From: rv@cs.brown.edu (rodrigo vanegas)
Subject: Re: gnus-Group-kill-group and gnus-Group-list-all-groups
Organization: Dept. of Computer Science, Brown University
	<TALE.92Jul21173038@ten.uu.net> <Brs37w.GAF@cs.psu.edu>
Date: Wed, 22 Jul 1992 18:46:58 GMT

In article <Brs37w.GAF@cs.psu.edu>, flee@cs.psu.edu (Felix Lee) writes:

> Subscribed groups is one slice, unsubscribed is another,
> killed is a third.  New groups is perhaps a fourth.  And you might
> split your subscribed groups into smaller slices, for more convenient
> reading.

convenient?!  what a pain to have to switch between buffers all the
time like that!  

i prefer one buffer, but different modes.
Newsgroups: gnu.emacs.gnus
From: msanghvi@cs.ulowell.edu (Mehul Sanghvi)
Subject: moving around in article mode
Reply-To: msanghvi@cs.ulowell.edu
Organization: UMass-Lowell CS Dept.
Distribution: gnu
Date: Sun, 26 Jul 1992 21:45:13 GMT


hello folks!
    i have been using GNUS for a while now and have noticed something that
keeps happening to me. evrytime i read a newsgroup with say 20 or more articles
in it and get to the last 4-5 articles the current article marker moves back to
say article 15. let me see if i can clarify this. say i am reading a newgroup
with 100 articles in it. i finally get to article 6 and when i hit the 'n'
key to go to the next article the the article window will show me article 5
while the current article marker has moved back to say article 15 or 16
(sometimes even more). why does this happen?? is there a variable that i am
not setting properly??? 

any suggestions will be helpful.

peace


P.S. also how do i get wraparound in *post-news* buffer?? i hate having to 
keep hitting the return key evrytime i get near the end of the line....


--
===============================================================================
Mehul "raja lakhan" Sanghvi    | University of Massachusets at Lowell, CS Dept.
Inet: msanghvi@cs.ulowell.edu  | US Mail:  754 Aiken St. #11
UUCP: harvard!ulowell!msanghvi |           Lowell, MA. 01850-1804
Newsgroups: gnu.emacs.gnus
From: msanghvi@hen.ulowell.edu (Mehul Sanghvi)
Subject: testing 
Reply-To: msanghvi@cs.ulowell.edu
Organization: /usr/ug/1993/msanghvi/.organization
Distribution: gnu
Date: Thu, 23 Jul 1992 05:12:29 GMT


testing if gnus is posting correctly or not
--
===============================================================================
Mehul "raja lakhan" Sanghvi    | University of Massachusets at Lowell, CS Dept.
Inet: msanghvi@cs.ulowell.edu  | US Mail:  754 Aiken St. #11
UUCP: harvard!ulowell!msanghvi |           Lowell, MA. 01850-1804
Newsgroups: gnu.emacs.gnus
From: kpc@pluto.arc.nasa.gov (k p c)
Subject: Re: gnus-Group-kill-group and gnus-Group-list-all-groups
Reply-To: kpc@ptolemy.arc.nasa.gov
Organization: NASA Ames Research Center AI Research Branch (Sterling).
Date: Sat, 25 Jul 1992 07:53:24 GMT

not sure what you mean.  i was suggesting (as an idea to be shot down
or supported) that they remain semantically the same (i.e. not in the
newsrc, and not in the 'j' command namespace) but have marks so that
they can be eliminated from the display with a command that kills all
newsgroups marked k, for example, or one that shows all newsgroups
marked k.

in other words, the same flexibility and power we (sort of) have for
articles, we will have for newsgroups, and the commands will be the
same.

i suppose that moving them around makes no difference to the newsrc,
and that you would be able to sort newsgroups by mark (just as i sort
subjects by mark) to put the k groups at the end if one likes.  maybe
you will have a variable to keep them out of the 'j' namespace or not.

anyway, i think it is nice to use marks to indicate what you want,
instead of having modes and other things you have to remember.  the
basic functions and reasons for types of newsgroups can still be the
same: killed newsgroups are out of the newsrc file or out of the
namespace or are not shown, however you prefer.

but the main thing is finding somebody willing to do the front end.
if there is nobody to do it, then this is all idle talk.  (i cannot.)
--
i'm open to comparing career notes with other ai and cogsci people.
Newsgroups: gnu.emacs.gnus
From: ckd@eff.org (Christopher Davis)
Subject: Re: moving around in article mode
Organization: Electronic Frontier Foundation Tech Central
Distribution: gnu
Date: Mon, 27 Jul 1992 01:38:13 GMT

Mehul> == Mehul Sanghvi <msanghvi@cs.ulowell.edu> 

 Mehul>     i have been using GNUS for a while now and have noticed
 Mehul> something that keeps happening to me. evrytime i read a
 Mehul> newsgroup with say 20 or more articles in it and get to the last
 Mehul> 4-5 articles the current article marker moves back to say
 Mehul> article 15.

This is a bug in gnus-user-tale.  A fixed version has been posted here
(though I don't know if it's been posted here *recently*).  The one I
use (which may not have *all* the fixes, but fixes this problem) is up
for anonymous ftp as ftp.eff.org:/users/ckd/gnus-user-tale.el.

 Mehul> P.S. also how do i get wraparound in *post-news* buffer?? i hate
 Mehul> having to keep hitting the return key evrytime i get near the
 Mehul> end of the line....

Set either your news-mode-hook or your text-mode-hook to turn on
auto-fill mode.  Here's what I use:

;; auto-fill in text mode, and make tab insert spaces
(defun ckd-text-mode-hook ()
   (auto-fill-mode 1)
   (setq indent-tabs-mode nil)
   )

(setq text-mode-hook 'ckd-text-mode-hook)
--
Christopher Davis * ckd@eff.org * System Administrator, EFF * +1 617 864 0665
   ``The First Amendment is often inconvenient.  But that is besides the
  point.  Inconvenience does not absolve the government of its obligation
         to tolerate speech.'' --Justice Anthony Kennedy, in 91-155