Christian Liesen | 1 Mar 2009 22:57
Picon
Favicon

Re: Newbie question: Aquamacs autoscroll in second, frame or buffer

Hi Stefan,

works like a charme, many thanks for providing that snippet. I like Aquamacs as an editor, and now working with R feels just great.

All the best wishes,
Christian



Am 28.02.2009 um 11:04 schrieb Stefan Strohmeier:


Hi Christian,

On 27 Feb 2009, at 12:04, Christian Liesen wrote:
> I began working with Aquamacs only last week and hope that someone can 
> point me to a solution for auto-scrolling other frames or buffers. I'm 
> lost.
>
> What I do is this:
>
> -- open Aquamacs
> -- open a file with R syntax in a first frame
> -- open a "New Buffer in New Frame", start R in that second frame
>
> Everything works fine except that the second frame with R does not 
> autoscroll. In order to see the results of the commands I'm sending 
> from the syntax frame, I always have to switch to the R frame, scroll 
> down to see the output, then go back again to the syntax frame. This 
> is getting pretty tiresome over time.

I use the following code to see the results of a data
object in the *R* buffer when a transcript buffer is
active:

(setq comint-scroll-to-bottom-on-input t)
(setq comint-scroll-to-bottom-on-output t)
(setq comint-move-point-for-output t)

