From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: Introduce eldoc support in minibuffer Date: Sun, 03 Jul 2011 06:55:36 +0200 Message-ID: <87hb743quv.fsf@gmail.com> References: <87wrg2ggdg.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309668967 14549 80.91.229.12 (3 Jul 2011 04:56:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2011 04:56:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 03 06:56:04 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QdEiw-0003vH-Me for ged-emacs-devel@m.gmane.org; Sun, 03 Jul 2011 06:56:02 +0200 Original-Received: from localhost ([::1]:59207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdEiv-0004q1-80 for ged-emacs-devel@m.gmane.org; Sun, 03 Jul 2011 00:56:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdEig-0004pk-Dp for emacs-devel@gnu.org; Sun, 03 Jul 2011 00:55:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdEif-0005EV-EM for emacs-devel@gnu.org; Sun, 03 Jul 2011 00:55:46 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:62244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdEif-0005ER-7M; Sun, 03 Jul 2011 00:55:45 -0400 Original-Received: by wyg36 with SMTP id 36so3532783wyg.0 for ; Sat, 02 Jul 2011 21:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=R2G6oidLpfDHoWpQnaMgjdmyTtjqeNzT8MPr4jUE9LY=; b=JehTGtd7PsoSaeWavwSFFgAw8novvQ2XX7nfq83UywIEUMTBl1v+/rXcfeI6Mqdafr 1i62duHddxCbBgC+JD2kXXOy4Bcl1EUgYXdUABBM2rti8aNUvlX7yvNox/AdMrB/GvyK BEal8upbOlG2uduBr1pZfd9D4w/sKyNvk2k8w= Original-Received: by 10.216.61.135 with SMTP id w7mr2510938wec.19.1309668942584; Sat, 02 Jul 2011 21:55:42 -0700 (PDT) Original-Received: from thierry-MM061 (43.77.197.77.rev.sfr.net [77.197.77.43]) by mx.google.com with ESMTPS id w58sm2342721weq.25.2011.07.02.21.55.38 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Jul 2011 21:55:40 -0700 (PDT) In-Reply-To: (Dan Nicolaescu's message of "Sat, 02 Jul 2011 18:47:45 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141482 Archived-At: Dan Nicolaescu writes: > Thierry Volpiatto writes: > >> Hi, >> when editing code in minibuffer (M-:) eldoc is not available. >> This patch provide this feature. >> eldoc is displayed in mode-line. > > Can the code that displays something in the modeline be used for something else? Yes, try (eldoc-show-in-mode-line "foo") > It could be used as a (much more functional) tooltip. > For example C-s is great, but if one does not read the manual is hard to > know about all it can do. If we could display little help messages it > would be easy to teach users about various nice features. I don't use isearch, so i don't know what to display in mode-line, but i imagine you can display something useful in mode-line, like a minimal help depending of the context of your search. I already use that in some places in ioccur and anything. You can also in addition of a minimal help in mode-line display a _full window_ with all the binding of isearch but without quitting isearch like C-h m does actually. It's not hard to do, just create a help function for isearch and bind it in isearch map. For example: Try M-x anything-buffer+ then C-c ? to see what i mean. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997