Nicholas Reich | 1 Aug 2008 21:53
Picon

forward-word binding

I just installed Aquamacs 1.4 and one keystroke that I used all the  
time has been changed!

Specifically, when I used to type control-left/right the cursor would  
move one word (ignoring parentheses) in either direction.  I suspect,  
but don't know for sure, that this is the 'forward-word function.

Now, both control-left/right and [Apple]-left/right move me to the  
beginning/end of the current line that I'm on.  I'd like to bring back  
the old behavior to the control commands.

How can I do this?  I tried editing the osxkeys.el file in / 
Applications/Aquamacs\ Emacs.app/Contents/Resources/site-lisp/macosx/  
with the lines
    (define-key map '[(control left)] 'backward-word)
    (define-key map '[(control right)] 'forward-word)
but I don't really know what I'm doing here.

Any suggestions?

Thanks,
nick
_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
(Continue reading)

Nathaniel Cunningham | 2 Aug 2008 01:09
Picon
Gravatar

Re: forward-word binding

On Fri, Aug 1, 2008 at 2:53 PM, Nicholas Reich <nick.reich <at> gmail.com> wrote:
I just installed Aquamacs 1.4 and one keystroke that I used all the time has been changed!
Specifically, when I used to type control-left/right the cursor would move one word (ignoring parentheses) in either direction.  I suspect, but don't know for sure, that this is the 'forward-word function.

FYI, the change was made in order to match standard OS X behavior. (Option-left/right was similarly intended to be changed to backward/forward-word in 1.4, but your email has brought it to my attention that it was missed somehow!)

I'd like to bring back the old behavior to the control commands.
How can I do this?  I tried editing the osxkeys.el file in /Applications/Aquamacs\ Emacs.app/Contents/Resources/site-lisp/macosx/ with the lines

