aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2011-09-18 16:01:37 -0400
committerChong Yidong2011-09-18 16:01:37 -0400
commit33ed493bca4647ab949193104d7e49c95c095bc8 (patch)
treea959d36bd8cd59d9220bc49bbdfb266fb5650c8b
parent72753f87ca435108ba039078dfa0c833aefb453c (diff)
downloademacs-33ed493bca4647ab949193104d7e49c95c095bc8.tar.gz
emacs-33ed493bca4647ab949193104d7e49c95c095bc8.zip
Fix handling of X resource for window icons.
* src/xfns.c (Fx_create_frame): Handle bitmapIcon resource as a boolean. * doc/emacs/cmdargs.texi (Icons X): Fix description of Emacs icon. * doc/emacs/xresources.texi (Table of Resources): Fix documentation of bitmapIcon. * doc/lispref/frames.texi (Management Parameters): Fix description of icon-type parameter. Fixes: debbugs:9154
-rw-r--r--doc/emacs/ChangeLog7
-rw-r--r--doc/emacs/cmdargs.texi2
-rw-r--r--doc/emacs/xresources.texi7
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/frames.texi8
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfns.c2
7 files changed, 26 insertions, 10 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index d87493d57b3..163eabed2a6 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,10 @@
12011-09-18 Chong Yidong <cyd@stupidchicken.com>
2
3 * cmdargs.texi (Icons X): Fix description of Emacs icon.
4
5 * xresources.texi (Table of Resources): Fix documentation of
6 bitmapIcon.
7
12011-09-15 Chong Yidong <cyd@stupidchicken.com> 82011-09-15 Chong Yidong <cyd@stupidchicken.com>
2 9
3 * package.texi (Package Menu): Add package-menu-mark-upgrades. 10 * package.texi (Package Menu): Add package-menu-mark-upgrades.
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi
index 2a19e1b009d..07cca53ce4d 100644
--- a/doc/emacs/cmdargs.texi
+++ b/doc/emacs/cmdargs.texi
@@ -1107,7 +1107,7 @@ Start Emacs in an iconified (``minimized'') state.
1107@itemx --no-bitmap-icon 1107@itemx --no-bitmap-icon
1108@opindex --no-bitmap-icon 1108@opindex --no-bitmap-icon
1109@cindex Emacs icon, a gnu 1109@cindex Emacs icon, a gnu
1110Do not use a picture of a gnu as the Emacs icon. 1110Do not display the Emacs icon.
1111@end table 1111@end table
1112 1112
1113 Most window managers allow you to ``iconify'' (or ``minimize'') an 1113 Most window managers allow you to ``iconify'' (or ``minimize'') an
diff --git a/doc/emacs/xresources.texi b/doc/emacs/xresources.texi
index d30f7e42254..c2e65268d1b 100644
--- a/doc/emacs/xresources.texi
+++ b/doc/emacs/xresources.texi
@@ -169,11 +169,10 @@ with the class that it belongs to:
169@item @code{background} (class @code{Background}) 169@item @code{background} (class @code{Background})
170Background color name. 170Background color name.
171 171
172@ifnottex
173@item @code{bitmapIcon} (class @code{BitmapIcon}) 172@item @code{bitmapIcon} (class @code{BitmapIcon})
174Use a bitmap icon (a picture of a gnu) if @samp{on}, let the window 173Tell the window manager to display the Emacs icon if @samp{on}; don't
175manager choose an icon if @samp{off}. 174do so if @samp{off}. (The icon is usually shown in the ``taskbar'' on
176@end ifnottex 175a graphical desktop.)
177 176
178@item @code{borderColor} (class @code{BorderColor}) 177@item @code{borderColor} (class @code{BorderColor})
179Color name for the external border. 178Color name for the external border.
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 24108cc6a46..3d3038cba35 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12011-09-18 Chong Yidong <cyd@stupidchicken.com>
2
3 * frames.texi (Management Parameters): Fix description of
4 icon-type parameter.
5
12011-09-17 Chong Yidong <cyd@stupidchicken.com> 62011-09-17 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * tips.texi (Key Binding Conventions): Don't bind a key sequence 8 * tips.texi (Key Binding Conventions): Don't bind a key sequence
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index e799cfa6b7f..d619b92e4d3 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -779,10 +779,10 @@ Whether deselecting the frame lowers it (non-@code{nil} means yes).
779 779
780@vindex icon-type, a frame parameter 780@vindex icon-type, a frame parameter
781@item icon-type 781@item icon-type
782The type of icon to use for this frame when it is iconified. If the 782The type of icon to use for this frame. If the value is a string,
783value is a string, that specifies a file containing a bitmap to use. 783that specifies a file containing a bitmap to use; @code{nil} specifies
784Any other non-@code{nil} value specifies the default bitmap icon (a 784no icon (in which case the window manager decides what to show); any
785picture of a gnu); @code{nil} specifies a text icon. 785other non-@code{nil} value specifies the default Emacs icon.
786 786
787@vindex icon-name, a frame parameter 787@vindex icon-name, a frame parameter
788@item icon-name 788@item icon-name
diff --git a/src/ChangeLog b/src/ChangeLog
index 1e110cc5139..8c223cc374e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-09-18 Chong Yidong <cyd@stupidchicken.com>
2
3 * xfns.c (Fx_create_frame): Handle the bitmapIcon resource as
4 boolean (Bug#9154).
5
12011-09-18 Eli Zaretskii <eliz@gnu.org> 62011-09-18 Eli Zaretskii <eliz@gnu.org>
2 7
3 * xdisp.c (display_line): Record maximum and minimum buffer 8 * xdisp.c (display_line): Record maximum and minimum buffer
diff --git a/src/xfns.c b/src/xfns.c
index 998c803a7ad..913cde75d91 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3369,7 +3369,7 @@ This function is an internal primitive--use `make-frame' instead. */)
3369 /* We need to do this after creating the X window, so that the 3369 /* We need to do this after creating the X window, so that the
3370 icon-creation functions can say whose icon they're describing. */ 3370 icon-creation functions can say whose icon they're describing. */
3371 x_default_parameter (f, parms, Qicon_type, Qt, 3371 x_default_parameter (f, parms, Qicon_type, Qt,
3372 "bitmapIcon", "BitmapIcon", RES_TYPE_SYMBOL); 3372 "bitmapIcon", "BitmapIcon", RES_TYPE_BOOLEAN);
3373 3373
3374 x_default_parameter (f, parms, Qauto_raise, Qnil, 3374 x_default_parameter (f, parms, Qauto_raise, Qnil,
3375 "autoRaise", "AutoRaiseLower", RES_TYPE_BOOLEAN); 3375 "autoRaise", "AutoRaiseLower", RES_TYPE_BOOLEAN);