comparison man/xemacs-faq.texi @ 892:52c2a7139db0

[xemacs-hg @ 2002-07-02 12:27:53 by stephent] slow killing FAQ <877kkeco4v.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Tue, 02 Jul 2002 12:27:58 +0000
parents 732270854293
children d7285d54aa5f
comparison
equal deleted inserted replaced
891:bf76db2b446e 892:52c2a7139db0
5 @setchapternewpage off 5 @setchapternewpage off
6 @c %**end of header 6 @c %**end of header
7 @finalout 7 @finalout
8 @titlepage 8 @titlepage
9 @title XEmacs FAQ 9 @title XEmacs FAQ
10 @subtitle Frequently asked questions about XEmacs @* Last Modified: $Date: 2002/06/11 19:28:15 $ 10 @subtitle Frequently asked questions about XEmacs @* Last Modified: $Date: 2002/07/02 12:27:58 $
11 @sp 1 11 @sp 1
12 @author Tony Rossini <rossini@@biostat.washington.edu> 12 @author Tony Rossini <rossini@@biostat.washington.edu>
13 @author Ben Wing <ben@@xemacs.org> 13 @author Ben Wing <ben@@xemacs.org>
14 @author Chuck Thompson <cthomp@@xemacs.org> 14 @author Chuck Thompson <cthomp@@xemacs.org>
15 @author Steve Baur <steve@@xemacs.org> 15 @author Steve Baur <steve@@xemacs.org>
266 * Q3.10.1:: How can I turn off or change highlighted selections? 266 * Q3.10.1:: How can I turn off or change highlighted selections?
267 * Q3.10.2:: How do I get that typing on an active region removes it? 267 * Q3.10.2:: How do I get that typing on an active region removes it?
268 * Q3.10.3:: Can I turn off the highlight during isearch? 268 * Q3.10.3:: Can I turn off the highlight during isearch?
269 * Q3.10.4:: How do I turn off highlighting after @kbd{C-x C-p} (mark-page)? 269 * Q3.10.4:: How do I turn off highlighting after @kbd{C-x C-p} (mark-page)?
270 * Q3.10.5:: The region disappears when I hit the end of buffer while scrolling. 270 * Q3.10.5:: The region disappears when I hit the end of buffer while scrolling.
271 * Q3.10.6:: Why is killing so slow?
271 272
272 Major Subsystems 273 Major Subsystems
273 274
274 * Q4.0.1:: How do I set up VM to retrieve remote mail using POP? 275 * Q4.0.1:: How do I set up VM to retrieve remote mail using POP?
275 * Q4.0.2:: How do I get VM to filter mail for me? 276 * Q4.0.2:: How do I get VM to filter mail for me?
2513 * Q3.10.1:: How can I turn off or change highlighted selections? 2514 * Q3.10.1:: How can I turn off or change highlighted selections?
2514 * Q3.10.2:: How do I get that typing on an active region removes it? 2515 * Q3.10.2:: How do I get that typing on an active region removes it?
2515 * Q3.10.3:: Can I turn off the highlight during isearch? 2516 * Q3.10.3:: Can I turn off the highlight during isearch?
2516 * Q3.10.4:: How do I turn off highlighting after @kbd{C-x C-p} (mark-page)? 2517 * Q3.10.4:: How do I turn off highlighting after @kbd{C-x C-p} (mark-page)?
2517 * Q3.10.5:: The region disappears when I hit the end of buffer while scrolling. 2518 * Q3.10.5:: The region disappears when I hit the end of buffer while scrolling.
2519 * Q3.10.6:: Why is killing so slow?
2518 @end menu 2520 @end menu
2519 2521
2520 @node Q3.0.1, Q3.0.2, Customization, Customization 2522 @node Q3.0.1, Q3.0.2, Customization, Customization
2521 @unnumberedsec 3.0: Customization -- Emacs Lisp and @file{init.el}/@file{.emacs} 2523 @unnumberedsec 3.0: Customization -- Emacs Lisp and @file{init.el}/@file{.emacs}
2522 @unnumberedsubsec Q3.0.1: What version of Emacs am I running? 2524 @unnumberedsubsec Q3.0.1: What version of Emacs am I running?
3805 3807
3806 @strong{Warning: This command turns off all region highlighting.} 3808 @strong{Warning: This command turns off all region highlighting.}
3807 3809
3808 Also see @ref{Q3.10.1}. 3810 Also see @ref{Q3.10.1}.
3809 3811
3810 @node Q3.10.5, , Q3.10.4, Customization 3812 @node Q3.10.5, Q3.10.6, Q3.10.4, Customization
3811 @unnumberedsubsec Q3.10.5: The region disappears when I hit the end of buffer while scrolling. 3813 @unnumberedsubsec Q3.10.5: The region disappears when I hit the end of buffer while scrolling.
3812 3814
3813 This has been fixed by default starting with XEmacs-20.3. 3815 This has been fixed by default starting with XEmacs-20.3.
3814 3816
3815 With older versions you can turn this feature (if it indeed is a feature) 3817 With older versions you can turn this feature (if it indeed is a feature)
3835 ad-do-it))) 3837 ad-do-it)))
3836 @end lisp 3838 @end lisp
3837 3839
3838 Thanks to @email{raman@@adobe.com, T. V. Raman} for assistance in deriving this 3840 Thanks to @email{raman@@adobe.com, T. V. Raman} for assistance in deriving this
3839 answer. 3841 answer.
3842
3843 @node Q3.10.6, , Q3.10.5, Customization
3844 @unnumberedsubsec Q3.10.6: Why is killing so slow?
3845
3846 This actually is an X Windows question, although you'll notice it with
3847 keyboard operations as well as while using the GUI. Basically, there
3848 are four ways to communicate interprogram via the X server:
3849
3850 @table @strong
3851 @item Primary selection
3852 a transient selection that gets replaced every time a new selection is made
3853
3854 @item Secondary selection
3855 for "exchanging" with the primary selection
3856
3857 @item Cut buffers
3858 a clipboard internal to the X server (deprecated)
3859
3860 @item Clipboard selection
3861 a selection with a notification protocol that allows a separate app to
3862 manage the clipboard
3863 @end table
3864
3865 The cut buffers are deprecated because managing them is even more
3866 inefficient than the clipboard notification protocol. The primary
3867 selection works fine for many users and applications, but is not very
3868 robust under intensive or sophisticated use.
3869
3870 In Motif and MS Windows, a clipboard has become the primary means for
3871 managing cut and paste. These means that "modern" applications tend to
3872 be oriented toward a true clipboard, rather than the primary selection.
3873 (On Windows, there is nothing equivalent to the primary selection.)
3874 It's not that XEmacs doesn't support the simple primary selection
3875 method, it's that more and more other applications don't.
3876
3877 So the slowdown occurs because XEmacs now engages in the clipboard
3878 notification protocol on @emph{every} kill. This is especially slow on
3879 Motif.
3880
3881 With most people running most clients and server on the same host, and
3882 many of the rest working over very fast communication, you may expect
3883 that the situation is not going to improve.
3884
3885 There are a number of workarounds. The most effective is to use a
3886 special command to do selection ownership only when you intend to paste
3887 to another application. Useful commands are @code{kill-primary-selection}
3888 and @code{copy-primary-selection}. These work only on text selected
3889 with the mouse (probably; experiment), and are bound by default to the
3890 @kbd{Cut} and @kbd{Copy}, respectively, buttons on the toolbar.
3891 @code{copy-primary-selection} is also bound to @kbd{C-Insert}. You can
3892 yank the clipboard contents with @code{yank-primary-selection}, bound to
3893 the @kbd{Paste} toolbar button and @kbd{Sh-Insert}.
3894
3895 If you are communicating by cut and paste with applications that use the
3896 primary selection, then you can customize
3897 @code{interprogram-cut-function} to @code{nil}, restoring the XEmacs
3898 version 20 behavior. How can you tell if a program will support this?
3899 Motifly-correct programs require the clipboard; you lose. For others,
3900 only by trying it. You also need to customize the complementary
3901 @code{interprogram-paste-function} to @code{nil}. (Otherwise
3902 XEmacs-to-XEmacs pastes will not work correctly.)
3903
3904 You may get some relief on Motif by setting
3905 @code{x-selection-strict-motif-ownership} to nil, but this means you will
3906 only intermittently be able to paste XEmacs kills to Motif applications.
3907
3908 Thanks to Jeff Mincy and Glynn Clements for corrections.
3840 3909
3841 @node Subsystems, Miscellaneous, Customization, Top 3910 @node Subsystems, Miscellaneous, Customization, Top
3842 @unnumbered 4 Major Subsystems 3911 @unnumbered 4 Major Subsystems
3843 3912
3844 This is part 4 of the XEmacs Frequently Asked Questions list. This 3913 This is part 4 of the XEmacs Frequently Asked Questions list. This