Re: Buffer::Dispatch Patch

2009-04-06 Thread Richard Heck
Pavel Sanda wrote: Richard Heck wrote: @@ -1499,14 +1487,6 @@ break; } - case LFUN_BRANCH_ACTIVATE: - case LFUN_BRANCH_DEACTIVATE: - if (cmd.argument().empty()) - return false; - buffer_.dispatch(cmd); -

Re: Buffer::Dispatch Patch

2009-04-06 Thread Pavel Sanda
Richard Heck wrote: > @@ -1499,14 +1487,6 @@ > break; > } > -case LFUN_BRANCH_ACTIVATE: > - case LFUN_BRANCH_DEACTIVATE: > - if (cmd.argument().empty()) > - return false; > - buffer_.dispatch(cmd); > -

Re: Buffer::Dispatch Patch

2009-04-06 Thread rgheck
Pavel Sanda wrote: Richard Heck wrote: Pavel Sanda wrote: Richard Heck wrote: @@ -1499,14 +1487,6 @@ break; } - case LFUN_BRANCH_ACTIVATE: - case LFUN_BRANCH_DEACTIVATE: - if (cmd.argument().empty()) - re

Re: Buffer::Dispatch Patch

2009-04-05 Thread Pavel Sanda
Richard Heck wrote: > Pavel Sanda wrote: >> Richard Heck wrote: >> >>> @@ -1499,14 +1487,6 @@ >>> break; >>> } >>> - case LFUN_BRANCH_ACTIVATE: >>> - case LFUN_BRANCH_DEACTIVATE: >>> - if (cmd.argument().empty()) >>> - return false; >>> -

Re: Buffer::Dispatch Patch

2009-04-05 Thread rgheck
Pavel Sanda wrote: Richard Heck wrote: @@ -1499,14 +1487,6 @@ break; } - case LFUN_BRANCH_ACTIVATE: - case LFUN_BRANCH_DEACTIVATE: - if (cmd.argument().empty()) - return false; - buffer_.dispatch(cmd); -

Re: Buffer::Dispatch Patch

2009-04-05 Thread Pavel Sanda
Richard Heck wrote: > @@ -1499,14 +1487,6 @@ > break; > } > > - case LFUN_BRANCH_ACTIVATE: > - case LFUN_BRANCH_DEACTIVATE: > - if (cmd.argument().empty()) > - return false; > - buffer_.dispatch(cmd); > - processU

Re: Buffer::Dispatch Patch

2009-04-04 Thread rgheck
rgheck wrote: This is an old one held over from pre-1.6. I've updated it and plan to commit now. Any comments? JMarc and Abdel, the new version takes account of some comments of yours from way back. Ignore the weirdness with the release notes. That's a leftover. rh

Buffer::Dispatch Patch

2009-04-04 Thread rgheck
This is an old one held over from pre-1.6. I've updated it and plan to commit now. Any comments? JMarc and Abdel, the new version takes account of some comments of yours from way back. rh Index: src/Buffer.h === --- src/Buffer

Re: Buffer::Dispatch Patch

2008-06-02 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes <[EMAIL PROTECTED]> writes: Putting a break point at the last "}" of the method should work in any case. At least it work with MSVC and it used to work with gdb last time I tried (long time ago though). IMO, the only valid reason to not return e

Re: Buffer::Dispatch Patch

2008-06-02 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > Putting a break point at the last "}" of the method should work in any > case. At least it work with MSVC and it used to work with gdb last > time I tried (long time ago though). > > IMO, the only valid reason to not return early is when you have com

Re: Buffer::Dispatch Patch

2008-06-02 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: rgheck <[EMAIL PROTECTED]> writes: What I said was misleading (=wrong). The change was actually to getStatus(). In this case, we want to return right away, because the return value says whether we handled it or not. There shouldn't be anything to do once we've mad

Re: Buffer::Dispatch Patch

2008-06-02 Thread Jean-Marc Lasgouttes
rgheck <[EMAIL PROTECTED]> writes: > What I said was misleading (=wrong). The change was actually to > getStatus(). In this case, we want to return right away, because the > return value says whether we handled it or not. There shouldn't be > anything to do once we've made that decision. OK? In t

Re: Buffer::Dispatch Patch

2008-05-29 Thread rgheck
Jean-Marc Lasgouttes wrote: rgheck <[EMAIL PROTECTED]> writes: The patch makes Buffer::dispatch() part of the dispatch system, and it moves (for now) just a few features there that can be used if we have a Buffer but not necessarily a BufferView---in particular, features that could be used f

Re: Buffer::Dispatch Patch

2008-05-29 Thread Andre Poenitz
On Thu, May 29, 2008 at 10:25:09AM +0100, José Matos wrote: > On Thursday 29 May 2008 09:17:43 Jean-Marc Lasgouttes wrote: > > What about --batch instead? We should btw be more consistent in > > using -- for long commands. > > I agree with Jean-Marc here. In this regard we should follow GNU code

Re: Buffer::Dispatch Patch

2008-05-29 Thread rgheck
José Matos wrote: On Thursday 29 May 2008 09:17:43 Jean-Marc Lasgouttes wrote: What about --batch instead? We should btw be more consistent in using -- for long commands. I agree with Jean-Marc here. In this regard we should follow GNU code standard here - for short commands, like -e

Re: Buffer::Dispatch Patch

2008-05-29 Thread José Matos
On Thursday 29 May 2008 09:17:43 Jean-Marc Lasgouttes wrote: > What about --batch instead? We should btw be more consistent in > using -- for long commands. I agree with Jean-Marc here. In this regard we should follow GNU code standard here - for short commands, like -e and a dash for long comman

Re: Buffer::Dispatch Patch

2008-05-29 Thread Jean-Marc Lasgouttes
rgheck <[EMAIL PROTECTED]> writes: > The patch makes Buffer::dispatch() part of the dispatch system, and it > moves (for now) just a few features there that can be used if we have > a Buffer but not necessarily a BufferView---in particular, features > that could be used from the command line. It a

Buffer::Dispatch Patch

2008-05-28 Thread rgheck
OK, here's the patch we've been discussing. I'll hold it until after Beta 1, if that's what Jose would prefer. It doesn't SEEM to break things, but, well, you know. The patch makes Buffer::dispatch() part of the dispatch system, and it moves (for now) just a few features there that can be us