[ESS-bugs] ess-mode 12.09 [rev. 5167 (2012-09-24)]; R-object-tooltip not working (again)

Martin Maechler maechler at stat.math.ethz.ch
Sat Sep 29 15:02:08 CEST 2012


>>>>> Vitalie Spinu <spinuvit at gmail.com>
>>>>>     on Sat, 29 Sep 2012 13:20:02 +0200 writes:

    > Hi,

    > The idea is great. I was actually planning to migrate it
    > into ESS12.09, but have never done that, because we didn't
    > get time for our ESSR support package. The package is
    > needed to replace the pseudo dispatch which Eric is now
    > using in ess-R-object-tooltip-alist, with R's generic
    > mechanism.

    > The function should also be further extended to allow
    > rotation of meaningfully information, str, summary,
    > methods arguments, may be even plots. Also it should work
    > in terminal, and that means to pop an electric buffer.


    > ---- 
    > In recent ESS there have been some internal changes and
    > tooltip-show-at-point was renamed into
    > ess-tooltip-show-at-point.

{"they" knew that;  was already needed for ESS 12.04 }

    > Here is a modified version
    > which works with 12.09:

Good!.... I already was working on one, adding it in ess-r-args 
where the other similar functions are.
For that reason, I've also decided to use  ess-r-object-tooltip
(lower case 'r') as the other functions there.

Note that I've added the note, that catching the error message
("not existing object") only works in an English language
locale, and I also put comments there on possibly working
around.

HOWEVER, the "error catching" does not work anyway for me (I do
use an English locale in R), and so I see the error as a
tooltip...
... which is actually ok;
so we could also decide to  drop that whole

  (unless (re-search-forward "\(object .* not found\)\|unexpected" nil t)

  )

check. As I say above, it cannot work in a non-English locale,
*and* it is not so bad if it does not work.  The error message
"as tooltip" is not a problem.

What do you think  (about *dropping* the  'object .* not found'
search) ?

Martin


    > Best, Vitalie


    >>> Martin Maechler <maechler at stat.math.ethz.ch> on Sat, 29
    >>> Sep 2012 11:52:31 +0200 wrote:

    >>>>>>> Stefano Conti <s.conti at gmx.co.uk> on Fri, 28 Sep
    >>>>>>> 2012 18:44:07 +0100 writes:

    >>> Dear ESS developers team, Since upgrading to the latest
    >>> Emacs (latest version 24.2.1) ESS package (version
    >>> 12.09) I have been unable to get R (latest version
    >>> 2.15.1) object tooltips
    >>> (u. http://www.emacswiki.org/emacs/ESSToolTips) working
    >>> in ESS.

    >>> Specifically, upon invoking the ess-R-object-tooltip
    >>> command from within Emacs on any R script, I obtain the
    >>> "No ESS process is associated with this buffer now"
    >>> message from the mini-buffer.  Note that downgrading ESS
    >>> to its previous version (12.04-4) restored the
    >>> functionality of R object tooltips.

    >>> Hope the information above and below is helpful enough;
    >>> I am also copying Martin Maechler, whom I have
    >>> previously received help on a related issue from, in
    >>> this correspondence.

    >>> Thank you in advance for any assistance you may provide,
    >>> and sincere apologies for any cross-posting.  Kind
    >>> regards,

    MM> Caro Stefano,

    MM> as this extra functionality was never adopted in to ESS
    MM> proper, we of course could not pay attention to its
    MM> continued functioning.

    MM> I think this is quite a nice idea that some, maybe even
    MM> many people may want, and so I consider to add it to ESS
    MM> proper, and then find out what goes wrong (in your
    MM> case).  To adopt it into ESS, I'd also want a
    MM> confirmation by Erik (the author, hence in CC) that he'd
    MM> donate it to ESS as well.  Erik?

    MM> Martin

    MM> _______________________________________________ ESS-bugs
    MM> ESS-bugs at r-project.org
    MM> https://stat.ethz.ch/mailman/listinfo/ess-bugs

    MM> _______________________________________________ ESS-core
    MM> list: https://stat.ethz.ch/mailman/listinfo/ess-core



More information about the ESS-bugs mailing list