unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: `xterm-mouse-mode' has a bogus Custom group
Date: Mon, 11 Apr 2005 21:12:23 -0500 (CDT)	[thread overview]
Message-ID: <200504120212.j3C2CNc11392@raven.dms.auburn.edu> (raw)
In-Reply-To: <E1DKoA8-0000oc-Rm@fencepost.gnu.org> (message from Richard Stallman on Sun, 10 Apr 2005 21:56:28 -0400)

The following patches would enable Xterm Mouse mode when it makes
sense, without confusing Custom.  *Note* however, that there are some
additional problems I discovered (while testing the patches) with
enabling it.  Clicking mouse-1 can do all kinds of unexpected stuff,
without the usual mouse face, without the usual tooltips or echo-area
equivalent (because Emacs still does not respond to mouse-over) and
often without any clear fontification either.

Do I install the patches below anyway?

===File ~/startup.el-diff===================================
diff -c /home/teirllm/emacscvsdir/emacs/lisp/startup.el /home/teirllm/startup-a11.el
*** /home/teirllm/emacscvsdir/emacs/lisp/startup.el	Mon Apr 11 20:22:36 2005
--- /home/teirllm/startup-a11.el	Mon Apr 11 14:39:15 2005
***************
*** 954,959 ****
--- 957,966 ----
  
    ;; Load library for our terminal type.
    ;; User init file can set term-file-prefix to nil to prevent this.
+ 
+   ;; 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
                window-system
                (null term-file-prefix))
***************
*** 965,971 ****
          (setq term
                (if (setq hyphend (string-match "[-_][^-_]+$" term))
                    (substring term 0 hyphend)
!                 nil)))))
  
    ;; Update the out-of-memory error message based on user's key bindings
    ;; for save-some-buffers.
--- 972,981 ----
          (setq term
                (if (setq hyphend (string-match "[-_][^-_]+$" term))
                    (substring term 0 hyphend)
!                 nil)))
!       (and term
! 	   (string-match "^\\(xterm\\|rxvt\\|dtterm\\|eterm\\)" term)
! 	   (xterm-mouse-mode 1))))
  
    ;; Update the out-of-memory error message based on user's key bindings
    ;; for save-some-buffers.

Diff finished.  Mon Apr 11 20:25:03 2005
============================================================

===File ~/xt-mouse.el-diff==================================
*** xt-mouse.el	03 Apr 2005 19:34:53 -0500	1.25
--- xt-mouse.el	11 Apr 2005 20:58:10 -0500	
***************
*** 156,165 ****
  With prefix arg, turn XTerm mouse mode on iff arg is positive.
  
  Turn it on to use Emacs mouse commands, and off to use xterm mouse commands.
! This works in terminal emulators compatible with xterm.  Only single clicks
! are supported.  When turned on, the normal xterm mouse functionality is still
! available by holding down the SHIFT key while pressing the mouse button."
!   nil " Mouse" nil :global t :group 'mouse
    (if xterm-mouse-mode
        ;; Turn it on
        (unless window-system
--- 156,188 ----
  With prefix arg, turn XTerm mouse mode on iff arg is positive.
  
  Turn it on to use Emacs mouse commands, and off to use xterm mouse commands.
! This works in terminal emulators compatible with xterm.  It only
! works for simple uses of the mouse.  Basically, only non-modified
! single clicks are supported.  When turned on, the normal xterm
! mouse functionality for such clicks is still available by holding
! down the SHIFT key while pressing the mouse button."
!   :global t :group 'mouse
!   ;; Do not change the :init-value below without corresponding
!   ;; changes in the related code in startup.el.
!   :init-value (unless (or noninteractive
! 			  window-system
! 			  (null term-file-prefix))
! 		(let ((term (getenv "TERM"))
! 		      hyphend)
! 		  (while
! 		      (and term
! 			   (not (load (concat term-file-prefix term) t t)))
! 		    ;; Strip off last hyphen and what follows, then
! 		    ;; try again
! 		    (setq term
! 			  (if (setq hyphend
! 				    (string-match "[-_][^-_]+$" term))
! 			      (substring term 0 hyphend)
! 			    nil)))
! 		  (and term
! 		       (string-match "^\\(xterm\\|rxvt\\|dtterm\\|eterm\\)"
! 				     term)
! 		       t)))
    (if xterm-mouse-mode
        ;; Turn it on
        (unless window-system
============================================================

  parent reply	other threads:[~2005-04-12  2:12 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-02  3:51 `xterm-mouse-mode' has a bogus Custom group Luc Teirlinck
