🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87516

Re: Suggestion: Optional highlighting of selected region in X

#87516
From: Erik Naggum
Date: Tue, 20 Sep 1994 00:04
29 lines
2188 bytes
[Greg. A. Woods]

|   I'd second this suggestion too!  It's also rather annoying to have the
|   window cursor immediately jump to the mouse pointer location, esp. since
|   it's a big non-flashing blob that simply appears to make the highlighted
|   region longer than it really is.

(setq default-frame-alist (acons 'cursor-type 'bar default-frame-alist))

will give you a bar cursor, which in addition to being very non-intrusive
on the screen, will make highlighting, including `search-highlight' and
`query-replace-highlight' _very_ useful.  if you have a color display, you
could probably fiddle with the cursor display to make it a little more
visible than the one-pixel wide vertical line it is today.

I found this such a wonderful thing that I patched xterm to drop the silly
blob-or-box-cursor, too, and made the cursor disappear when the window was
not selected.  patch is minimal.  send me a note if you want it (X11R5).

|   One final discrepancy between the behaviour of emacs and that of some
|   other X11 clients (I'm thinking primarily of xterm) is that the current
|   selection is pasted in at the cursor location, not the mouse pointer
|   location, when using button 2.  I realise that in an editor, this might
|   actually be a desirable feature, whereas in an xterm it is next to
|   impossible.  However, it's the discrepancy that bugs me....

(setq mouse-yank-at-point t) and it will insert at point, instead.

#<Erik>
Technical Details
Message-ID: <19940919.5263@naggum.no>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!naggum.no!erik
References: <9409191754.AA15619@kuma.web.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,ba781d2d855a2ca9
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-20 13:08:12 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!naggum.no!erik
From: erik@naggum.no (Erik Naggum)
Newsgroups: gnu.emacs.bug
Subject: Re: Suggestion: Optional highlighting of selected region in X
Date: 19 Sep 1994 20:04:21 -0400
Organization: Naggum Software; +47 2295 0313
Lines: 29
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <19940919.5263@naggum.no>
References: <9409191754.AA15619@kuma.web.net>