Re: [ESS] ess-dump-object-into-edit-buffer

2018-04-12 Thread Ista Zahn
On Thu, Apr 12, 2018 at 3:56 AM, Patrick Connolly
 wrote:
> Thanks for the response, however, if I start Emacs with a '-q' none of
> my ~/.emacs file is read, so Emacs doesn't know how to start R.  More
> to the point, I'm unable to run R within Emacs any other way.

The usual recipe is to start with emacs -q and then evaluate

(package-initialize)
(require 'ess-site)

in the scratch buffer, then check to see if you can reproduce the bug.
If you have ESS installed in a way that it is not in your load-path by
default you may have to do something along the lines of

(add-to-list 'load-path "/path/to/ESS/lisp/")
(load "ess-site")

Best,
Ista



>
> I gather there is a way of applying individual lines of the .emacs
> files but a bear with a small brain doesn't know how to do that (or
> where to look in the manual how to do it),
>
> It would appear, if it doesn't reproduce, that the problem is
> somewhere in my .emacs file.  That's a hodge-podge of various things
> I've picked up over the decades so it wouldn't be surprising to find
> some incompatibilities.
>
> Ideas appreciated.
>
>
> On Wed, 11-Apr-2018 at 07:44AM -0400, Ista Zahn wrote:
>
> |> I can't reproduce it with the latest ESS from melpa. Can you give
> |> reproduction steps starting with
> |>
> |> emacs -q
> |>
> |> ?
> |>
> |> --Ista
> |>
> |> On Wed, Apr 11, 2018 at 4:58 AM, Patrick Connolly
> |>  wrote:
> |> > For a long time I used to be able to use
> |> >
> |> > ess-dump-object-into-edit-buffer
> |> >
> |> > to create a buffer that could be used to edit the designated function
> |> > from anywhere on the search path to make a local version.
> |> >
> |> > Starting at about ess-15.x, only the first 5 or so lines of code is
> |> > made available which I took to be a bug that would be fixed.  However,
> |> > I was mistaken.  I installed ess-17.11 and it's still the same.  Being
> |> > a bear with only a small brain, I can't imagine what use that would be
> |> > if it's what is intended.
> |> >
> |> > Could it be that there is an additional setting that allows all of the
> |> > function (including comments) to be dumped into that buffer?  Perhaps,
> |> > more difficult to track down, I have something else in my ~/.emacs
> |> > file that is incompatible.
> |> >
> |> > TIA for suggestions.
> |> >
> |> > --
> |> > ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
> |> >___Patrick Connolly
> |> >  {~._.~}   Great minds discuss ideas
> |> >  _( Y )_ Average minds discuss events
> |> > (:_~*~_:)  Small minds discuss people
> |> >  (_)-(_)  . Eleanor Roosevelt
> |> >
> |> > ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
> |> >
> |> > __
> |> > ESS-help@r-project.org mailing list
> |> > https://stat.ethz.ch/mailman/listinfo/ess-help
>
> --
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
>___Patrick Connolly
>  {~._.~}   Great minds discuss ideas
>  _( Y )_ Average minds discuss events
> (:_~*~_:)  Small minds discuss people
>  (_)-(_)  . Eleanor Roosevelt
>
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] ess-dump-object-into-edit-buffer

2018-04-12 Thread Lionel Henry
I think we should adjust the max lines before calling dump().
In the mean time you can do it manually:

options(deparse.max.lines = NA)

The reason for the change of behaviour is this change in R:


https://github.com/wch/r-source/commit/201ddbd16e8f410c469dcd4695471c0bedd65dd5

dput() and dump() should probably set this option to NA themselves.

Lionel



