diff options
| author | Robert J. Chassell | 2008-08-26 20:02:17 +0000 |
|---|---|---|
| committer | Robert J. Chassell | 2008-08-26 20:02:17 +0000 |
| commit | 3256a4757e1392bf61d7836d9e8f18a2b7abd252 (patch) | |
| tree | 7a536d404f7a3b9112a2a52acf9e88f86630a503 | |
| parent | 39d14c255d0f7df8d01c94aa913b531835c37614 (diff) | |
| download | emacs-3256a4757e1392bf61d7836d9e8f18a2b7abd252.tar.gz emacs-3256a4757e1392bf61d7836d9e8f18a2b7abd252.zip | |
Prevent pasting a region twice on an xterm or rxvt in X.
| -rw-r--r-- | etc/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/PROBLEMS | 136 |
2 files changed, 79 insertions, 61 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index 775da4058fd..b344c4b5cfc 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-08-26 Robert J. Chassell <bob@rattlesnake.com> | ||
| 2 | |||
| 3 | * PROBLEMS: Prevent pasting a region twice on an xterm or rxvt in X. | ||
| 4 | |||
| 1 | 2008-08-23 Chong Yidong <cyd@stupidchicken.com> | 5 | 2008-08-23 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 6 | ||
| 3 | * HELLO: Fix Javanese pun. | 7 | * HELLO: Fix Javanese pun. |
diff --git a/etc/PROBLEMS b/etc/PROBLEMS index e9421a2ed3b..bd839f82570 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS | |||
| @@ -124,31 +124,31 @@ Reportedly this patch in X fixes the problem. | |||
| 124 | +/* $TOG: imInt.c /main/5 1998/05/30 21:11:16 kaleb $ */ | 124 | +/* $TOG: imInt.c /main/5 1998/05/30 21:11:16 kaleb $ */ |
| 125 | /****************************************************************** | 125 | /****************************************************************** |
| 126 | 126 | ||
| 127 | Copyright 1992, 1993, 1994 by FUJITSU LIMITED | 127 | Copyright 1992, 1993, 1994 by FUJITSU LIMITED |
| 128 | @@ -166,8 +166,8 @@ | 128 | @@ -166,8 +166,8 @@ |
| 129 | _XimMakeImName(lcd) | 129 | _XimMakeImName(lcd) |
| 130 | XLCd lcd; | 130 | XLCd lcd; |
| 131 | { | 131 | { |
| 132 | - char* begin; | 132 | - char* begin; |
| 133 | - char* end; | 133 | - char* end; |
| 134 | + char* begin = NULL; | 134 | + char* begin = NULL; |
| 135 | + char* end = NULL; | 135 | + char* end = NULL; |
| 136 | char* ret; | 136 | char* ret; |
| 137 | int i = 0; | 137 | int i = 0; |
| 138 | char* ximmodifier = XIMMODIFIER; | 138 | char* ximmodifier = XIMMODIFIER; |
| 139 | @@ -182,7 +182,11 @@ | 139 | @@ -182,7 +182,11 @@ |
| 140 | } | 140 | } |
| 141 | ret = Xmalloc(end - begin + 2); | 141 | ret = Xmalloc(end - begin + 2); |
| 142 | if (ret != NULL) { | 142 | if (ret != NULL) { |
| 143 | - (void)strncpy(ret, begin, end - begin + 1); | 143 | - (void)strncpy(ret, begin, end - begin + 1); |
| 144 | + if (begin != NULL) { | 144 | + if (begin != NULL) { |
| 145 | + (void)strncpy(ret, begin, end - begin + 1); | 145 | + (void)strncpy(ret, begin, end - begin + 1); |
| 146 | + } else { | 146 | + } else { |
| 147 | + ret[0] = '\0'; | 147 | + ret[0] = '\0'; |
| 148 | + } | 148 | + } |
| 149 | ret[end - begin + 1] = '\0'; | 149 | ret[end - begin + 1] = '\0'; |
| 150 | } | 150 | } |
| 151 | return ret; | 151 | return ret; |
| 152 | 152 | ||
| 153 | ** Emacs crashes on startup after a glibc upgrade. | 153 | ** Emacs crashes on startup after a glibc upgrade. |
| 154 | 154 | ||
| @@ -352,8 +352,8 @@ you may need to make `movemail' setgid to a suitable group such as | |||
| 352 | `mail'. To do this, use the following commands (as root) after doing the | 352 | `mail'. To do this, use the following commands (as root) after doing the |
| 353 | make install. | 353 | make install. |
| 354 | 354 | ||
| 355 | chgrp mail movemail | 355 | chgrp mail movemail |
| 356 | chmod 2755 movemail | 356 | chmod 2755 movemail |
| 357 | 357 | ||
| 358 | Installation normally copies movemail from the build directory to an | 358 | Installation normally copies movemail from the build directory to an |
| 359 | installation directory which is usually under /usr/local/lib. The | 359 | installation directory which is usually under /usr/local/lib. The |
| @@ -460,21 +460,21 @@ causes it. | |||
| 460 | --- serversyscall.c Wed Jan 28 15:14:48 1987 | 460 | --- serversyscall.c Wed Jan 28 15:14:48 1987 |
| 461 | *************** | 461 | *************** |
| 462 | *** 163,169 **** | 462 | *** 163,169 **** |
| 463 | /* | 463 | /* |
| 464 | * No return sent for close or fsync! | 464 | * No return sent for close or fsync! |
| 465 | */ | 465 | */ |
| 466 | ! if (syscall == RSYS_close || syscall == RSYS_fsync) | 466 | ! if (syscall == RSYS_close || syscall == RSYS_fsync) |
| 467 | proc->p_returnval = deallocate_fd(proc, msg->m_args[0]); | 467 | proc->p_returnval = deallocate_fd(proc, msg->m_args[0]); |
| 468 | else | 468 | else |
| 469 | { | 469 | { |
| 470 | --- 166,172 ---- | 470 | --- 166,172 ---- |
| 471 | /* | 471 | /* |
| 472 | * No return sent for close or fsync! | 472 | * No return sent for close or fsync! |
| 473 | */ | 473 | */ |
| 474 | ! if (syscall == RSYS_close) | 474 | ! if (syscall == RSYS_close) |
| 475 | proc->p_returnval = deallocate_fd(proc, msg->m_args[0]); | 475 | proc->p_returnval = deallocate_fd(proc, msg->m_args[0]); |
| 476 | else | 476 | else |
| 477 | { | 477 | { |
| 478 | 478 | ||
| 479 | ** PSGML | 479 | ** PSGML |
| 480 | 480 | ||
| @@ -950,15 +950,15 @@ distributions, such as Debian, may already have applied such a patch.) | |||
| 950 | + ;; register-char-codings may be very slow for these coding | 950 | + ;; register-char-codings may be very slow for these coding |
| 951 | + ;; system definitions. | 951 | + ;; system definitions. |
| 952 | + (let ((y (cadr x))) | 952 | + (let ((y (cadr x))) |
| 953 | + (mucs-define-coding-system | 953 | + (mucs-define-coding-system |
| 954 | + (car x) (nth 1 y) (nth 2 y) | 954 | + (car x) (nth 1 y) (nth 2 y) |
| 955 | + (nth 3 y) (nth 4 y) (nth 5 y))) | 955 | + (nth 3 y) (nth 4 y) (nth 5 y))) |
| 956 | + (mapcar | 956 | + (mapcar |
| 957 | + (lambda (y) | 957 | + (lambda (y) |
| 958 | + (mucs-define-coding-system | 958 | + (mucs-define-coding-system |
| 959 | + (nth 0 y) (nth 1 y) (nth 2 y) | 959 | + (nth 0 y) (nth 1 y) (nth 2 y) |
| 960 | + (nth 3 y) (nth 4 y) (nth 5 y) (nth 6 y)) | 960 | + (nth 3 y) (nth 4 y) (nth 5 y) (nth 6 y)) |
| 961 | + (coding-system-put (car y) 'alias-coding-systems (list (car x))))) | 961 | + (coding-system-put (car y) 'alias-coding-systems (list (car x))))) |
| 962 | + (cdr x))) | 962 | + (cdr x))) |
| 963 | `((utf-8 | 963 | `((utf-8 |
| 964 | (utf-8-unix | 964 | (utf-8-unix |
| @@ -983,7 +983,7 @@ make it compiled by the latest Emacs. | |||
| 983 | ; (message "MCCLREGFIN:%S" result) | 983 | ; (message "MCCLREGFIN:%S" result) |
| 984 | - `(progn | 984 | - `(progn |
| 985 | - (setq mucs-ccl-facility-alist | 985 | - (setq mucs-ccl-facility-alist |
| 986 | - (quote ,mucs-ccl-facility-alist)) | 986 | - (quote ,mucs-ccl-facility-alist)) |
| 987 | - ,@result))) | 987 | - ,@result))) |
| 988 | + ;; The only way the function is used in this package is included | 988 | + ;; The only way the function is used in this package is included |
| 989 | + ;; in `mucs-package-definition-end-hook' value, where it must | 989 | + ;; in `mucs-package-definition-end-hook' value, where it must |
| @@ -991,7 +991,7 @@ make it compiled by the latest Emacs. | |||
| 991 | + ;; on byte compiler to remove extra `progn's in `(progn ...)' | 991 | + ;; on byte compiler to remove extra `progn's in `(progn ...)' |
| 992 | + ;; form. | 992 | + ;; form. |
| 993 | + `((setq mucs-ccl-facility-alist | 993 | + `((setq mucs-ccl-facility-alist |
| 994 | + (quote ,mucs-ccl-facility-alist)) | 994 | + (quote ,mucs-ccl-facility-alist)) |
| 995 | + ,@result))) | 995 | + ,@result))) |
| 996 | 996 | ||
| 997 | ;;; Add hook for embedding translation informations to a package. | 997 | ;;; Add hook for embedding translation informations to a package. |
| @@ -1396,7 +1396,7 @@ font. | |||
| 1396 | One way to avoid this problem is to eliminate the type-1 fonts from | 1396 | One way to avoid this problem is to eliminate the type-1 fonts from |
| 1397 | your font path, like this: | 1397 | your font path, like this: |
| 1398 | 1398 | ||
| 1399 | xset -fp /usr/X11R6/lib/X11/fonts/Type1/ | 1399 | xset -fp /usr/X11R6/lib/X11/fonts/Type1/ |
| 1400 | 1400 | ||
| 1401 | *** Pull-down menus appear in the wrong place, in the toolkit version of Emacs. | 1401 | *** Pull-down menus appear in the wrong place, in the toolkit version of Emacs. |
| 1402 | 1402 | ||
| @@ -1445,6 +1445,20 @@ The easy way to do this is to put | |||
| 1445 | 1445 | ||
| 1446 | in your site-init.el file. | 1446 | in your site-init.el file. |
| 1447 | 1447 | ||
| 1448 | *** Prevent double pastes in X | ||
| 1449 | |||
| 1450 | The problem: a region, such as a command, is pasted twice when you copy | ||
| 1451 | it with your mouse from GNU Emacs to an xterm or an RXVT shell in X. | ||
| 1452 | The solution: try the following in your X configuration file, | ||
| 1453 | /etc/X11/xorg.conf This should enable both PS/2 and USB mice for | ||
| 1454 | single copies. You do not need any other drivers or options. | ||
| 1455 | |||
| 1456 | Section "InputDevice" | ||
| 1457 | Identifier "Generic Mouse" | ||
| 1458 | Driver "mousedev" | ||
| 1459 | Option "Device" "/dev/input/mice" | ||
| 1460 | EndSection | ||
| 1461 | |||
| 1448 | * Runtime problems on character terminals | 1462 | * Runtime problems on character terminals |
| 1449 | 1463 | ||
| 1450 | ** Emacs spontaneously displays "I-search: " at the bottom of the screen. | 1464 | ** Emacs spontaneously displays "I-search: " at the bottom of the screen. |
| @@ -2060,15 +2074,15 @@ the fr.ISO-8859-15 locale (and maybe other related locales). | |||
| 2060 | 2074 | ||
| 2061 | You can fix this by editing the file: | 2075 | You can fix this by editing the file: |
| 2062 | 2076 | ||
| 2063 | /usr/openwin/lib/locale/iso8859-15/Compose | 2077 | /usr/openwin/lib/locale/iso8859-15/Compose |
| 2064 | 2078 | ||
| 2065 | Near the bottom there is a line that reads: | 2079 | Near the bottom there is a line that reads: |
| 2066 | 2080 | ||
| 2067 | Ctrl<t> <quotedbl> <Y> : "\276" threequarters | 2081 | Ctrl<t> <quotedbl> <Y> : "\276" threequarters |
| 2068 | 2082 | ||
| 2069 | that should read: | 2083 | that should read: |
| 2070 | 2084 | ||
| 2071 | Ctrl<T> <quotedbl> <Y> : "\276" threequarters | 2085 | Ctrl<T> <quotedbl> <Y> : "\276" threequarters |
| 2072 | 2086 | ||
| 2073 | Note the lower case <t>. Changing this line should make C-t work. | 2087 | Note the lower case <t>. Changing this line should make C-t work. |
| 2074 | 2088 | ||
| @@ -2568,7 +2582,7 @@ link stage. | |||
| 2568 | 2582 | ||
| 2569 | A solution is to link with GCC, like this: | 2583 | A solution is to link with GCC, like this: |
| 2570 | 2584 | ||
| 2571 | make CC=gcc | 2585 | make CC=gcc |
| 2572 | 2586 | ||
| 2573 | Since the .o object files already exist, this will not recompile Emacs | 2587 | Since the .o object files already exist, this will not recompile Emacs |
| 2574 | with GCC, but just restart by trying again to link temacs. | 2588 | with GCC, but just restart by trying again to link temacs. |
| @@ -2585,7 +2599,7 @@ workaround/fix is: | |||
| 2585 | 2599 | ||
| 2586 | *** AIX 4.1.2: Linker error messages such as | 2600 | *** AIX 4.1.2: Linker error messages such as |
| 2587 | ld: 0711-212 SEVERE ERROR: Symbol .__quous, found in the global symbol table | 2601 | ld: 0711-212 SEVERE ERROR: Symbol .__quous, found in the global symbol table |
| 2588 | of archive /usr/lib/libIM.a, was not defined in archive member shr.o. | 2602 | of archive /usr/lib/libIM.a, was not defined in archive member shr.o. |
| 2589 | 2603 | ||
| 2590 | This is a problem in libIM.a. You can work around it by executing | 2604 | This is a problem in libIM.a. You can work around it by executing |
| 2591 | these shell commands in the src subdirectory of the directory where | 2605 | these shell commands in the src subdirectory of the directory where |
| @@ -2775,8 +2789,8 @@ following section near the end of the file src/m/macppc.h in the Emacs | |||
| 2775 | distribution: | 2789 | distribution: |
| 2776 | 2790 | ||
| 2777 | #if 0 /* This breaks things on PPC GNU/Linux except for Yellowdog, | 2791 | #if 0 /* This breaks things on PPC GNU/Linux except for Yellowdog, |
| 2778 | even with identical GCC, as, ld. Let's take it out until we | 2792 | even with identical GCC, as, ld. Let's take it out until we |
| 2779 | know what's really going on here. */ | 2793 | know what's really going on here. */ |
| 2780 | /* GCC 2.95 and newer on GNU/Linux PPC changed the load address to | 2794 | /* GCC 2.95 and newer on GNU/Linux PPC changed the load address to |
| 2781 | 0x10000000. */ | 2795 | 0x10000000. */ |
| 2782 | #if defined __linux__ | 2796 | #if defined __linux__ |
| @@ -3038,7 +3052,7 @@ for certain. | |||
| 3038 | 3052 | ||
| 3039 | 103093-03: [README] SunOS 5.5: kernel patch (2140557 bytes) | 3053 | 103093-03: [README] SunOS 5.5: kernel patch (2140557 bytes) |
| 3040 | 102832-01: [README] OpenWindows 3.5: Xview Jumbo Patch (4181613 bytes) | 3054 | 102832-01: [README] OpenWindows 3.5: Xview Jumbo Patch (4181613 bytes) |
| 3041 | 103242-04: [README] SunOS 5.5: linker patch (595363 bytes) | 3055 | 103242-04: [README] SunOS 5.5: linker patch (595363 bytes) |
| 3042 | 3056 | ||
| 3043 | (One user reports that the bug was fixed by those patches together | 3057 | (One user reports that the bug was fixed by those patches together |
| 3044 | with patches 102980-04, 103279-01, 103300-02, and 103468-01.) | 3058 | with patches 102980-04, 103279-01, 103300-02, and 103468-01.) |
| @@ -3290,16 +3304,16 @@ emulator program. It contains several extremely general X resources | |||
| 3290 | that affect other programs besides `scoterm'. In particular, these | 3304 | that affect other programs besides `scoterm'. In particular, these |
| 3291 | resources affect Emacs also: | 3305 | resources affect Emacs also: |
| 3292 | 3306 | ||
| 3293 | *Font: -*-helvetica-medium-r-*--12-*-p-* | 3307 | *Font: -*-helvetica-medium-r-*--12-*-p-* |
| 3294 | *Background: scoBackground | 3308 | *Background: scoBackground |
| 3295 | *Foreground: scoForeground | 3309 | *Foreground: scoForeground |
| 3296 | 3310 | ||
| 3297 | The best solution is to create an application-specific resource file for | 3311 | The best solution is to create an application-specific resource file for |
| 3298 | Emacs, /usr/lib/X11/sco/startup/Emacs, with the following contents: | 3312 | Emacs, /usr/lib/X11/sco/startup/Emacs, with the following contents: |
| 3299 | 3313 | ||
| 3300 | Emacs*Font: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1 | 3314 | Emacs*Font: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1 |
| 3301 | Emacs*Background: white | 3315 | Emacs*Background: white |
| 3302 | Emacs*Foreground: black | 3316 | Emacs*Foreground: black |
| 3303 | 3317 | ||
| 3304 | (These settings mimic the Emacs defaults, but you can change them to | 3318 | (These settings mimic the Emacs defaults, but you can change them to |
| 3305 | suit your needs.) This resource file is only read when the X server | 3319 | suit your needs.) This resource file is only read when the X server |
| @@ -3386,19 +3400,19 @@ For Perl 4: | |||
| 3386 | --- PERL/LIB/PERLDB.PL Mon Jul 01 15:28:16 1996 | 3400 | --- PERL/LIB/PERLDB.PL Mon Jul 01 15:28:16 1996 |
| 3387 | *************** | 3401 | *************** |
| 3388 | *** 68,74 **** | 3402 | *** 68,74 **** |
| 3389 | $rcfile=".perldb"; | 3403 | $rcfile=".perldb"; |
| 3390 | } | 3404 | } |
| 3391 | else { | 3405 | else { |
| 3392 | ! $console = "con"; | 3406 | ! $console = "con"; |
| 3393 | $rcfile="perldb.ini"; | 3407 | $rcfile="perldb.ini"; |
| 3394 | } | 3408 | } |
| 3395 | 3409 | ||
| 3396 | --- 68,74 ---- | 3410 | --- 68,74 ---- |
| 3397 | $rcfile=".perldb"; | 3411 | $rcfile=".perldb"; |
| 3398 | } | 3412 | } |
| 3399 | else { | 3413 | else { |
| 3400 | ! $console = ""; | 3414 | ! $console = ""; |
| 3401 | $rcfile="perldb.ini"; | 3415 | $rcfile="perldb.ini"; |
| 3402 | } | 3416 | } |
| 3403 | 3417 | ||
| 3404 | 3418 | ||
| @@ -3407,19 +3421,19 @@ For Perl 4: | |||
| 3407 | --- perl/5.001/lib/perl5db.pl Mon Jul 01 17:00:08 1996 | 3421 | --- perl/5.001/lib/perl5db.pl Mon Jul 01 17:00:08 1996 |
| 3408 | *************** | 3422 | *************** |
| 3409 | *** 22,28 **** | 3423 | *** 22,28 **** |
| 3410 | $rcfile=".perldb"; | 3424 | $rcfile=".perldb"; |
| 3411 | } | 3425 | } |
| 3412 | elsif (-e "con") { | 3426 | elsif (-e "con") { |
| 3413 | ! $console = "con"; | 3427 | ! $console = "con"; |
| 3414 | $rcfile="perldb.ini"; | 3428 | $rcfile="perldb.ini"; |
| 3415 | } | 3429 | } |
| 3416 | else { | 3430 | else { |
| 3417 | --- 22,28 ---- | 3431 | --- 22,28 ---- |
| 3418 | $rcfile=".perldb"; | 3432 | $rcfile=".perldb"; |
| 3419 | } | 3433 | } |
| 3420 | elsif (-e "con") { | 3434 | elsif (-e "con") { |
| 3421 | ! $console = ""; | 3435 | ! $console = ""; |
| 3422 | $rcfile="perldb.ini"; | 3436 | $rcfile="perldb.ini"; |
| 3423 | } | 3437 | } |
| 3424 | else { | 3438 | else { |
| 3425 | 3439 | ||
| @@ -3746,7 +3760,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | |||
| 3746 | 3760 | ||
| 3747 | Local variables: | 3761 | Local variables: |
| 3748 | mode: outline | 3762 | mode: outline |
| 3749 | paragraph-separate: "[ ]*$" | 3763 | paragraph-separate: "[ ]*$" |
| 3750 | end: | 3764 | end: |
| 3751 | 3765 | ||
| 3752 | arch-tag: 49fc0d95-88cb-4715-b21c-f27fb5a4764a | 3766 | arch-tag: 49fc0d95-88cb-4715-b21c-f27fb5a4764a |