From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: `xterm-mouse-mode' has a bogus Custom group Date: Wed, 13 Apr 2005 21:16:40 -0500 (CDT) Message-ID: <200504140216.j3E2Ge401480@raven.dms.auburn.edu> References: <200504020351.j323ppS16391@raven.dms.auburn.edu> <16974.11752.332998.125628@farnswood.snap.net.nz> <200504021346.j32Dk3e19471@raven.dms.auburn.edu> <16978.12100.857894.861739@farnswood.snap.net.nz> <200504060000.j3600bm15264@raven.dms.auburn.edu> <16979.20638.871209.55398@farnswood.snap.net.nz> <200504070045.j370j0J27252@raven.dms.auburn.edu> <16981.58243.428189.615765@farnswood.snap.net.nz> <200504081605.j38G5ia15320@raven.dms.auburn.edu> <16982.64939.154130.463783@farnswood.snap.net.nz> <200504090406.j3946HQ22712@raven.dms.auburn.edu> <01c53d89$Blat.v2.4$96f0bb20@zahav.net.il> <200504101318.j3ADID528159@raven.dms.auburn.edu> <200504120104.j3C14tS11315@raven.dms.auburn.edu> <200504130124.j3D1Onf19799@raven.d NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1113446100 30745 80.91.229.2 (14 Apr 2005 02:35:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2005 02:35:00 +0000 (UTC) Cc: jan.h.d@swipnet.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 14 04:34:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DLuBa-0000IZ-42 for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2005 04:34:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DLuEm-0003Ko-Pj for ged-emacs-devel@m.gmane.org; Wed, 13 Apr 2005 22:37:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DLu8y-0002Yl-Bf for emacs-devel@gnu.org; Wed, 13 Apr 2005 22:31:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DLu8c-0002RC-7z for emacs-devel@gnu.org; Wed, 13 Apr 2005 22:31:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DLu8c-0002ND-03 for emacs-devel@gnu.org; Wed, 13 Apr 2005 22:31:26 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DLtwX-0004TE-Nz; Wed, 13 Apr 2005 22:18:58 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j3E2IK9N024082; Wed, 13 Apr 2005 21:18:20 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j3E2Ge401480; Wed, 13 Apr 2005 21:16:40 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: eliz@gnu.org In-reply-to: <01c53fe9$Blat.v2.4$bf59f240@zahav.net.il> (eliz@gnu.org) 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:35962 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35962 The C and Lisp conditions for loading tooltip in the patches below are not completely equivalent, but I believe I understood that this does not matter too much. I saw everything else that was conditionally loaded use a FOO_SUPPORT macro, so I defined a TOOLTIP_SUPPORT macro. I can only test this on GNU/Linux. ===File ~/src-Makefile.in-diff============================== *** Makefile.in 19 Mar 2005 13:29:50 -0600 1.307 --- Makefile.in 13 Apr 2005 20:37:51 -0500 *************** *** 686,691 **** --- 686,697 ---- #define WINNT_SUPPORT #endif + #if defined (HAVE_WINDOW_SYSTEM) && !defined (MSDOS) + #define TOOLTIP_SUPPORT ${lispsource}tooltip.elc + #else + #define TOOLTIP_SUPPORT + #endif + /* List of Lisp files loaded into the dumped Emacs. It's arranged like this because it's easier to generate it semi-mechanically from loadup.el this way. *************** *** 779,784 **** --- 785,791 ---- ${lispsource}emacs-lisp/timer.elc \ ${lispsource}vc-hooks.elc \ ${lispsource}ediff-hook.elc \ + TOOLTIP_SUPPORT \ VMS_SUPPORT \ MSDOS_SUPPORT \ WINNT_SUPPORT \ *************** *** 885,890 **** --- 892,898 ---- ${dotdot}/lisp/ls-lisp.elc ${dotdot}/lisp/dos-fns.elc \ ${dotdot}/lisp/w32-fns.elc ${dotdot}/lisp/dos-w32.elc \ ${dotdot}/lisp/disp-table.elc ${dotdot}/lisp/dos-vars.elc \ + ${dotdot}/lisp/tooltip.elc \ ${dotdot}/lisp/international/ccl.elc \ ${dotdot}/lisp/international/codepage.elc ============================================================ ===File ~/loadup-diff======================================= *** loadup.el 19 Mar 2005 13:28:44 -0600 1.135 --- loadup.el 13 Apr 2005 20:15:24 -0500 *************** *** 192,197 **** --- 192,200 ---- (load "vc-hooks") (load "ediff-hook") + (and (display-graphic-p) + (fboundp 'x-show-tip) + (load "tooltip")) (message "%s" (garbage-collect)) ;If you want additional libraries to be preloaded and their ============================================================ ===File ~/startup-diff====================================== *** startup.el 13 Apr 2005 17:18:03 -0500 1.350 --- startup.el 13 Apr 2005 20:17:53 -0500 *************** *** 746,751 **** --- 746,754 ---- (custom-reevaluate-setting 'blink-cursor-mode) (custom-reevaluate-setting 'normal-erase-is-backspace) + ;; If you change the code below, you need to also change the + ;; corresponding code in the tooltip-mode defcustom. The two need + ;; to be equivalent under all conditions, or Custom will get confused. (unless (or noninteractive emacs-basic-display (not (display-graphic-p)) ============================================================ ===File ~/tooltip-diff====================================== *** tooltip.el 31 Mar 2005 08:49:03 -0600 1.46 --- tooltip.el 10 Apr 2005 07:27:01 -0500 *************** *** 187,192 **** --- 187,198 ---- "Toggle Tooltip display. With ARG, turn tooltip mode on if and only if ARG is positive." :global t + ;; If you change the :init-value below, you also need to change the + ;; corresponding code in startup.el. + :init-value (not (or noninteractive + emacs-quick-startup + (not (display-graphic-p)) + (not (fboundp 'x-show-tip)))) :group 'tooltip (unless (or (null tooltip-mode) (fboundp 'x-show-tip)) (error "Sorry, tooltips are not yet available on this system")) ============================================================