From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: PCL-CVS: M-x cvs-update vs. key binding in *cvs* buffer Date: Mon, 20 Aug 2007 21:22:23 +0200 Message-ID: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187638200 8002 80.91.229.12 (20 Aug 2007 19:30:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2007 19:30:00 +0000 (UTC) Cc: Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 20 21:29:57 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1INCwl-0000rg-S5 for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2007 21:29:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INCwl-0002fK-W9 for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2007 15:29:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INCwi-0002f2-Gs for emacs-devel@gnu.org; Mon, 20 Aug 2007 15:29:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INCwh-0002en-Iu for emacs-devel@gnu.org; Mon, 20 Aug 2007 15:29:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INCwh-0002ed-CK for emacs-devel@gnu.org; Mon, 20 Aug 2007 15:29:51 -0400 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1INCwg-0002ce-Ap for emacs-devel@gnu.org; Mon, 20 Aug 2007 15:29:50 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.1/8.14.1) with ESMTP id l7KJTj50013021; Mon, 20 Aug 2007 21:29:45 +0200 (MEST) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 65BE212BE1; Mon, 20 Aug 2007 21:29:45 +0200 (CEST) X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T; w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv, vbL^XF1nIp\:F=$Ei2o&mEe:%N~, :3]vtQ~s9u$9izmX$IF@VgGl7/, ^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-DCC-INFN-TO-Metrics: poseidon 1233; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new X-Detected-Kernel: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76857 Archived-At: Hi, `M-x cvs-update RET' prompts for a directory and creates a *cvs* buffer. Do `M-x cvs-update RET' in the *cvs* buffer. Again, it prompts for a directory. Now eval (global-set-key (kbd "C-c v u") 'cvs-update). Then, when pressing `C-c v u' in the *cvs* buffer, it won't ask for a directory. I'd expect `cvs-update' to behave the same, no matter how it is called (M-x vs. key binding). It seems that `cvs-query-directory' tries to figure out if it was called via M-x. But I don't quite understand the purpose. --8<---------------cut here---------------start------------->8--- (defun cvs-query-directory (msg) ;; last-command-char = ?\r hints that the command was run via M-x (if (and (cvs-buffer-p) (not current-prefix-arg) (not (eq last-command-char ?\r))) default-directory (read-directory-name msg nil default-directory nil))) --8<---------------cut here---------------end--------------->8--- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/