From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: appt-disp-window raising frame toggle patch Date: Mon, 07 Nov 2011 14:44:20 -0500 Message-ID: <15aa87soob.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1320695071 13278 80.91.229.12 (7 Nov 2011 19:44:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Nov 2011 19:44:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Scott Jaderholm Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 07 20:44:27 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 1RNV7K-00052L-L3 for ged-emacs-devel@m.gmane.org; Mon, 07 Nov 2011 20:44:26 +0100 Original-Received: from localhost ([::1]:42866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNV7J-0002xW-Uj for ged-emacs-devel@m.gmane.org; Mon, 07 Nov 2011 14:44:25 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNV7H-0002x0-7h for emacs-devel@gnu.org; Mon, 07 Nov 2011 14:44:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNV7F-0002xS-Ej for emacs-devel@gnu.org; Mon, 07 Nov 2011 14:44:23 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:50224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNV7F-0002xN-68 for emacs-devel@gnu.org; Mon, 07 Nov 2011 14:44:21 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RNV7E-0002Ve-AZ; Mon, 07 Nov 2011 14:44:20 -0500 X-Spook: warfare JFK espionage Ansar al-Islam New World Order CID X-Ran: C:h!D8&/FvTEamc X-Hue: red X-Attribution: GM In-Reply-To: (Scott Jaderholm's message of "Fri, 4 Nov 2011 22:25:47 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:145930 Archived-At: Scott Jaderholm wrote: > Currently if you use the display window method with appt it will also raise > the frame in your window manager. I didn't like this as my keyboard focus > kept being taking so I added a custom variable to toggle this. Attached is > a patch. This is too late for Emacs 24.1 It could go in 24.2, but I am not sure it is generally useful, because it means that if the Emacs window is iconified, or behind another window, you will go no visible notification. > If anyone knows a simple way for me to eliminate raising in this > function on my system until (if) this patch gets applied please share. Customize appt-disp-window-function, eg (require 'cl) (setq appt-disp-window-function 'foo) (defun foo (min-to-app new-time appt-msg) (flet ((raise-frame (&optional frame) (ignore))) (appt-disp-window min-to-app new-time appt-msg)))