Patrick Connolly | 7 Jul 2005 01:18
Picon
Favicon

[ESS] How does the ess-function-outline-file work?

I've used ess-function-outline-file for years now, and can't remember
what it needs to work but it's been great.  Just what is C-f doing
that makes it effect the outline file into a function buffer?  

I recently set up R-2.1.1 and ess-5.2.8 on a new machine running FC4,
everything works fine except I don't get the function outline working
when I do a C-f in a new buffer.  It works fine on older versions of
Redhat/Fedora, but when I set it up with Fedora Core4, I had to change
references to emacs in my .Xdefaults to x-emacs (IIRC).

Could something similar be going on with ess-function-outline-file?

TIA

--

-- 
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand 
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it.  ---Steven Wright 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~

______________________________________________
ESS-help <at> stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

(Continue reading)

Patrick Connolly | 7 Jul 2005 11:24
Picon
Favicon

Re: [ESS] How does the ess-function-outline-file work?

On Thu, 07-Jul-2005 at 11:18AM +1200, Patrick Connolly wrote:

|> I've used ess-function-outline-file for years now, and can't remember
|> what it needs to work but it's been great.  Just what is C-f doing

Those who knew what I was referring to will know I meant "C-c C-f".

--

-- 
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand 
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it.  ---Steven Wright 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~

______________________________________________
ESS-help <at> stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Martin Maechler | 7 Jul 2005 17:15
Picon
Favicon
Gravatar

Re: [ESS] How does the ess-function-outline-file work?

>>>>> "PaCo" == Patrick Connolly <p.connolly <at> hortresearch.co.nz>
>>>>>     on Thu, 7 Jul 2005 21:24:31 +1200 writes:

    PaCo> On Thu, 07-Jul-2005 at 11:18AM +1200, Patrick Connolly
    PaCo> wrote: |> I've used ess-function-outline-file for
    PaCo> years now, and can't remember |> what it needs to work
    PaCo> but it's been great.  Just what is C-f doing

    PaCo> Those who knew what I was referring to will know I
    PaCo> meant "C-c C-f".

I thought I knew what you meant, but 
no longer :-) after this ``correction'' (you mean "C-c f" , right?)