In general, users should not edit the files within Aquamacs Emacs.app (you'll lose your customizations when you change versions, and it will be hard to distinguish built-in behaviors from the effects of your personal settings).  Instead, make changes to
~/Library/Application Support/Aquamacs Emacs/Preferences.el

The lines
(global-set-key [(\C right)] 'forward-word)
(global-set-key [(\C left)] 'backward-word)
should do what you want, but you may want to consider using \M instead of \C here, to match standard OS X behavior. 

--Nathaniel

_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
Tom Van Vleck | 2 Aug 2008 16:11
Picon
Favicon

Re: forward-word binding

On Aug 1, 2008, at 7:09 PM, Nathaniel Cunningham wrote:
> FYI, the change was made in order to match standard OS X behavior.  
> (Option-left/right was similarly intended to be changed to backward/ 
> forward-word in 1.4, but your email has brought it to my attention  
> that it was missed somehow!)

Many of us use Emacs on multiple different platforms in the same day.
Switching our behavior back and forth depending on the platform is  
error prone.
I think that where behavior is the same on all Emacsen it should be  
left that way in Aquamacs.
The beauty of Aquamacs was that it added behavior for flower-whatever  
to the existing Emacs function, without conflict with what was there.

Operating systems come and go.  My Emacs habits have developed over  
almost 30 years.
I expect that I will be using Emacs on Mac OS XI, XII, etc.
I was happy to see some features flow in the other direction, with OS  
X adopting ctrl-F and so on in Mail.app.

I would prefer that gratuitous changes to existing Emacs behavior in  
Aquamacs
should be opt-in rather than opt-out.  Go ahead, experiment, add new  
choices
to the menus.  Some will be wonderful, and each person can each adopt  
them as desired and when convenient.
The ones, like changing ctrl-right, that conflict with usage on other  
systems, I won't adopt.

_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
Daniel Stegmueller | 2 Aug 2008 17:11
Picon

Re: forward-word binding

Well, that does not work if key-combinations are an integral part of  
the system.
Ctrl-left-right, for example, is used for switching desktops under OS X.

You do have a valid point, of course. But to me Aquamacs (in  
comparison to Carbon Emacs) was always focused on OS-integration...

Best,
Daniel

On 2 Aug 2008, at 15:11, Tom Van Vleck wrote:

> On Aug 1, 2008, at 7:09 PM, Nathaniel Cunningham wrote:
>> FYI, the change was made in order to match standard OS X behavior.  
>> (Option-left/right was similarly intended to be changed to backward/ 
>> forward-word in 1.4, but your email has brought it to my attention  
>> that it was missed somehow!)
>
>
> Many of us use Emacs on multiple different platforms in the same day.
> Switching our behavior back and forth depending on the platform is  
> error prone.
> I think that where behavior is the same on all Emacsen it should be  
> left that way in Aquamacs.
> The beauty of Aquamacs was that it added behavior for flower- 
> whatever to the existing Emacs function, without conflict with what  
> was there.
>
> Operating systems come and go.  My Emacs habits have developed over  
> almost 30 years.
> I expect that I will be using Emacs on Mac OS XI, XII, etc.
> I was happy to see some features flow in the other direction, with  
> OS X adopting ctrl-F and so on in Mail.app.
>
> I would prefer that gratuitous changes to existing Emacs behavior in  
> Aquamacs
> should be opt-in rather than opt-out.  Go ahead, experiment, add new  
> choices
> to the menus.  Some will be wonderful, and each person can each  
> adopt them as desired and when convenient.
> The ones, like changing ctrl-right, that conflict with usage on  
> other systems, I won't adopt.
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs <at> email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

Daniel Stegmueller
Landgrafenstr. 14
60486 Frankfurt a.M.
069/24140381
d.stegmueller <at> gmail.com

_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
David Reitter | 2 Aug 2008 19:28
Picon
Gravatar

Re: forward-word binding

On 2 Aug 2008, at 16:11, Tom Van Vleck wrote:
>
> Many of us use Emacs on multiple different platforms in the same day.
> Switching our behavior back and forth depending on the platform is  
> error prone.
> I think that where behavior is the same on all Emacsen it should be  
> left that way in Aquamacs.
> The beauty of Aquamacs was that it added behavior for flower- 
> whatever to the existing Emacs function, without conflict with what  
> was there.
>
> Operating systems come and go.  My Emacs habits have developed over  
> almost 30 years.

I understand, and I usually recommend Carbon Emacs Package to users  
like you.  Its focus is on cross-platform coherence.

Aquamacs' focus is on integrating with other applications and the  
habits that have formed from using OS X applications.

> I would prefer that gratuitous changes to existing Emacs behavior in  
> Aquamacs
> should be opt-in rather than opt-out.  Go ahead, experiment, add new  
> choices
> to the menus.  Some will be wonderful, and each person can each  
> adopt them as desired and when convenient.

The service we provide is to make it zero-configuration for those who  
want integration with the desktop.

However, it you prefer not to see any changes, don't upgrade.

If you do upgrade, I will endeavor to make it easy for someone who  
knows the basics of Emacs Lisp to undo any new defaults.  We try to  
announce them in the change log.

--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and  
support the Aquamacs Project!

Attachment (smime.p7s): application/pkcs7-signature, 2193 bytes
_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
Joe Davison | 2 Aug 2008 19:47
Picon

Re: forward-word binding

Tom,

    You probably want to check out Emacs on Aqua -- the Cocoa port of  
standard emacs, rather than Aquamacs, which has different goals.

joe

On Aug 2, 2008, at 9:11 AM, Tom Van Vleck wrote:

> On Aug 1, 2008, at 7:09 PM, Nathaniel Cunningham wrote:
>> FYI, the change was made in order to match standard OS X behavior.  
>> (Option-left/right was similarly intended to be changed to  
>> backward/forward-word in 1.4, but your email has brought it to my  
>> attention that it was missed somehow!)
>
>
> Many of us use Emacs on multiple different platforms in the same day.
> Switching our behavior back and forth depending on the platform is  
> error prone.
> I think that where behavior is the same on all Emacsen it should be  
> left that way in Aquamacs.
> The beauty of Aquamacs was that it added behavior for flower- 
> whatever to the existing Emacs function, without conflict with what  
> was there.
>
> Operating systems come and go.  My Emacs habits have developed over  
> almost 30 years.
> I expect that I will be using Emacs on Mac OS XI, XII, etc.
> I was happy to see some features flow in the other direction, with  
> OS X adopting ctrl-F and so on in Mail.app.
>
> I would prefer that gratuitous changes to existing Emacs behavior  
> in Aquamacs
> should be opt-in rather than opt-out.  Go ahead, experiment, add  
> new choices
> to the menus.  Some will be wonderful, and each person can each  
> adopt them as desired and when convenient.
> The ones, like changing ctrl-right, that conflict with usage on  
> other systems, I won't adopt.
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs <at> email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
Nicholas Reich | 2 Aug 2008 20:13
Picon

Re: forward-word binding

Nathaniel et al-

Thanks for your suggestions. I will try to use \M-left/ and \M-right  
instead.

I've tried to implement them but the behavior that I describe below is  
not changing once I've created the Preferences.el file.  My questions  
boil down to two issues:

(1) perhaps the function I'm looking for is not 'forward-word.  I am  
particularly interested in the function that will jump from word to  
word and will even jump into the middle of a set of parentheses,  
rather than jumping over anything contained within them.

(2) Even if the function that I'm looking for is 'forward-word,  
creating the Preferences.el in ~/Library/Application Support/Aquamacs  
Emacs/Preferences.el does not seem to have any impact on the behavior  
of Aquamacs.  I've obviously tried quitting the application and even  
restarting the computer in an attempt to have any changes take effect.

Nick

On Aug 1, 2008, at 7:09 PM, Nathaniel Cunningham wrote:

> On Fri, Aug 1, 2008 at 2:53 PM, Nicholas Reich  
> <nick.reich <at> gmail.com> wrote:
> I just installed Aquamacs 1.4 and one keystroke that I used all the  
> time has been changed!
> Specifically, when I used to type control-left/right the cursor  
> would move one word (ignoring parentheses) in either direction.  I  
> suspect, but don't know for sure, that this is the 'forward-word  
> function.
>
> FYI, the change was made in order to match standard OS X behavior.  
> (Option-left/right was similarly intended to be changed to backward/ 
> forward-word in 1.4, but your email has brought it to my attention  
> that it was missed somehow!)
>
> I'd like to bring back the old behavior to the control commands.
> How can I do this?  I tried editing the osxkeys.el file in / 
> Applications/Aquamacs\ Emacs.app/Contents/Resources/site-lisp/ 
> macosx/ with the lines
>
> In general, users should not edit the files within Aquamacs  
> Emacs.app (you'll lose your customizations when you change versions,  
> and it will be hard to distinguish built-in behaviors from the  
> effects of your personal settings).  Instead, make changes to
> ~/Library/Application Support/Aquamacs Emacs/Preferences.el
>
> The lines
> (global-set-key [(\C right)] 'forward-word)
> (global-set-key [(\C left)] 'backward-word)
> should do what you want, but you may want to consider using \M  
> instead of \C here, to match standard OS X behavior.
>
> --Nathaniel
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs <at> email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
David Reitter | 2 Aug 2008 21:45
Picon
Gravatar

Re: forward-word binding

On 2 Aug 2008, at 20:13, Nicholas Reich wrote:
>>
>> In general, users should not edit the files within Aquamacs  
>> Emacs.app (you'll lose your customizations when you change  
>> versions, and it will be hard to distinguish built-in behaviors  
>> from the effects of your personal settings).  Instead, make changes  
>> to
>> ~/Library/Application Support/Aquamacs Emacs/Preferences.el
>>

wrong path, check manual - it goes in Preferences/

- D

--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and  
support the Aquamacs Project!

Attachment (smime.p7s): application/pkcs7-signature, 2193 bytes
_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
Nathaniel Cunningham | 2 Aug 2008 23:35
Picon
Gravatar

Re: forward-word binding

Nicholas -- David is right of course; I wrote the wrong path off the top of my head.  Sorry to have you spinning your wheels!

Use C-h k <key combo> to check what is assigned to a given key or key combo.

--Nathaniel

On Sat, Aug 2, 2008 at 2:45 PM, David Reitter <david.reitter <at> gmail.com> wrote:

wrong path, check manual - it goes in Preferences/
 

_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
Normen Mueller | 5 Aug 2008 03:41

aquamacs opens X11

Dear all,

     I am using Intel Mac OS X 10.5.4 and I have just installed  
aquamacs 1.4 after I have installed skim.  I wonder why every time I  
open up aquamacs, X11 gets opened as well???  Is there any way to  
avoid this?

     BTW, on my PowerBook that is not the case, there only aquamacs  
pops up w/o starting X11.

     I would appreciate any suggestions...

Cheers,
   /nm
_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

Gmane