aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2004-07-24 22:08:12 +0000
committerKaroly Lorentey2004-07-24 22:08:12 +0000
commit15dabcb48a89496d128b7159fbb8d498b7cfbda6 (patch)
treeecead49e540dae176cbe47106d1b646c1796a020
parent407e382d35ede779a23b974d7ac40a7d3d0fa5ff (diff)
parente4ed805e9d3b9f2019cb9376682bb53dafaf81fb (diff)
downloademacs-15dabcb48a89496d128b7159fbb8d498b7cfbda6.tar.gz
emacs-15dabcb48a89496d128b7159fbb8d498b7cfbda6.zip
Merged in changes from CVS trunk.
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-464 Update from CVS: lisp/progmodes/make-mode.el: Fix comments. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-465 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-466 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-467 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-221
-rw-r--r--lisp/ChangeLog24
-rw-r--r--lisp/autorevert.el2
-rw-r--r--lisp/frame.el4
-rw-r--r--lisp/makefile.w32-in2
-rw-r--r--lisp/progmodes/make-mode.el6
-rw-r--r--lisp/ps-print.el51
-rw-r--r--lisp/simple.el7
-rw-r--r--lispref/ChangeLog5
-rw-r--r--lispref/macros.texi2
-rw-r--r--lispref/windows.texi3
-rw-r--r--nt/makefile.w32-in4
-rw-r--r--src/ChangeLog5
-rw-r--r--src/frame.c18
-rw-r--r--src/xfns.c24
14 files changed, 128 insertions, 29 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f0690a1fa44..3f1f6ed7363 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,27 @@
12004-07-23 Luc Teirlinck <teirllm@auburn.edu>
2
3 * frame.el (modify-all-frames-parameters): Minor doc fix.
4 (set-frame-configuration): Doc fix.
5
62004-07-23 Matt Hodges <matt@stchem.bham.ac.uk> (tiny change)
7
8 * simple.el (completion-setup-function): Compute the common parts
9 and the first difference place correctly when
10 partial-completion-mode is on.
11
122004-07-22 Vinicius Jose Latorre <viniciusjl@ig.com.br>
13
14 * ps-print.el: Doc fix. Improve the DSC compliance of the generated
15 PostScript. Suggested by Michael Piotrowski <mxp@dynalabs.de>.
16 (ps-print-version): New version 6.6.5.
17 (ps-printing-region): Doc fix.
18 (ps-generate-string-list): Comment fix.
19 (ps-message-log-max, ps-begin-file): Code fix.
20
212004-07-22 Kim F. Storm <storm@cua.dk>
22
23 * progmodes/make-mode.el: Fix comments.
24
12004-07-21 Vinicius Jose Latorre <viniciusjl@ig.com.br> 252004-07-21 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2 26
3 * printing.el: Doc fix. 27 * printing.el: Doc fix.
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index ef438eb4b97..796ebaa27c8 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -1,6 +1,6 @@
1;;; autorevert.el --- revert buffers when files on disk change 1;;; autorevert.el --- revert buffers when files on disk change
2 2
3;; Copyright (C) 1997, 1998, 1999, 2001 Free Software Foundation, Inc. 3;; Copyright (C) 1997, 1998, 1999, 2001, 2004 Free Software Foundation, Inc.
4 4
5;; Author: Anders Lindgren <andersl@andersl.com> 5;; Author: Anders Lindgren <andersl@andersl.com>
6;; Keywords: convenience 6;; Keywords: convenience
diff --git a/lisp/frame.el b/lisp/frame.el
index d032dfa82ec..385af2e130e 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -532,7 +532,7 @@ React to settings of `default-frame-alist', `initial-frame-alist' there."
532;;;; Creation of additional frames, and other frame miscellanea 532;;;; Creation of additional frames, and other frame miscellanea
533 533
534(defun modify-all-frames-parameters (alist) 534(defun modify-all-frames-parameters (alist)
535 "Modify all current and future frames parameters according to ALIST. 535 "Modify all current and future frames' parameters according to ALIST.
536This changes `default-frame-alist' and possibly `initial-frame-alist'. 536This changes `default-frame-alist' and possibly `initial-frame-alist'.
537See help of `modify-frame-parameters' for more information." 537See help of `modify-frame-parameters' for more information."
538 (let (element) ;; temp 538 (let (element) ;; temp
@@ -856,6 +856,8 @@ where
856 "Restore the frames to the state described by CONFIGURATION. 856 "Restore the frames to the state described by CONFIGURATION.
857Each frame listed in CONFIGURATION has its position, size, window 857Each frame listed in CONFIGURATION has its position, size, window
858configuration, and other parameters set as specified in CONFIGURATION. 858configuration, and other parameters set as specified in CONFIGURATION.
859However, this function does not restore deleted frames.
860
859Ordinarily, this function deletes all existing frames not 861Ordinarily, this function deletes all existing frames not
860listed in CONFIGURATION. But if optional second argument NODELETE 862listed in CONFIGURATION. But if optional second argument NODELETE
861is given and non-nil, the unwanted frames are iconified instead." 863is given and non-nil, the unwanted frames are iconified instead."
diff --git a/lisp/makefile.w32-in b/lisp/makefile.w32-in
index 826cf89bfec..b2694bc2b78 100644
--- a/lisp/makefile.w32-in
+++ b/lisp/makefile.w32-in
@@ -209,7 +209,7 @@ loaddefs.el-CMD:
209 echo (autoload 'define-derived-mode "derived")>> $@ 209 echo (autoload 'define-derived-mode "derived")>> $@
210 echo (autoload 'encoded-kbd-mode "encoded-kb")>> $@ 210 echo (autoload 'encoded-kbd-mode "encoded-kb")>> $@
211 echo (defvar cvs-global-menu nil)>> $@ 211 echo (defvar cvs-global-menu nil)>> $@
212 echo. >> $@ 212 echo ;;; >> $@
213 echo ;;; Local Variables:>> $@ 213 echo ;;; Local Variables:>> $@
214 echo ;;; version-control: never>> $@ 214 echo ;;; version-control: never>> $@
215 echo ;;; no-byte-compile: t>> $@ 215 echo ;;; no-byte-compile: t>> $@
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el
index 5130ca9bfef..c887b144965 100644
--- a/lisp/progmodes/make-mode.el
+++ b/lisp/progmodes/make-mode.el
@@ -8,11 +8,6 @@
8;; Adapted-By: ESR 8;; Adapted-By: ESR
9;; Keywords: unix, tools 9;; Keywords: unix, tools
10 10
11;; RMS:
12;; This needs work.
13;; Also, the doc strings need fixing: the first line doesn't stand alone,
14;; and other usage is not high quality. Symbol names don't have `...'.
15
16;; This file is part of GNU Emacs. 11;; This file is part of GNU Emacs.
17 12
18;; GNU Emacs is free software; you can redistribute it and/or modify 13;; GNU Emacs is free software; you can redistribute it and/or modify
@@ -63,6 +58,7 @@
63;; 58;;
64;; To Do: 59;; To Do:
65;; 60;;
61;; * Add missing doc strings, improve terse doc strings.
66;; * Eliminate electric stuff entirely. 62;; * Eliminate electric stuff entirely.
67;; * It might be nice to highlight targets differently depending on 63;; * It might be nice to highlight targets differently depending on
68;; whether they are up-to-date or not. Not sure how this would 64;; whether they are up-to-date or not. Not sure how this would
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 72ba4c24eed..9dca7986e7c 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -10,12 +10,12 @@
10;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) 10;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters)
11;; Vinicius Jose Latorre <viniciusjl@ig.com.br> 11;; Vinicius Jose Latorre <viniciusjl@ig.com.br>
12;; Keywords: wp, print, PostScript 12;; Keywords: wp, print, PostScript
13;; Time-stamp: <2004/03/10 18:57:00 vinicius> 13;; Time-stamp: <2004/07/21 23:12:05 vinicius>
14;; Version: 6.6.4 14;; Version: 6.6.5
15;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ 15;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/
16 16
17(defconst ps-print-version "6.6.4" 17(defconst ps-print-version "6.6.5"
18 "ps-print.el, v 6.6.4 <2004/03/10 vinicius> 18 "ps-print.el, v 6.6.5 <2004/07/21 vinicius>
19 19
20Vinicius's last change version -- this file may have been edited as part of 20Vinicius's last change version -- this file may have been edited as part of
21Emacs without changes to the version number. When reporting bugs, please also 21Emacs without changes to the version number. When reporting bugs, please also
@@ -1353,6 +1353,9 @@ Please send all bug fixes and enhancements to
1353;; Acknowledgments 1353;; Acknowledgments
1354;; --------------- 1354;; ---------------
1355;; 1355;;
1356;; Thanks to Michael Piotrowski <mxp@dynalabs.de> for improving the DSC
1357;; compliance of the generated PostScript.
1358;;
1356;; Thanks to Adam Doppelt <adoppelt@avogadro.com> for face mapping suggestion 1359;; Thanks to Adam Doppelt <adoppelt@avogadro.com> for face mapping suggestion
1357;; for black/white PostScript printers. 1360;; for black/white PostScript printers.
1358;; 1361;;
@@ -1424,7 +1427,7 @@ Please send all bug fixes and enhancements to
1424;; initial port to Emacs 19. His code is no longer part of ps-print, but his 1427;; initial port to Emacs 19. His code is no longer part of ps-print, but his
1425;; work is still appreciated. 1428;; work is still appreciated.
1426;; 1429;;
1427;; Thanks to Remi Houdaille and Michel Train, michel@metasoft.fdn.org, for 1430;; Thanks to Remi Houdaille and Michel Train <michel@metasoft.fdn.org> for
1428;; adding underline support. Their code also is no longer part of ps-print, 1431;; adding underline support. Their code also is no longer part of ps-print,
1429;; but their efforts are not forgotten. 1432;; but their efforts are not forgotten.
1430;; 1433;;
@@ -4162,6 +4165,7 @@ If EXTENSION is any other symbol, it is ignored."
4162 4165
4163(defun ps-message-log-max () 4166(defun ps-message-log-max ()
4164 (and (not (string= (buffer-name) "*Messages*")) 4167 (and (not (string= (buffer-name) "*Messages*"))
4168 (boundp 'message-log-max)
4165 message-log-max)) 4169 message-log-max))
4166 4170
4167 4171
@@ -4210,7 +4214,7 @@ If EXTENSION is any other symbol, it is ignored."
4210 4214
4211 4215
4212(defvar ps-printing-region nil 4216(defvar ps-printing-region nil
4213 "Variable used to indicate if the region that ps-print is printing. 4217 "Variable used to indicate the region that ps-print is printing.
4214It is a cons, the car of which is the line number where the region begins, and 4218It is a cons, the car of which is the line number where the region begins, and
4215its cdr is the total number of lines in the buffer. Formatting functions can 4219its cdr is the total number of lines in the buffer. Formatting functions can
4216use this information to print the original line number (and not the number of 4220use this information to print the original line number (and not the number of
@@ -4729,12 +4733,16 @@ page-height == ((floor print-height ((th + ls) * zh)) * ((th + ls) * zh)) - th
4729 (let (str) 4733 (let (str)
4730 (while content 4734 (while content
4731 (setq str (cons (cond 4735 (setq str (cons (cond
4736 ;; string
4732 ((stringp (car content)) 4737 ((stringp (car content))
4733 (car content)) 4738 (car content))
4739 ;; function symbol
4734 ((and (symbolp (car content)) (fboundp (car content))) 4740 ((and (symbolp (car content)) (fboundp (car content)))
4735 (concat "(" (funcall (car content)) ")")) 4741 (concat "(" (funcall (car content)) ")"))
4742 ;; variable symbol
4736 ((and (symbolp (car content)) (boundp (car content))) 4743 ((and (symbolp (car content)) (boundp (car content)))
4737 (concat "(" (symbol-value (car content)) ")")) 4744 (concat "(" (symbol-value (car content)) ")"))
4745 ;; otherwise, empty string
4738 (t 4746 (t
4739 "")) 4747 ""))
4740 str) 4748 str)
@@ -5424,9 +5432,9 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5424 ps-adobe-tag 5432 ps-adobe-tag
5425 "%%Title: " (buffer-name) ; Take job name from name of 5433 "%%Title: " (buffer-name) ; Take job name from name of
5426 ; first buffer printed 5434 ; first buffer printed
5427 "\n%%Creator: " (user-full-name) 5435 "\n%%Creator: ps-print v" ps-print-version
5428 " (using ps-print v" ps-print-version 5436 "\n%%For: " (user-full-name)
5429 ")\n%%CreationDate: " (format-time-string "%T %b %d %Y") 5437 "\n%%CreationDate: " (format-time-string "%T %b %d %Y")
5430 "\n%%Orientation: " 5438 "\n%%Orientation: "
5431 (if ps-landscape-mode "Landscape" "Portrait") 5439 (if ps-landscape-mode "Landscape" "Portrait")
5432 "\n%%DocumentNeededResources: font Times-Roman Times-Italic\n%%+ font " 5440 "\n%%DocumentNeededResources: font Times-Roman Times-Italic\n%%+ font "
@@ -5434,8 +5442,11 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5434 (ps-remove-duplicates 5442 (ps-remove-duplicates
5435 (append (ps-fonts 'ps-font-for-text) 5443 (append (ps-fonts 'ps-font-for-text)
5436 (list (ps-font 'ps-font-for-header 'normal) 5444 (list (ps-font 'ps-font-for-header 'normal)
5437 (ps-font 'ps-font-for-header 'bold)))) 5445 (ps-font 'ps-font-for-header 'bold)
5446 (ps-font 'ps-font-for-footer 'normal)
5447 (ps-font 'ps-font-for-footer 'bold))))
5438 "\n%%+ font ") 5448 "\n%%+ font ")
5449 "\n%%DocumentSuppliedResources: procset PSPrintUserDefinedPrologue-" (user-login-name) " 0 0"
5439 "\n%%DocumentMedia: " (ps-page-dimensions-get-media dimensions) 5450 "\n%%DocumentMedia: " (ps-page-dimensions-get-media dimensions)
5440 (format " %d" (round (ps-page-dimensions-get-width dimensions))) 5451 (format " %d" (round (ps-page-dimensions-get-width dimensions)))
5441 (format " %d" (round (ps-page-dimensions-get-height dimensions))) 5452 (format " %d" (round (ps-page-dimensions-get-height dimensions)))
@@ -5455,11 +5466,11 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5455 ps-error-handler-alist)) 5466 ps-error-handler-alist))
5456 1)) ; send to paper 5467 1)) ; send to paper
5457 ps-print-prologue-0 5468 ps-print-prologue-0
5458 "\n%%BeginProcSet: UserDefinedPrologue\n\n") 5469 "\n%%BeginResource: procset PSPrintUserDefinedPrologue-" (user-login-name) " 0 0\n\n")
5459 5470
5460 (ps-insert-string ps-user-defined-prologue) 5471 (ps-insert-string ps-user-defined-prologue)
5461 5472
5462 (ps-output "\n%%EndProcSet\n\n") 5473 (ps-output "\n%%EndResource\n\n")
5463 5474
5464 (ps-output-boolean "LandscapeMode " 5475 (ps-output-boolean "LandscapeMode "
5465 (or ps-landscape-mode 5476 (or ps-landscape-mode
@@ -5571,6 +5582,21 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5571 (mapcar 'ps-output ps-background-all-pages) 5582 (mapcar 'ps-output ps-background-all-pages)
5572 (ps-output "}def\n/printLocalBackground{\n}def\n") 5583 (ps-output "}def\n/printLocalBackground{\n}def\n")
5573 5584
5585 (ps-output "\n%%EndProlog\n\n%%BeginSetup\n")
5586
5587 (ps-output
5588 "\n%%IncludeResource: font Times-Roman"
5589 "\n%%IncludeResource: font Times-Italic\n%%IncludeResource: font "
5590 (mapconcat 'identity
5591 (ps-remove-duplicates
5592 (append (ps-fonts 'ps-font-for-text)
5593 (list (ps-font 'ps-font-for-header 'normal)
5594 (ps-font 'ps-font-for-header 'bold)
5595 (ps-font 'ps-font-for-footer 'normal)
5596 (ps-font 'ps-font-for-footer 'bold))))
5597 "\n%%IncludeResource: font ")
5598 "\n")
5599
5574 ;; Header/line number fonts 5600 ;; Header/line number fonts
5575 (ps-output (format "/h0 %s(%s)cvn DefFont\n" ; /h0 14/Helvetica-Bold DefFont 5601 (ps-output (format "/h0 %s(%s)cvn DefFont\n" ; /h0 14/Helvetica-Bold DefFont
5576 ps-header-title-font-size-internal 5602 ps-header-title-font-size-internal
@@ -5614,7 +5640,6 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5614 (ps-output (format "/SpaceWidthRatio %f def\n" 5640 (ps-output (format "/SpaceWidthRatio %f def\n"
5615 (/ (ps-lookup 'space-width) (ps-lookup 'size))))) 5641 (/ (ps-lookup 'space-width) (ps-lookup 'size)))))
5616 5642
5617 (ps-output "\n%%EndProlog\n\n%%BeginSetup\n")
5618 (unless (eq ps-spool-config 'lpr-switches) 5643 (unless (eq ps-spool-config 'lpr-switches)
5619 (ps-output "\n%%BeginFeature: *Duplex " 5644 (ps-output "\n%%BeginFeature: *Duplex "
5620 (ps-boolean-capitalized ps-spool-duplex) 5645 (ps-boolean-capitalized ps-spool-duplex)
diff --git a/lisp/simple.el b/lisp/simple.el
index bf57c41b1c1..9a7b7f245d0 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4317,6 +4317,13 @@ of the differing parts is, by contrast, slightly highlighted."
4317 (if minibuffer-completing-file-name 4317 (if minibuffer-completing-file-name
4318 (with-current-buffer mainbuf 4318 (with-current-buffer mainbuf
4319 (setq default-directory (file-name-directory mbuf-contents)))) 4319 (setq default-directory (file-name-directory mbuf-contents))))
4320 ;; If partial-completion-mode is on, point might not be after the
4321 ;; last character in the minibuffer.
4322 ;; FIXME: This still doesn't work if the text to be completed
4323 ;; starts with a `-'.
4324 (when (and partial-completion-mode (not (eobp)))
4325 (setq mbuf-contents
4326 (substring mbuf-contents 0 (- (point) (point-max)))))
4320 (with-current-buffer standard-output 4327 (with-current-buffer standard-output
4321 (completion-list-mode) 4328 (completion-list-mode)
4322 (make-local-variable 'completion-reference-buffer) 4329 (make-local-variable 'completion-reference-buffer)
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index 14b0fcb4606..f21788d526d 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,8 @@
12004-07-23 John Paul Wallington <jpw@gnu.org>
2
3 * macros.texi (Defining Macros): Declaration keyword for setting
4 Edebug spec is `debug' not `edebug'.
5
12004-07-19 Luc Teirlinck <teirllm@auburn.edu> 62004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2 7
3 * windows.texi: Various small changes in addition to: 8 * windows.texi: Various small changes in addition to:
diff --git a/lispref/macros.texi b/lispref/macros.texi
index e903a159c27..e28ab80ac6b 100644
--- a/lispref/macros.texi
+++ b/lispref/macros.texi
@@ -239,7 +239,7 @@ additional information about it. Two kinds of specification are
239currently supported: 239currently supported:
240 240
241@table @code 241@table @code
242@item (edebug @var{edebug-form-spec}) 242@item (debug @var{edebug-form-spec})
243Specify how to step through macro calls for Edebug. 243Specify how to step through macro calls for Edebug.
244@xref{Instrumenting Macro Calls}, for more details. 244@xref{Instrumenting Macro Calls}, for more details.
245 245
diff --git a/lispref/windows.texi b/lispref/windows.texi
index a01dc79d1f1..0fdc6734181 100644
--- a/lispref/windows.texi
+++ b/lispref/windows.texi
@@ -1,6 +1,6 @@
1@c -*-texinfo-*- 1@c -*-texinfo-*-
2@c This is part of the GNU Emacs Lisp Reference Manual. 2@c This is part of the GNU Emacs Lisp Reference Manual.
3@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999 3@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2004
4@c Free Software Foundation, Inc. 4@c Free Software Foundation, Inc.
5@c See the file elisp.texi for copying conditions. 5@c See the file elisp.texi for copying conditions.
6@setfilename ../info/windows 6@setfilename ../info/windows
@@ -1089,6 +1089,7 @@ presumably the window was previously made by this function.
1089@end defun 1089@end defun
1090 1090
1091@defopt special-display-frame-alist 1091@defopt special-display-frame-alist
1092@anchor{Definition of special-display-frame-alist}
1092This variable holds frame parameters for 1093This variable holds frame parameters for
1093@code{special-display-popup-frame} to use when it creates a frame. 1094@code{special-display-popup-frame} to use when it creates a frame.
1094@end defopt 1095@end defopt
diff --git a/nt/makefile.w32-in b/nt/makefile.w32-in
index adbb3fd57b8..ec30853ed29 100644
--- a/nt/makefile.w32-in
+++ b/nt/makefile.w32-in
@@ -111,10 +111,10 @@ maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE)
111doit: 111doit:
112 112
113maybe-bootstrap-CMD: doit 113maybe-bootstrap-CMD: doit
114 @echo. 114 @echo .
115 @if not EXIST ..\lisp\abbrev.elc echo Essential Lisp files seem to be missing. You should either 115 @if not EXIST ..\lisp\abbrev.elc echo Essential Lisp files seem to be missing. You should either
116 @if not EXIST ..\lisp\abbrev.elc echo do 'make bootstrap' or create 'lisp/abbrev.elc' somehow 116 @if not EXIST ..\lisp\abbrev.elc echo do 'make bootstrap' or create 'lisp/abbrev.elc' somehow
117 @echo. 117 @echo .
118 @if not EXIST ..\lisp\abbrev.elc exit -1 118 @if not EXIST ..\lisp\abbrev.elc exit -1
119 119
120maybe-bootstrap-SH: doit 120maybe-bootstrap-SH: doit
diff --git a/src/ChangeLog b/src/ChangeLog
index e51cdf554ce..8d9d72de9d2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12004-07-24 Richard M. Stallman <rms@gnu.org>
2
3 * xfns.c (x_icon_verify): New function.
4 (Fx_create_frame): Use it.
5
12004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change) 62004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2 7
3 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined. 8 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
diff --git a/src/frame.c b/src/frame.c
index 9a0563c6f76..1935df35508 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1,5 +1,5 @@
1/* Generic frame functions. 1/* Generic frame functions.
2 Copyright (C) 1993, 1994, 1995, 1997, 1999, 2000, 2001, 2003 2 Copyright (C) 1993, 1994, 1995, 1997, 1999, 2000, 2001, 2003, 2004
3 Free Software Foundation. 3 Free Software Foundation.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
@@ -911,7 +911,12 @@ DEFUN ("select-frame", Fselect_frame, Sselect_frame, 1, 2, "e",
911Subsequent editing commands apply to its selected window. 911Subsequent editing commands apply to its selected window.
912The selection of FRAME lasts until the next time the user does 912The selection of FRAME lasts until the next time the user does
913something to select a different frame, or until the next time this 913something to select a different frame, or until the next time this
914function is called. */) 914function is called. If you are using a window system, the previously
915selected frame may be restored as the selected frame after return to
916the command loop, because it still may have the window system's input
917focus. On a text-only terminal, the next redisplay will display FRAME.
918
919This function returns FRAME, or nil if FRAME has been deleted. */)
915 (frame, no_enter) 920 (frame, no_enter)
916 Lisp_Object frame, no_enter; 921 Lisp_Object frame, no_enter;
917{ 922{
@@ -1039,6 +1044,7 @@ If omitted, FRAME defaults to the currently selected frame. */)
1039DEFUN ("set-frame-selected-window", Fset_frame_selected_window, 1044DEFUN ("set-frame-selected-window", Fset_frame_selected_window,
1040 Sset_frame_selected_window, 2, 2, 0, 1045 Sset_frame_selected_window, 2, 2, 0,
1041 doc: /* Set the selected window of frame object FRAME to WINDOW. 1046 doc: /* Set the selected window of frame object FRAME to WINDOW.
1047Return WINDOW.
1042If FRAME is nil, the selected frame is used. 1048If FRAME is nil, the selected frame is used.
1043If FRAME is the selected frame, this makes WINDOW the selected window. */) 1049If FRAME is the selected frame, this makes WINDOW the selected window. */)
1044 (frame, window) 1050 (frame, window)
@@ -1937,7 +1943,11 @@ DEFUN ("frame-visible-p", Fframe_visible_p, Sframe_visible_p,
1937 doc: /* Return t if FRAME is now \"visible\" (actually in use for display). 1943 doc: /* Return t if FRAME is now \"visible\" (actually in use for display).
1938A frame that is not \"visible\" is not updated and, if it works through 1944A frame that is not \"visible\" is not updated and, if it works through
1939a window system, it may not show at all. 1945a window system, it may not show at all.
1940Return the symbol `icon' if frame is visible only as an icon. */) 1946Return the symbol `icon' if frame is visible only as an icon.
1947
1948On a text-only terminal, all frames are considered visible, whether
1949they are currently being displayed or not, and this function returns t
1950for all frames. */)
1941 (frame) 1951 (frame)
1942 Lisp_Object frame; 1952 Lisp_Object frame;
1943{ 1953{
@@ -1977,7 +1987,7 @@ DEFUN ("visible-frame-list", Fvisible_frame_list, Svisible_frame_list,
1977 1987
1978DEFUN ("raise-frame", Fraise_frame, Sraise_frame, 0, 1, "", 1988DEFUN ("raise-frame", Fraise_frame, Sraise_frame, 0, 1, "",
1979 doc: /* Bring FRAME to the front, so it occludes any frames it overlaps. 1989 doc: /* Bring FRAME to the front, so it occludes any frames it overlaps.
1980If FRAME is invisible, make it visible. 1990If FRAME is invisible or iconified, make it visible.
1981If you don't specify a frame, the selected frame is used. 1991If you don't specify a frame, the selected frame is used.
1982If Emacs is displaying on an ordinary terminal or some other device which 1992If Emacs is displaying on an ordinary terminal or some other device which
1983doesn't support multiple overlapping frames, this function does nothing. */) 1993doesn't support multiple overlapping frames, this function does nothing. */)
diff --git a/src/xfns.c b/src/xfns.c
index 3f82966a4be..7963a910d14 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2643,6 +2643,28 @@ x_window (f)
2643#endif /* not USE_GTK */ 2643#endif /* not USE_GTK */
2644#endif /* not USE_X_TOOLKIT */ 2644#endif /* not USE_X_TOOLKIT */
2645 2645
2646/* Verify that the icon position args for this window are valid. */
2647
2648static void
2649x_icon_verify (f, parms)
2650 struct frame *f;
2651 Lisp_Object parms;
2652{
2653 Lisp_Object icon_x, icon_y;
2654
2655 /* Set the position of the icon. Note that twm groups all
2656 icons in an icon window. */
2657 icon_x = x_frame_get_and_record_arg (f, parms, Qicon_left, 0, 0, RES_TYPE_NUMBER);
2658 icon_y = x_frame_get_and_record_arg (f, parms, Qicon_top, 0, 0, RES_TYPE_NUMBER);
2659 if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound))
2660 {
2661 CHECK_NUMBER (icon_x);
2662 CHECK_NUMBER (icon_y);
2663 }
2664 else if (!EQ (icon_x, Qunbound) || !EQ (icon_y, Qunbound))
2665 error ("Both left and top icon corners of icon must be specified");
2666}
2667
2646/* Handle the icon stuff for this window. Perhaps later we might 2668/* Handle the icon stuff for this window. Perhaps later we might
2647 want an x_set_icon_position which can be called interactively as 2669 want an x_set_icon_position which can be called interactively as
2648 well. */ 2670 well. */
@@ -3132,6 +3154,8 @@ This function is an internal primitive--use `make-frame' instead. */)
3132 tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); 3154 tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN);
3133 f->no_split = minibuffer_only || EQ (tem, Qt); 3155 f->no_split = minibuffer_only || EQ (tem, Qt);
3134 3156
3157 x_icon_verify (f, parms);
3158
3135 /* Create the X widget or window. */ 3159 /* Create the X widget or window. */
3136#ifdef USE_X_TOOLKIT 3160#ifdef USE_X_TOOLKIT
3137 x_window (f, window_prompting, minibuffer_only); 3161 x_window (f, window_prompting, minibuffer_only);