2005-04-02  5:30 ` Nick Roberts
2005-04-02 13:46   ` Luc Teirlinck
2005-04-05  6:25     ` Nick Roberts
2005-04-06  0:00       ` Luc Teirlinck
2005-04-06  0:17         ` David Kastrup
2005-04-06 23:01           ` Richard Stallman
2005-04-06 23:22             ` David Kastrup
2005-04-07  8:44               ` Kim F. Storm
2005-04-07  9:21                 ` Han Boetes
2005-04-07  9:29                 ` Nick Roberts
2005-04-08  3:22                   ` Richard Stallman
2005-04-07  9:30                 ` David Kastrup
2005-04-08  3:22               ` Richard Stallman
2005-04-08  8:13                 ` David Kastrup
2005-04-06  2:59         ` Nick Roberts
2005-04-07  0:45           ` Luc Teirlinck
2005-04-08  1:50             ` Nick Roberts
2005-04-08  1:59               ` Luc Teirlinck
2005-04-08  2:13                 ` Nick Roberts
2005-04-08 15:14                   ` Andreas Schwab
2005-04-08  2:22                 ` Nick Roberts
2005-04-08 14:32               ` Richard Stallman
2005-04-08 16:05                 ` Luc Teirlinck
2005-04-08 21:54                   ` Nick Roberts
2005-04-09  0:28                     ` Luc Teirlinck
2005-04-09  4:06                     ` Luc Teirlinck
2005-04-09  5:22                       ` Nick Roberts
2005-04-09  7:53                         ` Eli Zaretskii
2005-04-09 11:04                           ` Nick Roberts
2005-04-09 15:37                             ` Luc Teirlinck
2005-04-09 22:21                               ` Nick Roberts
2005-04-10  1:54                         ` Richard Stallman
2005-04-10  1:54                       ` Richard Stallman
2005-04-10  4:54                         ` Eli Zaretskii
2005-04-10 13:18                           ` Luc Teirlinck
2005-04-10 14:37                             ` Stefan Monnier
2005-04-10 15:29                               ` Luc Teirlinck
2005-04-10 21:51                               ` Nick Roberts
2005-04-10 23:30                                 ` Luc Teirlinck
2005-04-13  5:02                                 ` Richard Stallman
2005-04-13 10:21                                   ` David Kastrup
2005-04-11  1:56                             ` Richard Stallman
2005-04-12  1:04                               ` Luc Teirlinck
2005-04-12  1:28                                 ` Luc Teirlinck
2005-04-12 17:25                                 ` Richard Stallman
2005-04-13  1:24                                   ` Luc Teirlinck
2005-04-13  4:58                                     ` Jan D.
2005-04-13  5:28                                       ` Eli Zaretskii
2005-04-14  2:16                                         ` Luc Teirlinck
2005-04-14  4:06                                           ` Eli Zaretskii
2005-04-14  7:40                                           ` Kim F. Storm
2005-04-15  2:04                                             ` Luc Teirlinck
2005-04-15  8:23                                               ` Miles Bader
2005-04-15  8:47                                                 ` Ismail Donmez
2005-04-15  8:47                                               ` Kim F. Storm
2005-04-15  9:07                                               ` Eli Zaretskii
2005-04-16  1:06                                                 ` Luc Teirlinck
2005-04-14 19:03                                           ` Richard Stallman
2005-04-15  2:11                                             ` Luc Teirlinck
2005-04-13  5:21                                     ` Eli Zaretskii
2005-04-12  2:12                               ` Luc Teirlinck [this message]
2005-04-12  2:47                                 ` Luc Teirlinck
2005-04-12 17:23                                 ` Richard Stallman
2005-04-13  0:01                                   ` Luc Teirlinck
2005-04-12 23:31                                     ` David Kastrup
2005-04-13  1:49                                       ` Luc Teirlinck
2005-04-13  2:17                                     ` Stefan Monnier
2005-04-13 18:31                                     ` Richard Stallman
2005-04-10 14:27                         ` Stefan Monnier
2005-04-11  1:56                           ` Richard Stallman
2005-04-06  3:02       ` Richard Stallman
2005-04-06  8:22         ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200504120212.j3C2CNc11392@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).