Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-06-26 Thread James Bigler
On Fri, Jun 26, 2009 at 6:33 AM, Bill Hoffman wrote: > James Bigler wrote: > >> On Wed, Apr 29, 2009 at 11:43 AM, Bill Hoffman >> wrote: >> >>> James Bigler wrote: >>> Thanks for the suggestion. word-at-point works better than my hand rolled code. Here's the updated versi

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-06-26 Thread Bill Hoffman
James Bigler wrote: On Wed, Apr 29, 2009 at 11:43 AM, Bill Hoffman wrote: James Bigler wrote: Thanks for the suggestion. word-at-point works better than my hand rolled code. Here's the updated version. I also fixed a slight annoyance where if the help command output was short enough it would

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-06-26 Thread James Bigler
On Wed, Apr 29, 2009 at 11:43 AM, Bill Hoffman wrote: > James Bigler wrote: >> >> Thanks for the suggestion.  word-at-point works better than my hand rolled >> code. >> >> Here's the updated version.  I also fixed a slight annoyance where if the >> help command output was short enough it would prin

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-29 Thread Bill Hoffman
James Bigler wrote: Thanks for the suggestion. word-at-point works better than my hand rolled code. Here's the updated version. I also fixed a slight annoyance where if the help command output was short enough it would print the outout to both the help buffer and the minibuffer. I'm also

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-29 Thread James Bigler
Thanks for the suggestion. word-at-point works better than my hand rolled code. Here's the updated version. I also fixed a slight annoyance where if the help command output was short enough it would print the outout to both the help buffer and the minibuffer. I'm also open to additional suggest

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-29 Thread Martin Apel
Hi James, your version for showing documentation is surely much nicer than mine. One minor tip: Instead of your function cmake-find-word you could use the function word-at-point coming from the package thingatpt, which does exactly, what you need. This package is part of the current Emacs distribu

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-28 Thread James Bigler
On Tue, Apr 28, 2009 at 8:21 AM, Martin Apel wrote: > Bill Hoffman wrote: >> Martin Apel wrote: >> >>> Hi all, >>> >>> Inspired by the Emacs command cperl-perldoc-at-point I wrote a little >>> command to show the CMake documentation of the command on which the >>> cursor is currently positioned. I

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-28 Thread Martin Apel
Bill Hoffman wrote: > Martin Apel wrote: > >> Hi all, >> >> Inspired by the Emacs command cperl-perldoc-at-point I wrote a little >> command to show the CMake documentation of the command on which the >> cursor is currently positioned. It will open another buffer and show the >> documentation ge

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-28 Thread Bill Hoffman
Martin Apel wrote: Hi all, Inspired by the Emacs command cperl-perldoc-at-point I wrote a little command to show the CMake documentation of the command on which the cursor is currently positioned. It will open another buffer and show the documentation generated from "cmake --help-command " in th

[CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-28 Thread Martin Apel
Hi all, Inspired by the Emacs command cperl-perldoc-at-point I wrote a little command to show the CMake documentation of the command on which the cursor is currently positioned. It will open another buffer and show the documentation generated from "cmake --help-command " in that buffer. I found it