Merged in changes from CVS trunk.
authorKaroly Lorentey <lorentey@elte.hu>
Fri, 7 May 2004 14:20:00 +0000 (14:20 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Fri, 7 May 2004 14:20:00 +0000 (14:20 +0000)
Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-268
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-269
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-270
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-271
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-272
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-273
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-274
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-275
   Update from CVS: man/makefile.w32-in: Revert last change

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-276
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-277
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-278
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-279
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-280
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-281
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-282
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-283
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-284
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-285
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-286
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-157

1  2 
lisp/simple.el
lisp/term/x-win.el
src/Makefile.in
src/emacs.c
src/fileio.c
src/indent.c
src/msdos.c
src/syssignal.h
src/w32term.c
src/window.c
src/xdisp.c

diff --cc lisp/simple.el
Simple merge
@@@ -2331,17 -2328,103 +2331,20 @@@ order until succeed."
      (or clip-text primary-text cut-text)
      ))
  
 -\f
 -;;; Do the actual X Windows setup here; the above code just defines
 -;;; functions and variables that we use now.
 -
 -(setq command-line-args (x-handle-args command-line-args))
 -
 -;;; Make sure we have a valid resource name.
 -(or (stringp x-resource-name)
 -    (let (i)
 -      (setq x-resource-name (invocation-name))
 -
 -      ;; Change any . or * characters in x-resource-name to hyphens,
 -      ;; so as not to choke when we use it in X resource queries.
 -      (while (setq i (string-match "[.*]" x-resource-name))
 -      (aset x-resource-name i ?-))))
 -
 -(x-open-connection (or x-display-name
 -                     (setq x-display-name (getenv "DISPLAY")))
 -                 x-command-line-resources
 -                 ;; Exit Emacs with fatal error if this fails.
 -                 t)
 -
 -(setq frame-creation-function 'x-create-frame-with-faces)
 -
 -(setq x-cut-buffer-max (min (- (/ (x-server-max-request-size) 2) 100)
 -                          x-cut-buffer-max))
 -
 -;; Setup the default fontset.
 -(setup-default-fontset)
 -
 -;; Create the standard fontset.
 -(create-fontset-from-fontset-spec standard-fontset-spec t)
 -
 -;; Create fontset specified in X resources "Fontset-N" (N is 0, 1, ...).
 -(create-fontset-from-x-resource)
 -
 -;; Try to create a fontset from a font specification which comes
 -;; from initial-frame-alist, default-frame-alist, or X resource.
 -;; A font specification in command line argument (i.e. -fn XXXX)
 -;; should be already in default-frame-alist as a `font'
 -;; parameter.  However, any font specifications in site-start
 -;; library, user's init file (.emacs), and default.el are not
 -;; yet handled here.
 -
 -(let ((font (or (cdr (assq 'font initial-frame-alist))
 -              (cdr (assq 'font default-frame-alist))
 -              (x-get-resource "font" "Font")))
 -      xlfd-fields resolved-name)
 -  (if (and font
 -         (not (query-fontset font))
 -         (setq resolved-name (x-resolve-font-name font))
 -         (setq xlfd-fields (x-decompose-font-name font)))
 -      (if (string= "fontset" (aref xlfd-fields xlfd-regexp-registry-subnum))
 -        (new-fontset font (x-complement-fontset-spec xlfd-fields nil))
 -      ;; Create a fontset from FONT.  The fontset name is
 -      ;; generated from FONT.
 -      (create-fontset-from-ascii-font font resolved-name "startup"))))
 -
 -;; Apply a geometry resource to the initial frame.  Put it at the end
 -;; of the alist, so that anything specified on the command line takes
 -;; precedence.
 -(let* ((res-geometry (x-get-resource "geometry" "Geometry"))
 -       parsed)
 -  (if res-geometry
 -      (progn
 -      (setq parsed (x-parse-geometry res-geometry))
 -      ;; If the resource specifies a position,
 -      ;; call the position and size "user-specified".
 -      (if (or (assq 'top parsed) (assq 'left parsed))
 -          (setq parsed (cons '(user-position . t)
 -                             (cons '(user-size . t) parsed))))
 -      ;; All geometry parms apply to the initial frame.
 -      (setq initial-frame-alist (append initial-frame-alist parsed))
 -      ;; The size parms apply to all frames.
 -      (if (assq 'height parsed)
 -          (setq default-frame-alist
 -                (cons (cons 'height (cdr (assq 'height parsed)))
 -                      default-frame-alist)))
 -      (if (assq 'width parsed)
 -          (setq default-frame-alist
 -                (cons (cons 'width (cdr (assq 'width parsed)))
 -                      default-frame-alist))))))
 -
 -;; Check the reverseVideo resource.
 -(let ((case-fold-search t))
 -  (let ((rv (x-get-resource "reverseVideo" "ReverseVideo")))
 -    (if (and rv
 -           (string-match "^\\(true\\|yes\\|on\\)$" rv))
 -      (setq default-frame-alist
 -            (cons '(reverse . t) default-frame-alist)))))
 +(defun x-clipboard-yank ()
 +  "Insert the clipboard contents, or the last stretch of killed text."
 +  (interactive)
-   (let ((clipboard-text (x-get-selection 'CLIPBOARD))
++  (let ((clipboard-text 
++       (condition-case nil
++           (x-get-selection 'CLIPBOARD)
++         (error nil)))
 +      (x-select-enable-clipboard t))
 +    (if (and clipboard-text (> (length clipboard-text) 0))
 +      (kill-new clipboard-text))
 +    (yank)))
  
 -;; Set x-selection-timeout, measured in milliseconds.
 -(let ((res-selection-timeout
 -       (x-get-resource "selectionTimeout" "SelectionTimeout")))
 -  (setq x-selection-timeout 20000)
 -  (if res-selection-timeout
 -      (setq x-selection-timeout (string-to-number res-selection-timeout))))
 +\f
 +;;; Window system initialization.
  
  (defun x-win-suspend-error ()
    (error "Suspending an Emacs running under X makes no sense"))
diff --cc src/Makefile.in
@@@ -1125,9 -1123,9 +1125,9 @@@ process.o: process.c process.h buffer.
     blockinput.h atimer.h charset.h coding.h ccl.h msdos.h composite.h \
     keyboard.h $(config_h)
  regex.o: regex.c syntax.h buffer.h $(config_h) regex.h category.h charset.h
- region-cache.o: region-cache.c buffer.h region-cache.h
+ region-cache.o: region-cache.c buffer.h region-cache.h $(config_h)
  scroll.o: scroll.c termchar.h dispextern.h frame.h msdos.h keyboard.h \
 -   $(config_h)
 +   termhooks.h $(config_h)
  search.o: search.c regex.h commands.h buffer.h region-cache.h syntax.h \
     blockinput.h atimer.h systime.h category.h charset.h composite.h $(config_h)
  strftime.o: strftime.c $(config_h)
diff --cc src/emacs.c
Simple merge
diff --cc src/fileio.c
Simple merge
diff --cc src/indent.c
Simple merge
diff --cc src/msdos.c
Simple merge
diff --cc src/syssignal.h
Simple merge
diff --cc src/w32term.c
Simple merge
diff --cc src/window.c
Simple merge
diff --cc src/xdisp.c
Simple merge