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: Sun, 10 Apr 2005 08:18:13 -0500 (CDT) Message-ID: <200504101318.j3ADID528159@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> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1113139204 16437 80.91.229.2 (10 Apr 2005 13:20:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Apr 2005 13:20:04 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 10 15:20:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DKcLi-0003zl-6D for ged-emacs-devel@m.gmane.org; Sun, 10 Apr 2005 15:19:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DKbvc-0000ox-OS for ged-emacs-devel@m.gmane.org; Sun, 10 Apr 2005 08:52:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DKbuc-0000VR-AS for emacs-devel@gnu.org; Sun, 10 Apr 2005 08:51:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DKbuW-0000SY-PI for emacs-devel@gnu.org; Sun, 10 Apr 2005 08:51:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DKbuW-0000SH-Km for emacs-devel@gnu.org; Sun, 10 Apr 2005 08:51:32 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DKcNI-0008Pu-Kc; Sun, 10 Apr 2005 09:21:16 -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 j3ADJi9N008755; Sun, 10 Apr 2005 08:19:44 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j3ADID528159; Sun, 10 Apr 2005 08:18:13 -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: <01c53d89$Blat.v2.4$96f0bb20@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:35833 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35833 Eli Zaretskii wrote: Except in Emacs compiled with --without-x and on MSDOS. So please let's not preload tooltip in those cases. Actually, the reason I thought it had to be preloaded was because of confusion with some prior similar cases. The only drawback of not preloading it is that we need to duplicate the same code in the defcustom and in startup.el and make sure that the two stay exactly in sync. But that is not too bad. The following patches enable tooltip mode at startup while taking care of the Custom problem. The patch to startup.el merely adds a comment. I can install if desired. xterm-mouse-mode could be taken care of in a similar fashion (without preloading) if that would be what we want to do. ===File ~/startup.el-diff=================================== *** startup.el 08 Apr 2005 19:21:40 -0500 1.344 --- startup.el 10 Apr 2005 07:28:30 -0500 *************** *** 733,738 **** --- 733,741 ---- (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-quick-startup (not (display-graphic-p)) ============================================================ ===File ~/tooltip.el-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")) ============================================================