> On 12 avr. 2018, at 09:56, Patrick Connolly  
> wrote:
> 
> Thanks for the response, however, if I start Emacs with a '-q' none of
> my ~/.emacs file is read, so Emacs doesn't know how to start R.  More
> to the point, I'm unable to run R within Emacs any other way.
> 
> I gather there is a way of applying individual lines of the .emacs
> files but a bear with a small brain doesn't know how to do that (or
> where to look in the manual how to do it),
> 
> It would appear, if it doesn't reproduce, that the problem is
> somewhere in my .emacs file.  That's a hodge-podge of various things
> I've picked up over the decades so it wouldn't be surprising to find
> some incompatibilities.
> 
> Ideas appreciated.
> 
> 
> On Wed, 11-Apr-2018 at 07:44AM -0400, Ista Zahn wrote:
> 
> |> I can't reproduce it with the latest ESS from melpa. Can you give
> |> reproduction steps starting with
> |> 
> |> emacs -q
> |> 
> |> ?
> |> 
> |> --Ista
> |> 
> |> On Wed, Apr 11, 2018 at 4:58 AM, Patrick Connolly
> |>  wrote:
> |> > For a long time I used to be able to use
> |> >
> |> > ess-dump-object-into-edit-buffer
> |> >
> |> > to create a buffer that could be used to edit the designated function
> |> > from anywhere on the search path to make a local version.
> |> >
> |> > Starting at about ess-15.x, only the first 5 or so lines of code is
> |> > made available which I took to be a bug that would be fixed.  However,
> |> > I was mistaken.  I installed ess-17.11 and it's still the same.  Being
> |> > a bear with only a small brain, I can't imagine what use that would be
> |> > if it's what is intended.
> |> >
> |> > Could it be that there is an additional setting that allows all of the
> |> > function (including comments) to be dumped into that buffer?  Perhaps,
> |> > more difficult to track down, I have something else in my ~/.emacs
> |> > file that is incompatible.
> |> >
> |> > TIA for suggestions.
> |> >
> |> > --
> |> > ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
> |> >___Patrick Connolly
> |> >  {~._.~}   Great minds discuss ideas
> |> >  _( Y )_ Average minds discuss events
> |> > (:_~*~_:)  Small minds discuss people
> |> >  (_)-(_)  . Eleanor Roosevelt
> |> >
> |> > ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
> |> >
> |> > __
> |> > ESS-help@r-project.org mailing list
> |> > https://stat.ethz.ch/mailman/listinfo/ess-help
> 
> -- 
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
>   ___Patrick Connolly   
> {~._.~}   Great minds discuss ideas
> _( Y )_Average minds discuss events 
> (:_~*~_:)  Small minds discuss people  
> (_)-(_) . Eleanor Roosevelt
> 
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
> 
> __
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] ess-dump-object-into-edit-buffer

2018-04-12 Thread Patrick Connolly
Thanks for the response, however, if I start Emacs with a '-q' none of
my ~/.emacs file is read, so Emacs doesn't know how to start R.  More
to the point, I'm unable to run R within Emacs any other way.

I gather there is a way of applying individual lines of the .emacs
files but a bear with a small brain doesn't know how to do that (or
where to look in the manual how to do it),

It would appear, if it doesn't reproduce, that the problem is
somewhere in my .emacs file.  That's a hodge-podge of various things
I've picked up over the decades so it wouldn't be surprising to find
some incompatibilities.

Ideas appreciated.


On Wed, 11-Apr-2018 at 07:44AM -0400, Ista Zahn wrote:

|> I can't reproduce it with the latest ESS from melpa. Can you give
|> reproduction steps starting with
|> 
|> emacs -q
|> 
|> ?
|> 
|> --Ista
|> 
|> On Wed, Apr 11, 2018 at 4:58 AM, Patrick Connolly
|>  wrote:
|> > For a long time I used to be able to use
|> >
|> > ess-dump-object-into-edit-buffer
|> >
|> > to create a buffer that could be used to edit the designated function
|> > from anywhere on the search path to make a local version.
|> >
|> > Starting at about ess-15.x, only the first 5 or so lines of code is
|> > made available which I took to be a bug that would be fixed.  However,
|> > I was mistaken.  I installed ess-17.11 and it's still the same.  Being
|> > a bear with only a small brain, I can't imagine what use that would be
|> > if it's what is intended.
|> >
|> > Could it be that there is an additional setting that allows all of the
|> > function (including comments) to be dumped into that buffer?  Perhaps,
|> > more difficult to track down, I have something else in my ~/.emacs
|> > file that is incompatible.
|> >
|> > TIA for suggestions.
|> >
|> > --
|> > ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
|> >___Patrick Connolly
|> >  {~._.~}   Great minds discuss ideas
|> >  _( Y )_ Average minds discuss events
|> > (:_~*~_:)  Small minds discuss people
|> >  (_)-(_)  . Eleanor Roosevelt
|> >
|> > ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
|> >
|> > __
|> > ESS-help@r-project.org mailing list
|> > https://stat.ethz.ch/mailman/listinfo/ess-help

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___Patrick Connolly   
 {~._.~}   Great minds discuss ideas
 _( Y )_ Average minds discuss events 
(:_~*~_:)  Small minds discuss people  
 (_)-(_)  . Eleanor Roosevelt
  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help