🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by dm46+@andrew.cmu Fri, 14 Feb 1992 18:23
Emacs questions
#4042
Author: dm46+@andrew.cmu
Date: Fri, 14 Feb 1992 18:23
32 lines
794 bytes
I also am a GNU-newbie and need help with the following questions:

Questions about Demacs:

I've tried to bind C-@ C-C to set-mark-command in my _emacs file with either
of the below lines of elisp code:

	(global-set-key "\C-@\C-C" 'set-mark-command)

or

	(global-set-key "\C-@ \C-C" 'set-mark-command)

and I receive the "Error in Init file" message.  What am I doing wrong?
___
Also, I am working on a regexp that nukes extraneous control chars out of
a buffer that is in the Fundamental mode.  The expression that I've tried
using is:

	[^!-~\\s ]

Unfortunately, this RE manages to nuke tabs and newlines.  Arg!  Any
suggestions out there?
---
Last question: how can I get DEmacs to allow itself to be invoked as
"emacs", instead of "demacs"?

Thanks,
Dale Miller
dm46+@andrew.cmu.edu

Re: Emacs questions
#4046
Author: barmar@think.com
Date: Fri, 14 Feb 1992 22:33
22 lines
708 bytes
In article <8db0YPK00WB78f4uNe@andrew.cmu.edu> dm46+@andrew.cmu.edu (Dale Miller) writes:
>Also, I am working on a regexp that nukes extraneous control chars out of
>a buffer that is in the Fundamental mode.  The expression that I've tried
>using is:
>
>	[^!-~\\s ]
>
>Unfortunately, this RE manages to nuke tabs and newlines.  Arg!  Any
>suggestions out there?

You have to put the actual control characters in the string, as there's no
special regular expression syntax for these characters.  It's easiest to
use format to construct this string, since it recognizes \t and \n
abbreviations.

(format "[^\t\n -~]")
--
Barry Margolin, Thinking Machines Corp.

barmar@think.com
{uunet,harvard}!think!barmar

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads