From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Subject: Re: C-c / r key-setting bug (?) Date: Thu, 21 Oct 2010 14:42:55 +0200 Message-ID: <4CC0354F.8020205@easy-emacs.de> References: <4CC017E4.8040005@easy-emacs.de> <4CC027AD.5010902@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=37451 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8uV2-0006UH-6Q for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 08:44:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8uUo-0008Bz-Db for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 08:44:02 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:64050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8uUo-0008BG-01 for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 08:43:50 -0400 In-Reply-To: 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: Carsten Dominik Cc: emacs-orgmode [ ... ] >>> C-c / will prompt for another key and then dispatch depending on that >>> key. >>> Many do. >> >> Hmm, that would fit into the already mentioned coding-style 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 `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 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 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 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 to know... Maybe saying: Is a generic key invoking... > > Because the dispatcher command will call this command after "r" has been > pressed. > > But as I said, I can do these indirect calls pretty easily, I know 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 ==> org-occur is not on any key Also when C-c / is pressed, there is no `r'-key displayed, see screenshot. Andreas -- https://code.launchpad.net/~a-roehler/python-mode/python-mode-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 11.0.10800000 configured using `configure '--with-pop' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-xim' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--with-x' '--with-sound' '--with-sync-input' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-rsvg' '--with-dbus' '--without-gpm' '--with-x-toolkit=gtk' '--x-includes=/usr/include' '--x-libraries=/usr/lib:/usr/share/X11' '--with-xft' '--with-libotf' '--with-m17n-flt' '--build=i586-suse-linux' 'build_alias=i586-suse-linux' 'CC=gcc-4.3' 'CFLAGS=-fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -D_GNU_SOURCE -std=gnu89 -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label -Wno-unprototyped-calls -fno-optimize-sibling-calls -DSYSTEM_PURESIZE_EXTRA=55000 -DSITELOAD_PURESIZE_EXTRA=10000 ' 'LDFLAGS=-Wl,-O2 -Wl,--hash-size=65521'' 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=local 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/emacs/23.1/site-lisp/term" "/usr/share/emacs/site-lisp" "/usr/share/emacs/site-lisp/apel" "/usr/share/emacs/site-lisp/edict" "/usr/share/emacs/site-lisp/emu" "/usr/share/emacs/site-lisp/flim" "/usr/share/emacs/site-lisp/nxml-mode" "/usr/share/emacs/site-lisp/psgml" "/usr/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