You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Wolf Josef <jo...@siemens.com> on 2003/10/01 11:01:12 UTC

RE: Ok. I just had this brainstorm....

Ben Collins-Sussman wrote:

[ ... ]
> > >Many of us write the log message as we code.  For example, when I
> > >change a function, I hit "C-c, l" in emacs, and it instantly switches
> > >me to a logmsg buffer in-progress, and inserts a line like:
> > This would be *really* nice to have.  Alas, I use XEmacs, and last I 
> > checked, the svn modes don't work with it, and I'm rather 
> > elisp-impaired, or I'd attempt to fix it :(
> It's a custom elisp function that karl wrote, and he/I/cmpilato use it
> all the time.  It's sitting in the svn tree in tools/dev/svn-dev.el --
> look for the function called svn-log-message.

Many emacs configurations have "C-c, l" bind to fume-list-functions.
IIRC (but I might be wrong) xemacs comes with this key predefined.
Even if I am wrong, there are many (sample?) dotfiles out there on the
net which bind "C-c, l" to fume-list-functions. Maybe it would be a good
idea to bind the svn logmsg function to a different key to avoid a
competition of those two functions?


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Ok. I just had this brainstorm....

Posted by kf...@collab.net.
Wolf Josef <jo...@siemens.com> writes:
> Many emacs configurations have "C-c, l" bind to fume-list-functions.
> IIRC (but I might be wrong) xemacs comes with this key predefined.
> Even if I am wrong, there are many (sample?) dotfiles out there on the
> net which bind "C-c, l" to fume-list-functions. Maybe it would be a good
> idea to bind the svn logmsg function to a different key to avoid a
> competition of those two functions?

The pattern "C-c LETTER" is explicitly reserved for users' custom
keybindings (and "C-c NONLETTER" is for mode-specific bindings, I
believe).  Only a user's personal Emacs customizations should bind
"C-c l" to anything.  This is why svn-dev.el offers 'l' as an example
only:

   ;; How to use this: just run `svn-log-message'.  You might want to
   ;; bind it to a key, for example,
   ;;
   ;;   (define-key "\C-cl" 'svn-log-message)
   ;;
   ;; The log message will accumulate in a file.  Later, you can use
   ;; that file when you commit:

If a package actually *takes* "C-c l", well, it's stealing :-).

I can't explain why you saw so many instances on the Net of it being
bound, but probably if we used any other key for the example, a
similar overlap would occur.  The keyspace is not infinite; every
Emacs developer has learned to deal with this restriction.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Ok. I just had this brainstorm....

Posted by Ben Collins-Sussman <su...@collab.net>.
Wolf Josef <jo...@siemens.com> writes:

> Many emacs configurations have "C-c, l" bind to fume-list-functions.
> IIRC (but I might be wrong) xemacs comes with this key predefined.
> Even if I am wrong, there are many (sample?) dotfiles out there on the
> net which bind "C-c, l" to fume-list-functions. Maybe it would be a good
> idea to bind the svn logmsg function to a different key to avoid a
> competition of those two functions?
 
Go look at the elisp -- (svn-log-message) doesn't bind to any key at all.
"C-c, l" just happens to be the place that *I* chose to bind it.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org