From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: [Patch] Set default values of iswitchb-default-method to maybe-frame Date: Thu, 06 Sep 2007 13:34:36 +0200 Message-ID: <87ejhc58oj.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1189078493 30846 80.91.229.12 (6 Sep 2007 11:34:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2007 11:34:53 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 06 13:34:53 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 1ITFdK-0003mZ-Lz for ged-emacs-devel@m.gmane.org; Thu, 06 Sep 2007 13:34:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITFdJ-0000GZ-PW for ged-emacs-devel@m.gmane.org; Thu, 06 Sep 2007 07:34:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITFdC-0000AR-El for emacs-devel@gnu.org; Thu, 06 Sep 2007 07:34:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITFdB-00008w-8F for emacs-devel@gnu.org; Thu, 06 Sep 2007 07:34:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITFdA-00008e-VD for emacs-devel@gnu.org; Thu, 06 Sep 2007 07:34:41 -0400 Original-Received: from out2.smtp.messagingengine.com ([66.111.4.26]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITFd9-00009r-PG for emacs-devel@gnu.org; Thu, 06 Sep 2007 07:34:39 -0400 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 60608274B9 for ; Thu, 6 Sep 2007 07:34:39 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 06 Sep 2007 07:34:39 -0400 X-Sasl-enc: wvfIAkyq6Qf5+rlN8Bxj7AkVERh6hv8aupGm2vsPfjtv 1189078478 Original-Received: from baldur.tsdh.de (dslb-084-063-057-036.pools.arcor-ip.net [84.63.57.36]) by mail.messagingengine.com (Postfix) with ESMTP id 5392829B7 for ; Thu, 6 Sep 2007 07:34:38 -0400 (EDT) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUSEQ9eW1Dkxz/6+fjQ w52JeEi7Imd/AAAACXBIWXMAAAsSAAALEgHS3X78AAAATnRFWHRSYXcgcHJvZmlsZSB0eXBlIGV4 aWYACmV4aWYKICAgICAgMjAKNDU3ODY5NjYwMDAwNGQ0ZDAwMmEwMDAwMDAwODAwMDAwMDAwMDAw MAqJuBZbAAAACXZwQWcAAAAwAAAAMADO7oxXAAABk0lEQVQ4y32TS3KDMAxAxQB7uyEHiGvvoSh7 sMSeJnD/q9Q/DBmYamNZz/oioM8ySkn7DbL2bHiUV+CODTflGXTSC5xBWwRAJzBAkPIEhLMWANUZ 3ETRt1CcAbcVdhdgmMZq5CsPsS6iufJ4EY7rFVg0WwNwblA5+Q/QCbADtLeewUxKcT/n1g8x0UVp c5Lt7Op4ANw+wfwOB+YxJoA5wlZXMnSwT788gmEbhUtSHMFWPuEnwK0WD6IOKUDISIckkFYk+KWl qHYgUvGIOKYkEeQJEQ5H0EETrERIbWoxgTLmQCLvsQNRhpqQELvmF3Kop17Ce+yJf6WsM7D8CMNF 7pcZoN5C4cLWlUXsiHY5bAKsmXn2c2BCPYkGI0BtHTGFrxX5RUz8jkBZ1tqKt8vOrC1bNgk4M6v5 5jyYvzQrtjqCICN7+8hWaaXNAahvwn66R92QA88ENCPPCSze4ycBI6WQdVBXOoYy/ndeN3tocH35 68MDH8os26zQGHd/+XcYE+xbMpk1LuC0mo9NdANOX10n5Q8J6syYNMm6EgAAABp6VFh0anBlZzpj b2xvcnNwYWNlAAB42jMCAAAzADOJOCM1AAAAJnpUWHRqcGVnOnNhbXBsaW5nLWZhY3RvcgAAeNoz qjDSMawwBGEAEYMC6T2XL08AAAAASUVORK5CYII= Mail-Followup-To: emacs-devel@gnu.org User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) 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:77968 Archived-At: Hello, I'd advice to set the default value of iswitchb-default-method to maybe-frame in the TRUNK, because if you use emacs as a server detached with screen, connect to it with emacsclient and try to switch to the buffer (with iswitchb) that's displayed in the detached server, nothing happens in the client frame. With a default value of maybe-frame the user is queried if he wants to jump to the other frame. If he chooses no the buffer is opened in the current client's frame. The same has to be done for ido's ido-default-file-method and ido-default-buffer-method, too. Here's a patch. --8<---------------cut here---------------start------------->8--- Index: lisp/iswitchb.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/lisp/iswitchb.el,v retrieving revision 1.70 diff -u -r1.70 iswitchb.el --- lisp/iswitchb.el 13 Aug 2007 13:40:58 -0000 1.70 +++ lisp/iswitchb.el 6 Sep 2007 11:32:25 -0000 @@ -335,7 +335,7 @@ ;(setq iswitchb-buffer-ignore '("^ " iswitchb-ignore-c-mode)) ;(setq iswitchb-buffer-ignore '("^ " "\\.c$" "\\.h$")) =20 -(defcustom iswitchb-default-method 'always-frame +(defcustom iswitchb-default-method 'maybe-frame "*How to switch to new buffer when using `iswitchb-buffer'. Possible values: `samewindow' Show new buffer in same window Index: lisp/ido.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/lisp/ido.el,v retrieving revision 1.133 diff -u -r1.133 ido.el --- lisp/ido.el 13 Aug 2007 13:40:59 -0000 1.133 +++ lisp/ido.el 6 Sep 2007 11:32:35 -0000 @@ -448,7 +448,7 @@ ;;; Examples for setting the value of ido-ignore-files ;(setq ido-ignore-files '("^ " "\\.c$" "\\.h$")) =20 -(defcustom ido-default-file-method 'raise-frame +(defcustom ido-default-file-method 'maybe-frame "*How to visit a new file when using `ido-find-file'. Possible values: `selected-window' Show new file in selected window @@ -468,7 +468,7 @@ (const :tag "Raise frame if already visited" raise-frame)) :group 'ido) =20 -(defcustom ido-default-buffer-method 'raise-frame +(defcustom ido-default-buffer-method 'maybe-frame "*How to switch to new buffer when using `ido-switch-buffer'. See `ido-default-file-method' for details." :type '(choice (const :tag "Show in selected window" selected-window) Index: lisp/ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/lisp/ChangeLog,v retrieving revision 1.11694 diff -u -r1.11694 ChangeLog --- lisp/ChangeLog 6 Sep 2007 05:53:04 -0000 1.11694 +++ lisp/ChangeLog 6 Sep 2007 11:32:42 -0000 @@ -1,3 +1,11 @@ +2007-09-06 Tassilo Horn + + * iswitchb.el (iswitchb-default-method): Set default value to + maybe-frame. + + * ido.el (ido-default-file-method): likewise. + (ido-default-buffer-method): likewise. + 2007-09-06 Johan Bockg=E5rd =20 * help-fns.el (describe-variable): Keep doc's text properties. --8<---------------cut here---------------end--------------->8--- Bye, Tassilo --=20 Windows: So easy to admin, even a worm can do it.