Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Allegro/Emacs C-a fix
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Bakhash  
View profile  
 More options May 30 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: David Bakhash <ca...@bu.edu>
Date: 1998/05/30
Subject: Allegro/Emacs C-a fix

If anyone out there is using the Allegro CL Emacs interface, you'll
know that it really kicks some butt.  However, when you're in the
*common-lisp* buffer, like at the top-level, you'll notice that C-a
brings you to the beginning of the line, and that isn't nice when the
prompt is there.  No one wants to edit the prompt!

So here's the fix.  Just put this in your .emacs or wherever.  You can
even put it inside your fi-keys.el file, if you want.  It'll fix the
problem, or at least it did for me:

(defvar acl-prompt-regexp "\\[[0-9]+\\] \\w+([0-9]+): *")

(defun fi:bol ()
  "Newline, but skip passed the prompt, if there is one"
  (interactive)
  (beginning-of-line)
  (when (looking-at acl-prompt-regexp)
    (re-search-forward acl-prompt-regexp)))

(define-key fi:inferior-common-lisp-mode-map [(control a)] 'fi:bol)

dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options May 31 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <c...@naggum.no>
Date: 1998/05/31
Subject: Re: Allegro/Emacs C-a fix

* David Bakhash
| If anyone out there is using the Allegro CL Emacs interface, you'll
| know that it really kicks some butt.  However, when you're in the
| *common-lisp* buffer, like at the top-level, you'll notice that C-a
| brings you to the beginning of the line, and that isn't nice when the
| prompt is there.  No one wants to edit the prompt!

  this is the official Emacs design policy.  C-a should not guess a prompt,
  it should move to the beginning of the line in the buffer.  if you want
  to move to the beginning of the text after a prompt, use C-c C-a.  (if
  you want to use the C-c prefix for a number of control characters, set
  the variable FI:SUBPROCESS-ENABLE-SUPERKEYS to true before starting a any
  subprocesses.  see the documentation for the details.)

#:Erik
--
  "Where do you want to go to jail today?"
                        -- U.S. Department of Justice Windows 98 slogan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Bakhash  
View profile  
 More options Jun 1 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: David Bakhash <ca...@bu.edu>
Date: 1998/06/01
Subject: Re: Allegro/Emacs C-a fix

Erik Naggum <c...@naggum.no> writes:
> * David Bakhash
> | If anyone out there is using the Allegro CL Emacs interface, you'll
> | know that it really kicks some butt.  However, when you're in the
> | *common-lisp* buffer, like at the top-level, you'll notice that C-a
> | brings you to the beginning of the line, and that isn't nice when the
> | prompt is there.  No one wants to edit the prompt!

>   this is the official Emacs design policy.  C-a should not guess a prompt,
>   it should move to the beginning of the line in the buffer.  if you want
>   to move to the beginning of the text after a prompt, use C-c C-a.  (if
>   you want to use the C-c prefix for a number of control characters, set
>   the variable FI:SUBPROCESS-ENABLE-SUPERKEYS to true before starting a any
>   subprocesses.  see the documentation for the details.)

didn't know about C-c C-a.

thanks!

dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco Antoniotti  
View profile  
 More options Jun 2 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: Marco Antoniotti <marc...@galvani.parades.rm.cnr.it>
Date: 1998/06/02
Subject: Re: Allegro/Emacs C-a fix

Erik Naggum <c...@naggum.no> writes:
> * David Bakhash
> | If anyone out there is using the Allegro CL Emacs interface, you'll
> | know that it really kicks some butt.  However, when you're in the
> | *common-lisp* buffer, like at the top-level, you'll notice that C-a
> | brings you to the beginning of the line, and that isn't nice when the
> | prompt is there.  No one wants to edit the prompt!

>   this is the official Emacs design policy.  C-a should not guess a prompt,
>   it should move to the beginning of the line in the buffer.  if you want
>   to move to the beginning of the text after a prompt, use C-c C-a.  (if
>   you want to use the C-c prefix for a number of control characters, set
>   the variable FI:SUBPROCESS-ENABLE-SUPERKEYS to true before starting a any
>   subprocesses.  see the documentation for the details.)

Yep.  This is so.  ILISP does not do this one right and it has been on
the fix list forever (my fault :{ ).

--
Marco Antoniotti ===========================================
PARADES, Via San Pantaleo 66, I-00186 Rome, ITALY
tel. +39 - (0)6 - 68 80 79 23, fax. +39 - (0)6 - 68 80 79 26
http://www.parades.rm.cnr.it


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeffrey Mark Siskind  
View profile  
 More options Jun 2 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: Jeffrey Mark Siskind <q...@research.nj.nec.com>
Date: 1998/06/02
Subject: Re: Allegro/Emacs C-a fix

> >   this is the official Emacs design policy.  C-a should not guess a prompt,
> >   it should move to the beginning of the line in the buffer.  if you want
> >   to move to the beginning of the text after a prompt, use C-c C-a.
> Yep.  This is so.  ILISP does not do this one right and it has been on
> the fix list forever (my fault :{ ).

I could never understand the logic behind this. Both a prompt-sensitive and a
prompt-insensitive move-to-beginning-of-line are useful behaviours. However,
in my experience, the prompt-sensitive version is used far more often than the
prompt-insensitive version. Isn't it desirable to have the more-often-used
command bound to a shorter keystroke sequence. I.e. bind C-c C-a to the
prompt-insensitive version and bind C-a to the prompt-sensitive version? So I
believe that that ILisp got this right and the official Emacs policy got this
wrong. Cam someone please enlighten me with the compelling reasons that
motivate the official Emacs policy?

    Jeff (http://www.neci.nj.nec.com/homepages/qobi)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Raymond Toy  
View profile  
 More options Jun 3 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: Raymond Toy <t...@rtp.ericsson.se>
Date: 1998/06/03
Subject: Re: Allegro/Emacs C-a fix

Jeffrey Mark Siskind <q...@research.nj.nec.com> writes:

I agree with you.  I've never had the desire to edit the prompt, so I
like that fact that C-a ignores the prompt.  One of the first things I
did with Ilisp was to make it recognize the prompts for the Lisps that
I was using.

I note that in a shell buffer, C-a ignores the prompt.  So this
violates Emacs policy.  (Umm, I only tested this on XEmacs.  I don't
have Emacs anymore.)

Ray


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options Jun 3 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <c...@naggum.no>
Date: 1998/06/03
Subject: Re: Allegro/Emacs C-a fix

* Jeffrey Mark Siskind
| I could never understand the logic behind this.  Both a prompt-sensitive
| and a prompt-insensitive move-to-beginning-of-line are useful behaviours.
| However, in my experience, the prompt-sensitive version is used far more
| often than the prompt-insensitive version.  Isn't it desirable to have
| the more-often-used command bound to a shorter keystroke sequence.  I.e.,
| bind C-c C-a to the prompt-insensitive version and bind C-a to the
| prompt-sensitive version?  So I believe that that ILisp got this right
| and the official Emacs policy got this wrong.  Cam someone please
| enlighten me with the compelling reasons that motivate the official Emacs
| policy?

  well, there was a vote on this some time ago, quite obviously because
  this is a question of taste and an application of the principle of least
  astonishment, which I think is subjectivity at its best, and thus an
  arbitrary decision with both good "arguments" and people failing to see
  the logic of the arguments for any given viewpoint.  nonetheless, people
  voted overwhelmingly in favor of C-a retaining its usual semantics.

  now, I don't know whether this is rationalization after the fact or
  actually a good argument in favor of the status quo, but the same can be
  said to apply to other Emacs editing commands that have dual meaning in
  various special modes, like C-c, C-d, C-w, C-z, etc.

#:Erik
--
  "Where do you want to go to jail today?"
                        -- U.S. Department of Justice Windows 98 slogan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »