From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: C-c / r key-setting bug (?) Date: Thu, 21 Oct 2010 22:50:42 +0200 Message-ID: <4F0270B7-39D0-41D4-ADC2-8CF2C9AF3E5D@gmail.com> References: <4CC017E4.8040005@easy-emacs.de> <4CC027AD.5010902@easy-emacs.de> <4CC0354F.8020205@easy-emacs.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=53192 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9264-000496-Ms for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 16:50:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9262-0000Bg-UO for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 16:50:48 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:38704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9262-0000BR-LG for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 16:50:46 -0400 Received: by eydd26 with SMTP id d26so26753eyd.0 for ; Thu, 21 Oct 2010 13:50:45 -0700 (PDT) In-Reply-To: <4CC0354F.8020205@easy-emacs.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-1?Q?Andreas_R=F6hler?= Cc: emacs-orgmode On Oct 21, 2010, at 2:42 PM, Andreas R=F6hler wrote: > [ ... ] >>>> C-c / will prompt for another key and then dispatch depending on =20= >>>> that >>>> key. >>>> Many do. >>> >>> Hmm, that would fit into the already mentioned coding-style =20 >>> category. >>> Is it wise to do it that way? >>> For example M-x describe-mode fails telling about these keys. >>> Are reasons for this? >> >> Yes. There are not enough keys, unless I introduce a larger number >> of full-scale prefix keys. And it is much easier to remember just =20 >> `C-c >> /' and then get a friendly prompt for a number of options. For >> interactive use, I think this is just perfect. >> >> Now, if you want to write programs based on these functions, then you >> want to have the real command names. This is one of the reasons why I >> like to have them in the manual, for look up. >> > > Hi, > > I'm following, thanks for the explanation. > Remains a describe-mode bug than (?) > > >>> >>> Sincerely undecided here, just a question. >>> >>> >>>> >>>> To simplify you work, you can just leave these keys unchanged in =20= >>>> the >>>> manual,and I will take a look at those later. >>> >>> Remains something to do anyway IMHO. >>> >>> First a creating command is mentioned, after it says "showing". >>> >>> @orgcmd{C-c /,org-sparse-tree} >>> This prompts for an extra key to select a sparse-tree creating =20 >>> command. >>> >>> ;;;;;;; >>> >>> @kindex C-c / r >>> @item C-c / r >>> @vindex org-remove-highlights-with-change >>> Occur. Prompts for a regexp and shows a sparse tree with all =20 >>> matches. If >> >> In this end, this should simply be >> >> @orgcmd{C-c / r, org-occur} > > May you update the doku? > BTW if the first key branches to other key, would help folks like me =20= > to know... Maybe saying: Is a generic key invoking... > >> >> Because the dispatcher command will call this command after "r" has =20= >> been >> pressed. >> >> But as I said, I can do these indirect calls pretty easily, I know =20= >> most >> of them by heart. >> > > Thanks. Should get it from var last-command already. > >> - Carsten >> >> > > Still an issue: > > No brand of Emacs org-mode knows org-occur here > > M-x where-is org-occur > > =3D=3D> > > org-occur is not on any key > > Also when C-c / is pressed, there is no `r'-key displayed, > see screenshot. As I have been trying to explain during this thread, Emacs does not know that org-occur is can be reached through `C-c / r'. So where-is cannot give you a reply. This is not a bug, it is in the nature of the dispatcher commands Org-mode uses. - Carsten > > > Andreas > > -- > https://code.launchpad.net/~a-roehler/python-mode/python-mode-=20 > components > https://code.launchpad.net/s-x-emacs-werkstatt/ > > ;;;;;;;;;;;;;;;; > In GNU Emacs 23.1.1 (i586-suse-linux-gnu, GTK+ Version 2.20.1) > of 2010-07-05 on build17 > Windowing system distributor `The X.Org Foundation', version =20 > 11.0.10800000 > configured using `configure '--with-pop' '--without-hesiod' '--with-=20= > kerberos' '--with-kerberos5' '--with-xim' '--prefix=3D/usr' = '--mandir=3D/=20 > usr/share/man' '--infodir=3D/usr/share/info' '--datadir=3D/usr/share' = '--=20 > localstatedir=3D/var' '--sharedstatedir=3D/var/lib' = '--libexecdir=3D/usr/=20 > lib' '--with-x' '--with-sound' '--with-sync-input' '--with-xpm' '--=20 > with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-rsvg' '--=20= > with-dbus' '--without-gpm' '--with-x-toolkit=3Dgtk' = '--x-includes=3D/usr/=20 > include' '--x-libraries=3D/usr/lib:/usr/share/X11' '--with-xft' '--=20 > with-libotf' '--with-m17n-flt' '--build=3Di586-suse-linux' =20 > 'build_alias=3Di586-suse-linux' 'CC=3Dgcc-4.3' 'CFLAGS=3D-fomit-frame-=20= > pointer -fmessage-length=3D0 -O2 -Wall -D_FORTIFY_SOURCE=3D2 -fstack-=20= > protector -funwind-tables -fasynchronous-unwind-tables -g -=20 > D_GNU_SOURCE -std=3Dgnu89 -pipe -Wno-pointer-sign -Wno-unused-variable = =20 > -Wno-unused-label -Wno-unprototyped-calls -fno-optimize-sibling-=20 > calls -DSYSTEM_PURESIZE_EXTRA=3D55000 -=20 > DSITELOAD_PURESIZE_EXTRA=3D10000 ' 'LDFLAGS=3D-Wl,-O2 -Wl,--hash-=20 > size=3D65521'' > > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: de_DE.UTF-8 > value of $XMODIFIERS: @im=3Dlocal > locale-coding-system: utf-8-unix > default-enable-multibyte-characters: t > > Major mode: Org > > Minor modes in effect: > tooltip-mode: t > tool-bar-mode: t > mouse-wheel-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > global-auto-composition-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > C-x C-f . g > n u - e m a l l C-s r o > g r o > r o g - > o r g - m o d C-e > C-x C-e C-x C-e C-x C-f r o g - > o r g - > . o r g C-h w o r g - o c c u r M-x > d e s c r i b e > > r e p o r t - e m a c s - b u > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > Making completion list... > .gnu-emacs-all-cvs has auto save data; consider M-x recover-this-file > Mark saved where search started > ("~/org-mode/lisp/" "/usr/share/emacs/23.1/site-lisp" "/usr/share/=20 > emacs/23.1/site-lisp/term" "/usr/share/emacs/site-lisp" "/usr/share/=20= > emacs/site-lisp/apel" "/usr/share/emacs/site-lisp/edict" "/usr/share/=20= > emacs/site-lisp/emu" "/usr/share/emacs/site-lisp/flim" "/usr/share/=20 > emacs/site-lisp/nxml-mode" "/usr/share/emacs/site-lisp/psgml" "/usr/=20= > share/emacs/site-lisp/w3m" "/usr/share/emacs/site-lisp/xslide" ...) > org-mode-einrichtungen > org.org has auto save data; consider M-x recover-this-file > OVERVIEW > Loading vc-cvs...done > org-occur is not on any key >