From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: Emacs Lisp's future Date: Mon, 29 Sep 2014 15:47:54 +0100 Message-ID: <871tqutrdx.fsf@newcastle.ac.uk> References: <87wq97i78i.fsf@earlgrey.lan> <87sijqxzr2.fsf@newcastle.ac.uk> <877g11c8wh.fsf@gmx.us> <87wq91uhe8.fsf@newcastle.ac.uk> <87k3508oie.fsf@gmx.us> <87mw9mqqb2.fsf@bernoul.li> <874mvufdes.fsf@earlgrey.lan> <87mw9iu8p8.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412002116 16493 80.91.229.3 (29 Sep 2014 14:48:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Sep 2014 14:48:36 +0000 (UTC) Cc: Christopher Allan Webber , Jonas Bernoulli , Rasmus , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 29 16:48:29 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XYcFX-0001ek-Hv for ged-emacs-devel@m.gmane.org; Mon, 29 Sep 2014 16:48:27 +0200 Original-Received: from localhost ([::1]:37126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYcFX-0005F6-81 for ged-emacs-devel@m.gmane.org; Mon, 29 Sep 2014 10:48:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYcFG-0005F1-Gb for emacs-devel@gnu.org; Mon, 29 Sep 2014 10:48:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYcFA-0006y9-0T for emacs-devel@gnu.org; Mon, 29 Sep 2014 10:48:10 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:47206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYcF9-0006xX-OK for emacs-devel@gnu.org; Mon, 29 Sep 2014 10:48:03 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1XYcF1-0003UJ-Fe; Mon, 29 Sep 2014 15:47:55 +0100 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1XYcF0-0006H2-KM; Mon, 29 Sep 2014 15:47:54 +0100 In-Reply-To: (Stefan Monnier's message of "Mon, 29 Sep 2014 09:19:34 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 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:174809 Archived-At: Stefan Monnier writes: >>>> Instead of adding Magit as is, I would rather add certain components of >>>> Magit to Emacs itself (after sufficiently abstracting them) and move >>>> certain functionality into libraries that are already part of Emacs. >>> That would be great. There are some features of magit that would be >>> really nice to have available for all packages by being bundled with >>> emacs. The popup menu system is pretty much the best, for example. >> It is really nice. There is a similar solution in org-mode (the export >> dispatcher) and even in auctex (which is simpler but generally works out >> the right thing to do for you). > > FWIW, I don't use any of those things, so I don't really know what kind > of "popup-menu" you're talking about. It's not a menu at all, but a buffer. Saying in magit, I hit "b", then I get a buffer "popping up" which looks like this.... Switches -t: Set upstream configuration (--track) -m: Merged to HEAD (--merged) -M: Merged to master (--merged=master) -n: Not merged to HEAD (--no-merged) -N: Not merged to master (--no-merged=master) Args =c: Contains (--contains=) =m: Merged (--merged=) =n: Not merged (--no-merged=) Actions v: Branch manager b: Checkout c: Create r: Rename k: Delete If I type "-t" (to set the -t option) then "--track" changes colour to pink, so I know that I have selected it. When I finally hit "c", git will be run to create a new branch with "--track" selected. Org-mode works similarly; I hit C-cC-e (org-export-dispatch) and I get [C-b] Body only: Off [C-v] Visible only: Off [C-s] Export scope: Buffer [C-f] Force publishing: Off [C-a] Async export: Off [c] Export to iCalendar [f] Current file [a] All agenda files [c] Combine all agenda files [h] Export to HTML [H] As HTML buffer [h] As HTML file [o] As HTML file and open [l] Export to LaTeX [L] As LaTeX buffer [l] As LaTeX file [p] As PDF file [o] As PDF file and open [t] Export to Plain Text [A] As ASCII buffer [a] As ASCII file [L] As Latin1 buffer [l] As Latin1 file [U] As UTF-8 buffer [u] As UTF-8 file [P] Publish [f] Current file [p] Current project [x] Choose project [a] All projects [&] Export stack [#] Insert template [q] Exit At the top we have options (although these don't equate to command line options as with magit). All the keys like [c], [h] but not f or H are highlighted. If I hit h, then the suboptions for Export to HTML light up. So C-xCehh gives me "Export as HTML file", C-x-C-eho means and open in a browser. I don't have to remember the options, because the menu guides me through the process. Auctex uses a normal complete on C-cC-c except that the default "Compile" or "View" is almost always correct. Phil