aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2005-02-23 11:24:05 +0000
committerKaroly Lorentey2005-02-23 11:24:05 +0000
commite6b2f88783f2c89bedcd2a761c6362fb353dc7a3 (patch)
tree1d67d21b81f22dbc2219c9f62ae7b4882bbd9617
parenta3ed96394abf826ed794282886c05db599e801df (diff)
parentdae3211dbdeab1939c610a5138f0f08839bfe3fa (diff)
downloademacs-e6b2f88783f2c89bedcd2a761c6362fb353dc7a3.tar.gz
emacs-e6b2f88783f2c89bedcd2a761c6362fb353dc7a3.zip
Merged from miles@gnu.org--gnu-2005 (patch 119)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-119 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-299
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/frame.el80
-rw-r--r--lisp/international/mule.el24
-rw-r--r--lisp/pcvs.el5
-rw-r--r--lisp/term/mac-win.el26
-rw-r--r--src/ChangeLog28
-rw-r--r--src/gtkutil.c17
-rw-r--r--src/keymap.h3
-rw-r--r--src/xdisp.c8
9 files changed, 105 insertions, 104 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 57c64a66da2..dd1bc36f284 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,21 @@
12005-02-21 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
2
3 * pcvs.el (cvs-retrieve-revision): Fix thinko.
4
52005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
6
7 * frame.el (blink-cursor-mode): Use define-minor-mode.
8
9 * term/mac-win.el (function-key-map): Use char-names more consistently.
10 (file-name-coding-system): Only set it for MacOS-9. The other case is
11 already handled in mule-cmds.el (where it also works when mac-win.el
12 is not used).
13
12005-02-21 Kenichi Handa <handa@m17n.org> 142005-02-21 Kenichi Handa <handa@m17n.org>
2 15
16 * international/mule.el (ctext-pre-write-conversion): Always use
17 " *code-converting-work*" buffer for work.
18
3 * textmodes/ispell.el (ispell-dictionary-alist): Fix docstring. 19 * textmodes/ispell.el (ispell-dictionary-alist): Fix docstring.
4 20
52005-02-20 Thien-Thi Nguyen <ttn@gnu.org> 212005-02-20 Thien-Thi Nguyen <ttn@gnu.org>
@@ -8,7 +24,7 @@
8 24
92005-02-20 Jonathan Yavner <jyavner@member.fsf.org> 252005-02-20 Jonathan Yavner <jyavner@member.fsf.org>
10 26
11 * ses.el (undo-more): restore defadvice, but only the part that 27 * ses.el (undo-more): Restore defadvice, but only the part that
12 allows changes outside the restricted area of the buffer. 28 allows changes outside the restricted area of the buffer.
13 29
142005-02-20 Kim F. Storm <storm@cua.dk> 302005-02-20 Kim F. Storm <storm@cua.dk>
diff --git a/lisp/frame.el b/lisp/frame.el
index 7058c91fdab..e581a586b3e 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1,6 +1,6 @@
1;;; frame.el --- multi-frame management independent of window systems 1;;; frame.el --- multi-frame management independent of window systems
2 2
3;; Copyright (C) 1993, 1994, 1996, 1997, 2000, 2001, 2003, 2004 3;; Copyright (C) 1993, 1994, 1996, 1997, 2000, 2001, 2003, 2004, 2005
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -1327,35 +1327,11 @@ The function `blink-cursor-start' is called when the timer fires.")
1327This timer calls `blink-cursor-timer-function' every 1327This timer calls `blink-cursor-timer-function' every
1328`blink-cursor-interval' seconds.") 1328`blink-cursor-interval' seconds.")
1329 1329
1330;; The strange sequence below is meant to set both the right temporary 1330;; We do not know the standard _evaluated_ value yet, because the standard
1331;; value and the right "standard expression" , according to Custom, 1331;; expression uses values that are not yet set. The correct evaluated
1332;; for blink-cursor-mode. We do not know the standard _evaluated_ 1332;; standard value will be installed in startup.el using exactly the same
1333;; value yet, because the standard expression uses values that are not 1333;; expression as in the defcustom.
1334;; yet set. Evaluating it now would yield an error, but we make sure 1334(define-minor-mode blink-cursor-mode
1335;; that it is not evaluated, by ensuring that blink-cursor-mode is set
1336;; before the defcustom is evaluated and by using the right :initialize
1337;; function. The correct evaluated standard value will be installed
1338;; in startup.el using exactly the same expression as in the defcustom.
1339(defvar blink-cursor-mode)
1340(unless (boundp 'blink-cursor-mode) (setq blink-cursor-mode nil))
1341(defcustom blink-cursor-mode
1342 (not (or noninteractive
1343 emacs-quick-startup
1344 (eq system-type 'ms-dos)
1345 (not (memq initial-window-system '(x w32)))))
1346 "*Non-nil means Blinking Cursor mode is active."
1347 :group 'cursor
1348 :tag "Blinking cursor"
1349 :type 'boolean
1350 :initialize 'custom-initialize-set
1351 :set #'(lambda (symbol value)
1352 (set-default symbol value)
1353 (blink-cursor-mode (or value 0))))
1354
1355(defvaralias 'blink-cursor 'blink-cursor-mode)
1356(make-obsolete-variable 'blink-cursor 'blink-cursor-mode "22.1")
1357
1358(defun blink-cursor-mode (arg)
1359 "Toggle blinking cursor mode. 1335 "Toggle blinking cursor mode.
1360With a numeric argument, turn blinking cursor mode on iff ARG is positive. 1336With a numeric argument, turn blinking cursor mode on iff ARG is positive.
1361When blinking cursor mode is enabled, the cursor of the selected 1337When blinking cursor mode is enabled, the cursor of the selected
@@ -1364,27 +1340,27 @@ window blinks.
1364Note that this command is effective only when Emacs 1340Note that this command is effective only when Emacs
1365displays through a window system, because then Emacs does its own 1341displays through a window system, because then Emacs does its own
1366cursor display. On a text-only terminal, this is not implemented." 1342cursor display. On a text-only terminal, this is not implemented."
1367 (interactive "P") 1343 :init-value (not (or noninteractive
1368 (let ((on-p (if (null arg) 1344 emacs-quick-startup
1369 (not blink-cursor-mode) 1345 (eq system-type 'ms-dos)
1370 (> (prefix-numeric-value arg) 0)))) 1346 (not (memq initial-window-system '(x w32)))))
1371 (if blink-cursor-idle-timer 1347 :global t
1372 (cancel-timer blink-cursor-idle-timer)) 1348 (if blink-cursor-idle-timer (cancel-timer blink-cursor-idle-timer))
1373 (if blink-cursor-timer 1349 (if blink-cursor-timer (cancel-timer blink-cursor-timer))
1374 (cancel-timer blink-cursor-timer)) 1350 (setq blink-cursor-idle-timer nil
1375 (setq blink-cursor-idle-timer nil 1351 blink-cursor-timer nil)
1376 blink-cursor-timer nil 1352 (if blink-cursor-mode
1377 blink-cursor-mode nil) 1353 (progn
1378 (if on-p 1354 ;; Hide the cursor.
1379 (progn 1355 ;;(internal-show-cursor nil nil)
1380 ;; Hide the cursor. 1356 (setq blink-cursor-idle-timer
1381 ;(internal-show-cursor nil nil) 1357 (run-with-idle-timer blink-cursor-delay
1382 (setq blink-cursor-idle-timer 1358 blink-cursor-delay
1383 (run-with-idle-timer blink-cursor-delay 1359 'blink-cursor-start)))
1384 blink-cursor-delay 1360 (internal-show-cursor nil t)))
1385 'blink-cursor-start)) 1361
1386 (setq blink-cursor-mode t)) 1362(defvaralias 'blink-cursor 'blink-cursor-mode)
1387 (internal-show-cursor nil t)))) 1363(make-obsolete-variable 'blink-cursor 'blink-cursor-mode "22.1")
1388 1364
1389(defun blink-cursor-start () 1365(defun blink-cursor-start ()
1390 "Timer function called from the timer `blink-cursor-idle-timer'. 1366 "Timer function called from the timer `blink-cursor-idle-timer'.
@@ -1452,5 +1428,5 @@ Use Custom to set this variable to get the display updated."
1452 1428
1453(provide 'frame) 1429(provide 'frame)
1454 1430
1455;;; arch-tag: 82979c70-b8f2-4306-b2ad-ddbd6b328b56 1431;; arch-tag: 82979c70-b8f2-4306-b2ad-ddbd6b328b56
1456;;; frame.el ends here 1432;;; frame.el ends here
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 5ba6f1d69e4..9a5646217ec 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -1467,18 +1467,20 @@ If FROM is a string, or if the current buffer is not the one set up for us
1467by encode-coding-string, generate a new temp buffer, insert the 1467by encode-coding-string, generate a new temp buffer, insert the
1468text, and convert it in the temporary buffer. Otherwise, convert in-place." 1468text, and convert it in the temporary buffer. Otherwise, convert in-place."
1469 (save-match-data 1469 (save-match-data
1470 ;; Setup a working buffer if necessary. 1470 (let ((workbuf (get-buffer-create " *code-conversion-work*")))
1471 (cond ((stringp from) 1471 ;; Setup a working buffer if necessary.
1472 (let ((buf (current-buffer))) 1472 (cond ((stringp from)
1473 (set-buffer (generate-new-buffer " *temp")) 1473 (set-buffer workbuf)
1474 (erase-buffer)
1474 (set-buffer-multibyte (multibyte-string-p from)) 1475 (set-buffer-multibyte (multibyte-string-p from))
1475 (insert from))) 1476 (insert from))
1476 ((not (string= (buffer-name) " *code-converting-work*")) 1477 ((not (eq (current-buffer) workbuf))
1477 (let ((buf (current-buffer)) 1478 (let ((buf (current-buffer))
1478 (multibyte enable-multibyte-characters)) 1479 (multibyte enable-multibyte-characters))
1479 (set-buffer (generate-new-buffer " *temp")) 1480 (set-buffer workbuf)
1480 (set-buffer-multibyte multibyte) 1481 (erase-buffer)
1481 (insert-buffer-substring buf from to)))) 1482 (set-buffer-multibyte multibyte)
1483 (insert-buffer-substring buf from to)))))
1482 1484
1483 ;; Now we can encode the whole buffer. 1485 ;; Now we can encode the whole buffer.
1484 (let ((encoding-table (ctext-non-standard-encodings-table)) 1486 (let ((encoding-table (ctext-non-standard-encodings-table))
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index cd0cf0a2df1..2c0016dcc47 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -1,7 +1,7 @@
1;;; pcvs.el --- a front-end to CVS 1;;; pcvs.el --- a front-end to CVS
2 2
3;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4;; 2000, 2002, 2003, 2004 Free Software Foundation, Inc. 4;; 2000, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5 5
6;; Author: (The PCL-CVS Trust) pcl-cvs@cyclic.com 6;; Author: (The PCL-CVS Trust) pcl-cvs@cyclic.com
7;; (Per Cederqvist) ceder@lysator.liu.se 7;; (Per Cederqvist) ceder@lysator.liu.se
@@ -1687,8 +1687,7 @@ Signal an error if there is no backup file."
1687 (message "Retrieving revision %s..." rev) 1687 (message "Retrieving revision %s..." rev)
1688 ;; Discard stderr output to work around the CVS+SSH+libc 1688 ;; Discard stderr output to work around the CVS+SSH+libc
1689 ;; problem when stdout and stderr are the same. 1689 ;; problem when stdout and stderr are the same.
1690 ;; FIXME: this doesn't seem to make any difference :-( 1690 (let ((res (apply 'call-process cvs-program nil '(t nil) nil
1691 (let ((res (apply 'call-process cvs-program nil '(t . nil) nil
1692 "-q" "update" "-p" 1691 "-q" "update" "-p"
1693 ;; If `rev' is HEAD, don't pass it at all: 1692 ;; If `rev' is HEAD, don't pass it at all:
1694 ;; the default behavior is to get the head 1693 ;; the default behavior is to get the head
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index a7ded41103e..d43264f275e 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -1,6 +1,7 @@
1;;; mac-win.el --- parse switches controlling interface with Mac window system 1;;; mac-win.el --- parse switches controlling interface with Mac window system
2 2
3;; Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation, Inc. 3;; Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005
4;; Free Software Foundation, Inc.
4 5
5;; Author: Andrew Choi <akochoi@mac.com> 6;; Author: Andrew Choi <akochoi@mac.com>
6;; Keywords: terminals 7;; Keywords: terminals
@@ -1013,16 +1014,16 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
1013(define-key function-key-map [M-return] [?\M-\C-m]) 1014(define-key function-key-map [M-return] [?\M-\C-m])
1014(define-key function-key-map [tab] [?\t]) 1015(define-key function-key-map [tab] [?\t])
1015(define-key function-key-map [M-tab] [?\M-\t]) 1016(define-key function-key-map [M-tab] [?\M-\t])
1016(define-key function-key-map [backspace] [127]) 1017(define-key function-key-map [backspace] [?\d])
1017(define-key function-key-map [M-backspace] [?\M-\d]) 1018(define-key function-key-map [M-backspace] [?\M-\d])
1018(define-key function-key-map [escape] [?\e]) 1019(define-key function-key-map [escape] [?\e])
1019(define-key function-key-map [M-escape] [?\M-\e]) 1020(define-key function-key-map [M-escape] [?\M-\e])
1020 1021
1021;; These tell read-char how to convert 1022;; These tell read-char how to convert
1022;; these special chars to ASCII. 1023;; these special chars to ASCII.
1023(put 'return 'ascii-character 13) 1024(put 'return 'ascii-character ?\C-m)
1024(put 'tab 'ascii-character ?\t) 1025(put 'tab 'ascii-character ?\t)
1025(put 'backspace 'ascii-character 127) 1026(put 'backspace 'ascii-character ?\d)
1026(put 'escape 'ascii-character ?\e) 1027(put 'escape 'ascii-character ?\e)
1027 1028
1028 1029
@@ -1667,7 +1668,7 @@ Switch to a buffer editing the last file dropped."
1667 1668
1668(unless (eq system-type 'darwin) 1669(unless (eq system-type 'darwin)
1669 ;; This variable specifies the Unix program to call (as a process) to 1670 ;; This variable specifies the Unix program to call (as a process) to
1670 ;; deteremine the amount of free space on a file system (defaults to 1671 ;; determine the amount of free space on a file system (defaults to
1671 ;; df). If it is not set to nil, ls-lisp will not work correctly 1672 ;; df). If it is not set to nil, ls-lisp will not work correctly
1672 ;; unless an external application df is implemented on the Mac. 1673 ;; unless an external application df is implemented on the Mac.
1673 (setq directory-free-space-program nil) 1674 (setq directory-free-space-program nil)
@@ -1675,20 +1676,17 @@ Switch to a buffer editing the last file dropped."
1675 ;; Set this so that Emacs calls subprocesses with "sh" as shell to 1676 ;; Set this so that Emacs calls subprocesses with "sh" as shell to
1676 ;; expand filenames Note no subprocess for the shell is actually 1677 ;; expand filenames Note no subprocess for the shell is actually
1677 ;; started (see run_mac_command in sysdep.c). 1678 ;; started (see run_mac_command in sysdep.c).
1678 (setq shell-file-name "sh")) 1679 (setq shell-file-name "sh")
1680
1681 ;; To display filenames in Chinese or Japanese, replace mac-roman with
1682 ;; big5 or sjis
1683 (setq file-name-coding-system 'mac-roman))
1679 1684
1680;; X Window emulation in macterm.c is not complete enough to start a 1685;; X Window emulation in macterm.c is not complete enough to start a
1681;; frame without a minibuffer properly. Call this to tell ediff 1686;; frame without a minibuffer properly. Call this to tell ediff
1682;; library to use a single frame. 1687;; library to use a single frame.
1683; (ediff-toggle-multiframe) 1688; (ediff-toggle-multiframe)
1684 1689
1685(if (eq system-type 'darwin)
1686 ;; On Darwin filenames are encoded in UTF-8
1687 (setq file-name-coding-system 'utf-8)
1688 ;; To display filenames in Chinese or Japanese, replace mac-roman with
1689 ;; big5 or sjis
1690 (setq file-name-coding-system 'mac-roman))
1691
1692;; If Emacs is started from the Finder, change the default directory 1690;; If Emacs is started from the Finder, change the default directory
1693;; to the user's home directory. 1691;; to the user's home directory.
1694(if (string= default-directory "/") 1692(if (string= default-directory "/")
@@ -1706,5 +1704,5 @@ Switch to a buffer editing the last file dropped."
1706 1704
1707;; (prefer-coding-system 'mac-roman) 1705;; (prefer-coding-system 'mac-roman)
1708 1706
1709;;; arch-tag: 71dfcd14-cde8-4d66-b05c-85ec94fb23a6 1707;; arch-tag: 71dfcd14-cde8-4d66-b05c-85ec94fb23a6
1710;;; mac-win.el ends here 1708;;; mac-win.el ends here
diff --git a/src/ChangeLog b/src/ChangeLog
index 7c926e9b919..4cd7ef4f373 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,17 @@
12005-02-21 Stefan <monnier@iro.umontreal.ca>
2
3 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
4
52005-02-21 Kim F. Storm <storm@cua.dk>
6
7 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
8 I think those asserts are bogus if buffer contains invisible text
9 or images.
10
112005-02-21 David Kastrup <dak@gnu.org>
12
13 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
14
12005-02-20 Kim F. Storm <storm@cua.dk> 152005-02-20 Kim F. Storm <storm@cua.dk>
2 16
3 * xdisp.c (pos_visible_p): Be sure to move to the specified 17 * xdisp.c (pos_visible_p): Be sure to move to the specified
@@ -848,13 +862,8 @@
848 (install_window_handler) [TARGET_API_MAC_CARBON]: 862 (install_window_handler) [TARGET_API_MAC_CARBON]:
849 Register handlers for tracking/receiving drag-and-drop items. 863 Register handlers for tracking/receiving drag-and-drop items.
850 (do_ae_open_documents): Generate unibyte strings for filenames. 864 (do_ae_open_documents): Generate unibyte strings for filenames.
851<<<<<<< ChangeLog
852 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
853 Reject only non-filename items. Set event modifiers and return value.
854=======
855 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. 865 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
856 Reject only non-filename items. Set event modifiers, and return value. 866 Reject only non-filename items. Set event modifiers, and return value.
857>>>>>>> 1.4187
858 867
8592004-12-28 Dan Nicolaescu <dann@ics.uci.edu> 8682004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
860 869
@@ -964,12 +973,7 @@
964 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window 973 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
965 if the position is neither user-specified nor program-specified. 974 if the position is neither user-specified nor program-specified.
966 (x_free_frame_resources): Free size_hints. 975 (x_free_frame_resources): Free size_hints.
967<<<<<<< ChangeLog
968 (x_wm_set_size_hint): Allocate size_hints if needed.
969 Set size_hints.
970=======
971 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints. 976 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
972>>>>>>> 1.4187
973 (mac_clear_font_name_table): New function. 977 (mac_clear_font_name_table): New function.
974 (mac_do_list_fonts): Initialize font_name_table if needed. 978 (mac_do_list_fonts): Initialize font_name_table if needed.
975 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT 979 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
@@ -1021,11 +1025,7 @@
1021 1025
10222004-12-27 Richard M. Stallman <rms@gnu.org> 10262004-12-27 Richard M. Stallman <rms@gnu.org>
1023 1027
1024<<<<<<< ChangeLog
1025 * buffer.c (Fbuffer_disable_undo): Delete (moved to simple.el).
1026=======
1027 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el). 1028 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
1028>>>>>>> 1.4187
1029 (syms_of_buffer): Don't defsubr it. 1029 (syms_of_buffer): Don't defsubr it.
1030 1030
1031 * process.c (list_processes_1): Set undo_list instead 1031 * process.c (list_processes_1): Set undo_list instead
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 6bf0c25f350..c291b44f5a2 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -584,14 +584,14 @@ xg_resize_widgets (f, pixelwidth, pixelheight)
584{ 584{
585 int mbheight = FRAME_MENUBAR_HEIGHT (f); 585 int mbheight = FRAME_MENUBAR_HEIGHT (f);
586 int tbheight = FRAME_TOOLBAR_HEIGHT (f); 586 int tbheight = FRAME_TOOLBAR_HEIGHT (f);
587 int rows = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, (pixelheight 587 int rows = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, (pixelheight
588 - mbheight - tbheight)); 588 - mbheight - tbheight));
589 int columns = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, pixelwidth); 589 int columns = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, pixelwidth);
590 590
591 if (FRAME_GTK_WIDGET (f) 591 if (FRAME_GTK_WIDGET (f)
592 && (columns != FRAME_COLS (f) 592 && (columns != FRAME_COLS (f)
593 || rows != FRAME_LINES (f) 593 || rows != FRAME_LINES (f)
594 || pixelwidth != FRAME_PIXEL_WIDTH (f) 594 || pixelwidth != FRAME_PIXEL_WIDTH (f)
595 || pixelheight != FRAME_PIXEL_HEIGHT (f))) 595 || pixelheight != FRAME_PIXEL_HEIGHT (f)))
596 { 596 {
597 struct x_output *x = f->output_data.x; 597 struct x_output *x = f->output_data.x;
@@ -719,6 +719,7 @@ xg_create_frame_widgets (f)
719 if (wvbox) gtk_widget_destroy (wvbox); 719 if (wvbox) gtk_widget_destroy (wvbox);
720 if (wfixed) gtk_widget_destroy (wfixed); 720 if (wfixed) gtk_widget_destroy (wfixed);
721 721
722 UNBLOCK_INPUT;
722 return 0; 723 return 0;
723 } 724 }
724 725
@@ -2881,7 +2882,7 @@ scroll_bar_button_cb (widget, event, user_data)
2881 if (xg_timer) xg_stop_timer (); 2882 if (xg_timer) xg_stop_timer ();
2882 bar->dragging = Qnil; 2883 bar->dragging = Qnil;
2883 } 2884 }
2884 2885
2885 return FALSE; 2886 return FALSE;
2886} 2887}
2887 2888
@@ -2945,7 +2946,7 @@ xg_create_scroll_bar (f, bar, scroll_callback, scroll_bar_name)
2945 event box window. */ 2946 event box window. */
2946 gtk_fixed_put (GTK_FIXED (f->output_data.x->edit_widget), webox, -1, -1); 2947 gtk_fixed_put (GTK_FIXED (f->output_data.x->edit_widget), webox, -1, -1);
2947 gtk_container_add (GTK_CONTAINER (webox), wscroll); 2948 gtk_container_add (GTK_CONTAINER (webox), wscroll);
2948 2949
2949 2950
2950 /* Set the cursor to an arrow. */ 2951 /* Set the cursor to an arrow. */
2951 xg_set_cursor (webox, FRAME_X_DISPLAY_INFO (f)->xg_cursor); 2952 xg_set_cursor (webox, FRAME_X_DISPLAY_INFO (f)->xg_cursor);
@@ -3270,10 +3271,10 @@ xg_tool_bar_item_expose_callback (w, event, client_data)
3270 3271
3271 event->area.x = max (0, event->area.x); 3272 event->area.x = max (0, event->area.x);
3272 event->area.y = max (0, event->area.y); 3273 event->area.y = max (0, event->area.y);
3273 3274
3274 event->area.width = max (width, event->area.width); 3275 event->area.width = max (width, event->area.width);
3275 event->area.height = max (height, event->area.height); 3276 event->area.height = max (height, event->area.height);
3276 3277
3277 return FALSE; 3278 return FALSE;
3278} 3279}
3279 3280
@@ -3394,7 +3395,7 @@ update_frame_tool_bar (f)
3394 DEFAULT_TOOL_BAR_BUTTON_MARGIN has no effect. */ 3395 DEFAULT_TOOL_BAR_BUTTON_MARGIN has no effect. */
3395 hmargin = max (0, hmargin - DEFAULT_TOOL_BAR_BUTTON_MARGIN); 3396 hmargin = max (0, hmargin - DEFAULT_TOOL_BAR_BUTTON_MARGIN);
3396 vmargin = max (0, vmargin - DEFAULT_TOOL_BAR_BUTTON_MARGIN); 3397 vmargin = max (0, vmargin - DEFAULT_TOOL_BAR_BUTTON_MARGIN);
3397 3398
3398 if (! x->toolbar_widget) 3399 if (! x->toolbar_widget)
3399 xg_create_tool_bar (f); 3400 xg_create_tool_bar (f);
3400 3401
diff --git a/src/keymap.h b/src/keymap.h
index e50a62c8aa5..bec39186863 100644
--- a/src/keymap.h
+++ b/src/keymap.h
@@ -1,5 +1,5 @@
1/* Functions to manipulate keymaps. 1/* Functions to manipulate keymaps.
2 Copyright (C) 2001 Free Software Foundation, Inc. 2 Copyright (C) 2001, 2005 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -33,6 +33,7 @@ EXFUN (Fkey_binding, 3);
33EXFUN (Fkey_description, 2); 33EXFUN (Fkey_description, 2);
34EXFUN (Fsingle_key_description, 2); 34EXFUN (Fsingle_key_description, 2);
35EXFUN (Fwhere_is_internal, 5); 35EXFUN (Fwhere_is_internal, 5);
36EXFUN (Fcurrent_active_maps, 1);
36extern Lisp_Object access_keymap P_ ((Lisp_Object, Lisp_Object, int, int, int)); 37extern Lisp_Object access_keymap P_ ((Lisp_Object, Lisp_Object, int, int, int));
37extern Lisp_Object get_keyelt P_ ((Lisp_Object, int)); 38extern Lisp_Object get_keyelt P_ ((Lisp_Object, int));
38extern Lisp_Object get_keymap P_ ((Lisp_Object, int, int)); 39extern Lisp_Object get_keymap P_ ((Lisp_Object, int, int));
diff --git a/src/xdisp.c b/src/xdisp.c
index f8f97b44b3b..c05e57cf7e1 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -6314,7 +6314,11 @@ move_it_vertically_backward (it, dy)
6314 value of nlines is > 0 if continuation lines were involved. */ 6314 value of nlines is > 0 if continuation lines were involved. */
6315 if (nlines > 0) 6315 if (nlines > 0)
6316 move_it_by_lines (it, nlines, 1); 6316 move_it_by_lines (it, nlines, 1);
6317#if 0
6318 /* I think this assert is bogus if buffer contains
6319 invisible text or images. KFS. */
6317 xassert (IT_CHARPOS (*it) <= start_pos); 6320 xassert (IT_CHARPOS (*it) <= start_pos);
6321#endif
6318 } 6322 }
6319 else 6323 else
6320 { 6324 {
@@ -6363,7 +6367,11 @@ move_it_vertically_backward (it, dy)
6363 while (target_y >= line_bottom_y (it) && IT_CHARPOS (*it) < ZV); 6367 while (target_y >= line_bottom_y (it) && IT_CHARPOS (*it) < ZV);
6364 } 6368 }
6365 6369
6370#if 0
6371 /* I think this assert is bogus if buffer contains
6372 invisible text or images. KFS. */
6366 xassert (IT_CHARPOS (*it) >= BEGV); 6373 xassert (IT_CHARPOS (*it) >= BEGV);
6374#endif
6367 } 6375 }
6368 } 6376 }
6369} 6377}