For a better workflow you can try the following code.
It finds out whether you want to evaluate a marked
region or a line and binds it to just one shortcut.

   (defun my-ess-eval ()
     (interactive)
     ;;(my-ess-start-R)
     (if (and transient-mark-mode mark-active)
        (call-interactively 'ess-eval-region)
       (call-interactively 'ess-eval-line-and-step)))

   (add-hook 'ess-mode-hook
            '(lambda()
               (local-set-key [(shift return)] 'my-ess-eval)))


Hope that helps,

Stefan Strohmeier
Universität Bayreuth

_____________________________________________________________
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
Thomas Käufl | 2 Mar 2009 11:37
Picon
Favicon

Re: Aquamacs: Latex does not work

Hi David,

Am 27.02.2009 um 22:26 schrieb David Reitter:

> Hi Thomas,
>
> On 27 Feb 2009, at 15:09, Thomas Käufl wrote:
>> ...
>
> Aquamacs sets a few additional paths (to TeXLive) in case the user  
> hasn't set them.  This is why you see additional paths.

then, we are on a Mac, the (default) path should be /usr/texbin.
As far as I know, texbin is a symbolic link made by Mac-Tex.

> ...
> What is the value of your `shell-file-name'?

on the G5:

echo $shell
/bin/tcsh

on the G4:

[i10mac8:~] kaeufl% echo $shell
/bin/tcsh
[i10mac8:~] kaeufl% echo $SHELL
/bin/bash

> What is the value of $PATH when you start Terminal.app (without  
> starting another shell)?
> The default login shell is essential here.  The $PATH needs to be  
> correct there.
> ...

After starting a login shell on the G4:

Welcome to Darwin!
i10mac8:~ kaeufl$ echo $SHELL
/bin/bash
i10mac8:~ kaeufl$ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
i10mac8:~ kaeufl$

The same values are obtained on the G5

I hope this helps
Thomas

_____________________________________________________________
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 Mar 2009 13:39
Picon
Gravatar

Re: Aquamacs: Latex does not work

On 2 Mar 2009, at 05:37, Thomas Käufl wrote:
>> Aquamacs sets a few additional paths (to TeXLive) in case the user  
>> hasn't set them.  This is why you see additional paths.
>
> then, we are on a Mac, the (default) path should be /usr/texbin.
> As far as I know, texbin is a symbolic link made by Mac-Tex.

The current nightly build (http://aquamacs.org/nightlies.shtml ) sets  
this as well.  So, you may have more luck with that.

Looking at the paths you sent me, it doesn't seem like your system is  
configured to have /usr/texbin in the PATH, at least not the G4.
Thus, I wouldn't expect Aquamacs to look for anything there!

--
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
Thomas Käufl | 2 Mar 2009 21:08
Picon
Favicon

Re: Aquamacs: Latex does not work

Hi David,

Am 2. Mrz 2009 um 13:39 schrieb David Reitter:

> ...
> The current nightly build (http://aquamacs.org/nightlies.shtml )  
> sets this as well.  So, you may have more luck with that.

Thank you for your help. Mentioning the login shell was the
hint which put me on the right track.

In /etc/profile I added the path to the TeX binaries, fired up
Aquamacs (with my customizations) and processed a Latex file. It
worked. (To be complete: First I removed the preferences of
Terminal and logged out.)

> Looking at the paths you sent me, it doesn't seem like your system  
> is configured to have /usr/texbin in the PATH, at least not the G4.
> ...

I had a problem with my Latex installation. In January I switched
to Mac-Tex and as far as I remember everything worked. Later,
I installed the most recent security update of Apple and a QuickTime
update too. After that, all pathes to the Tex binaries were broken.
I fixed that for the tc-shell (and forgot to use /usr/texbin).

My installation of Aquamacs 1.6 could not process Latex files
too. The reasons are unknown to me. Could (security) updates
of Apple be a problem?

Thomas

_____________________________________________________________
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
Peter Dyballa | 2 Mar 2009 21:28
Picon

Re: Aquamacs: Latex does not work


Am 02.03.2009 um 21:08 schrieb Thomas Käufl:

> My installation of Aquamacs 1.6 could not process Latex files
> too. The reasons are unknown to me. Could (security) updates
> of Apple be a problem?

Apple's security updates can destroy things: today, after installing  
SecUpd2009-001PPC, Crashreporter can't send its reports. And as  
before Dock crashes every time I launch Desktop Manager or CodeTek  
VirtualDesktop Lite. Another re-install of Mac OS X is waiting ...  
(without SecUpd2009-001PPC, because in Mac OS X there is no way back  
out such a faulty package)

--
Mit friedvollen Grüßen

   Pete

      _o    o         o   o
    _<<     \\_/\_,   \\_ \\_/\_,
   (*)/(*) (*)   (*) (*) `-    (*)

_____________________________________________________________
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

long hong | 6 Mar 2009 08:08
Picon

AEmacser1.7 cannot show chinese punctuation?

Today I had just updated my aquaemacs from ver1.6 to ver1.7 and found  
Chinese punctuations could not be shown even in internal tutorials  
written in Chinese. There is the picture:
Attachment (Picture 1.zip): application/zip, 465 KiB

Would anyone like to help me to solve this? Thanks!
_____________________________________________________________
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 | 7 Mar 2009 14:31
Picon
Gravatar

Re: AEmacser1.7 cannot show chinese punctuation?

Hello,
I understand this worked for you in 1.6, correct?

The CN-GB tutorial displays fine for me in 1.7.  Please restart  
Aquamacs without customizations (Help -> Diagnose menu) and try again.  
Also, you can put the cursor before one of the punctuation signs and  
press C-u C-x =.  That'll pop up a window outputting something like  
what I've pasted below.  The contents would be interesting.

--
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!

   character: 。 (37027, #o110243, #x90a3, U+3002)
     charset: chinese-gb2312 (GB2312 Chinese simplified: ISO-IR-58.)
  code point: #x21 #x23
      syntax: . 	which means: punctuation
    category: c:Chinese |:While filling, we can break a line at this  
character.
buffer code: #x91 #xA1 #xA3
   file code: #xA1 #xA3 (encoded by coding system chinese-iso-8bit-unix)
     display: by this font (glyph code)
      -apple-fang song-medium-r-normal--13-130-72-72-m-130- 
gb2312.1980-0 (#xA1A3)

On Mar 6, 2009, at 2:08 AM, long hong wrote:

> Today I had just updated my aquaemacs from ver1.6 to ver1.7 and  
> found Chinese punctuations could not be shown even in internal  
> tutorials written in Chinese. There is the picture:
> <Picture 1.zip>

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
long hong | 7 Mar 2009 16:08
Picon

Re: AEmacser1.7 cannot show chinese punctuation?

hi, I've restarted v1.7 using the item in the Diagnose menu.  
Unfortunately the problem remains for me... And I don't quite  
understand the contents popped up after using C-u C-x =. Is it a font  
problem?
On Mar 7, 2009, at 9:31 PM, David Reitter wrote:

> Hello,
> I understand this worked for you in 1.6, correct?
>
> The CN-GB tutorial displays fine for me in 1.7.  Please restart  
> Aquamacs without customizations (Help -> Diagnose menu) and try  
> again. Also, you can put the cursor before one of the punctuation  
> signs and press C-u C-x =.  That'll pop up a window outputting  
> something like what I've pasted below.  The contents would be  
> interesting.
>
> --
> 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!
>
>
>  character: 。 (37027, #o110243, #x90a3, U+3002)
>    charset: chinese-gb2312 (GB2312 Chinese simplified: ISO-IR-58.)
> code point: #x21 #x23
>     syntax: . 	which means: punctuation
>   category: c:Chinese |:While filling, we can break a line at this  
> character.
> buffer code: #x91 #xA1 #xA3
>  file code: #xA1 #xA3 (encoded by coding system chinese-iso-8bit-unix)
>    display: by this font (glyph code)
>     -apple-fang song-medium-r-normal--13-130-72-72-m-130- 
> gb2312.1980-0 (#xA1A3)
>
>
>
>
> On Mar 6, 2009, at 2:08 AM, long hong wrote:
>
>> Today I had just updated my aquaemacs from ver1.6 to ver1.7 and  
>> found Chinese punctuations could not be shown even in internal  
>> tutorials written in Chinese. There is the picture:
>> <Picture 1.zip>
>
> _____________________________________________________________
> 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 | 7 Mar 2009 16:14
Picon
Gravatar

Re: AEmacser1.7 cannot show chinese punctuation?

On Mar 7, 2009, at 10:08 AM, long hong wrote:

> hi, I've restarted v1.7 using the item in the Diagnose menu.  
> Unfortunately the problem remains for me... And I don't quite  
> understand the contents popped up after using C-u C-x =. Is it a  
> font problem?

Probably.  Just compare the contents of that window or post them.

--
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
long hong | 7 Mar 2009 16:28
Picon

Re: AEmacser1.7 cannot show chinese punctuation?

Mine is as bellow:

   character: : (37306, #o110672, #x91ba, U+FF1A)
     charset: chinese-gb2312 (GB2312 Chinese simplified: ISO-IR-58.)
  code point: #x23 #x3A
      syntax: . 	which means: punctuation
    category: A:Alpha-numeric characters of 2-byte character sets  
c:Chinese
	     |:While filling, we can break a line at this character.
buffer code: #x91 #xA3 #xBA
   file code: #xA3 #xBA (encoded by coding system chinese-iso-8bit-unix)
     display: by this font (glyph code)
      -apple-gb18030 bitmap-medium-r-normal--13-130-72-72-m-130- 
gb2312.1980-0 (#xA3BA)

On Mar 7, 2009, at 11:14 PM, David Reitter wrote:

> On Mar 7, 2009, at 10:08 AM, long hong wrote:
>
>> hi, I've restarted v1.7 using the item in the Diagnose menu.  
>> Unfortunately the problem remains for me... And I don't quite  
>> understand the contents popped up after using C-u C-x =. Is it a  
>> font problem?
>
>
> Probably.  Just compare the contents of that window or post them.
>
>
> --
> 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!

_____________________________________________________________
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