For me,  C-h f  ess-function-outline-file
gives

 > ess-function-outline-file's value is 
 > "/sfs/u/staff/maechler/emacs/ess/etc//function-outline.S"

 > Documentation:
 > The file name of the ess-function outline that is to be inserted at point,
 > when C-c f is used.
 > Placeholders (substituted `at runtime'): $A$ for `Author', $D$ for `Date'.

 > Defined in `essl-s'.

and that help even explains what the file needs to contain...
For me, the file mentioned above has this content :
____________________________________________________________________________
(Continue reading)

Henrik Andersson | 8 Jul 2005 10:05
Picon
Favicon

Re: [ESS] How does the ess-function-outline-file work?

I updated to the latest ESS via svn five minutes ago

When I open an file in ESS[S] mode, and type "C-c f" nothing happens...

C-h f ess-f TAB reveals:
ess-find-dump-file-other-window	   ess-find-exec
ess-find-exec-completions	   ess-find-help-file
ess-find-rterm			   ess-fix-EQ-assign
ess-fix-comments		   ess-fix-dot
ess-fix-dot-1			   ess-fix-dot-more
ess-fix-miscellaneous		   ess-flatten-list
ess-flatten-list-1		   ess-force-buffer-current

No ess-function-outline as far as I can see.

Strange...

Martin Maechler wrote:
>>>>>>"PaCo" == Patrick Connolly <p.connolly <at> hortresearch.co.nz>
>>>>>>    on Thu, 7 Jul 2005 21:24:31 +1200 writes:
> 
> 
>     PaCo> On Thu, 07-Jul-2005 at 11:18AM +1200, Patrick Connolly
>     PaCo> wrote: |> I've used ess-function-outline-file for
>     PaCo> years now, and can't remember |> what it needs to work
>     PaCo> but it's been great.  Just what is C-f doing
> 
>     PaCo> Those who knew what I was referring to will know I
>     PaCo> meant "C-c C-f".
> 
(Continue reading)

John Maindonald | 8 Jul 2005 11:12
Picon
Picon

Re: [ESS] Use of up arrow and down arrow keys

I've just now moved to using Aquaemacs (Mac OS X), from

http://aquamacs.org/

I've had code in my .emacs file that binds the up arrow key
to <ESC>P, etc.  This does not work with Aquaemacs; I get
the message:
   "Symbol's value as variable is void: xemacs-flag"
Is there some way to make the up and down arrow (cursor)
keys work, with my setup?

John Maindonald.

(defun smart-comint-up ()
   "Implement the behaviour of the up arrow key in comint mode.  At
the end of buffer, do comint-previous-input, otherwise just move in
the buffer."
   (interactive)
   (let ((previous-region-status (if xemacs-flag (region-active-p) nil)))
     (if (= (point) (point-max))
	(comint-previous-input 1)
       (previous-line 1))
     (when previous-region-status
       (activate-region))))

(defun smart-comint-down ()
   "Implement the behaviour of the down arrow key in comint mode.  At
the end of buffer, do comint-next-input, otherwise just move in the
buffer."
   (interactive)
(Continue reading)

John Maindonald | 8 Jul 2005 11:17
Picon
Picon

Re: [ESS] Use of up arrow and down arrow keys

[I forgot to say that I am using ess-5.2.8]

I've just now moved to using Aquaemacs (Mac OS X), from

http://aquamacs.org/

I've had code in my .emacs file that binds the up arrow key
to <ESC>P, etc.  This does not work with Aquaemacs; I get
the message:
   "Symbol's value as variable is void: xemacs-flag"
Is there some way to make the up and down arrow (cursor)
keys work, with my setup?

John Maindonald             email: john.maindonald <at> anu.edu.au
phone : +61 2 (6125)3473    fax  : +61 2(6125)5549
Centre for Bioinformation Science, Room 1194,
John Dedman Mathematical Sciences Building (Building 27)
Australian National University, Canberra ACT 0200.

______________________________________________
ESS-help <at> stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Stephen Eglen | 8 Jul 2005 11:35
Picon
Picon
Favicon

Re: [ESS] Use of up arrow and down arrow keys

John Maindonald writes:
 > [I forgot to say that I am using ess-5.2.8]
 > 
 > I've just now moved to using Aquaemacs (Mac OS X), from
 > 
 > http://aquamacs.org/
 > 
 > I've had code in my .emacs file that binds the up arrow key
 > to <ESC>P, etc.  This does not work with Aquaemacs; I get
 > the message:
 >    "Symbol's value as variable is void: xemacs-flag"
 > Is there some way to make the up and down arrow (cursor)
 > keys work, with my setup?
 > 
Should be possible, but there's a bug somewhere that we'll need your
help tracking down.  Do as the info pages for ESS suggest:

----
   If Emacs reports an error, backtraces can help us debug the problem.
Type "M-x set-variable RET debug-on-error RET t RET".  Then run the
command that causes the error and you should see a *Backtrace* buffer
containing debug information; send us that buffer.
----

Also, does the text "xemacs-flag" occur in your .emacs?  

Stephen

______________________________________________
ESS-help <at> stat.math.ethz.ch mailing list
(Continue reading)

Martin Maechler | 8 Jul 2005 12:13
Picon
Favicon
Gravatar

Re: [ESS] How does the ess-function-outline-file work?

>>>>> "Henrik" == Henrik Andersson <h.andersson <at> nioo.knaw.nl>
>>>>>     on Fri, 08 Jul 2005 10:05:16 +0200 writes:

    Henrik> I updated to the latest ESS via svn five minutes ago
    Henrik> When I open an file in ESS[S] mode, and type "C-c f"
    Henrik> nothing happens...

    Henrik> C-h f ess-f TAB reveals:
	    ----
    Henrik> ess-find-dump-file-other-window ess-find-exec
    Henrik> ess-find-exec-completions ess-find-help-file
    Henrik> ess-find-rterm ess-fix-EQ-assign ess-fix-comments
    Henrik> ess-fix-dot ess-fix-dot-1 ess-fix-dot-more
    Henrik> ess-fix-miscellaneous ess-flatten-list
    Henrik> ess-flatten-list-1 ess-force-buffer-current

    Henrik> No ess-function-outline as far as I can see.

    Henrik> Strange...

No, not really strange.  

1) The function is called ess-insert-function-outline;
   [ Patrick had been asking about the corresponding *variable* 
     with name ess-function-outline ]

2) "C-c f" is not activated by default since a good Emacs
   package is not allowed to set any "C-c <character>" key
   settings  {they are reserved for user-private settings}.
   But I concluded from Patrick's e-mail that he had found the
(Continue reading)

Martin Maechler | 8 Jul 2005 12:20
Picon
Favicon
Gravatar

Re: [ESS] Use of up arrow and down arrow keys

>>>>> "StEgl" == Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk>
>>>>>     on Fri, 8 Jul 2005 10:35:52 +0100 writes:

    StEgl> John Maindonald writes:
    >> [I forgot to say that I am using ess-5.2.8]
    >> 
    >> I've just now moved to using Aquaemacs (Mac OS X), from
    >> 
    >> http://aquamacs.org/
    >> 
    >> I've had code in my .emacs file that binds the up arrow
    >> key to <ESC>P, etc.  This does not work with Aquaemacs; I
    >> get the message: "Symbol's value as variable is void:
    >> xemacs-flag" Is there some way to make the up and down
    >> arrow (cursor) keys work, with my setup?
    >> 
    StEgl> Should be possible, but there's a bug somewhere that
    StEgl> we'll need your help tracking down.  Do as the info
    StEgl> pages for ESS suggest:

    StEgl> ---- If Emacs reports an error, backtraces can help
    StEgl> us debug the problem.  Type "M-x set-variable RET
    StEgl> debug-on-error RET t RET".  Then run the command that
    StEgl> causes the error and you should see a *Backtrace*
    StEgl> buffer containing debug information; send us that
    StEgl> buffer.  ----

(maybe the above is not necessary)

    StEgl> Also, does the text "xemacs-flag" occur in your
(Continue reading)

Henrik Andersson | 8 Jul 2005 12:20
Picon
Favicon

Re: [ESS] How does the ess-function-outline-file work?

Thanks for the clarification.

Martin Maechler wrote:

  > 2) "C-c f" is not activated by default since a good Emacs
>    package is not allowed to set any "C-c <character>" key
>    settings  {they are reserved for user-private settings}.
>    But I concluded from Patrick's e-mail that he had found the
>    hacky function  (ess-add-MM-keys)   -- guess who MM is --
>    and that he does {in his ~/.emacs equivalent}
>    something similar to what we do here, namely
>       (add-hook 'ess-mode-hook 'ess-add-MM-keys)

I see, I've added this to my ~/.emacs

______________________________________________
ESS-help <at> stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Gmane