GNU bug report logs -
#9785
w32-default-color-map should be obsolete
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9785 in the body.
You can then email your comments to 9785 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9785
; Package
emacs
.
(Tue, 18 Oct 2011 15:35:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 18 Oct 2011 15:35:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Package: emacs
Severity: minor
After revno:106121, the w32-specific function w32-default-color-map is
only used from C, in w32fns.c:Fx_open_connection, to initialize the
color map in case ~/rgb.txt and etc/rgb.txt are not found.
It does not seem useful to expose it to elisp, so I suggest turning it
into an internal function, and marking the elisp interface as
obsolete.
Juanma
2011-10-18 Juanma Barranquero <lekktu <at> gmail.com>
* w32fns.c (w32_default_color_map): New function,
extracted from Fw32_default_color_map.
(Fw32_default_color_map, Fx_open_connection): Use it.
2011-10-18 Juanma Barranquero <lekktu <at> gmail.com>
* term/w32-win.el (w32-default-color-map): Declare obsolete.
=== modified file 'lisp/term/w32-win.el'
--- lisp/term/w32-win.el 2011-05-04 14:03:16 +0000
+++ lisp/term/w32-win.el 2011-10-18 14:40:13 +0000
@@ -85,6 +85,7 @@
(define-obsolete-function-alias 'w32-select-font 'x-select-font "23.1")
(defvar w32-color-map) ;; defined in w32fns.c
+(make-obsolete 'w32-default-color-map nil "24.1")
(declare-function w32-send-sys-command "w32fns.c")
(declare-function set-message-beep "w32console.c")
=== modified file 'src/w32fns.c'
--- src/w32fns.c 2011-07-08 12:46:17 +0000
+++ src/w32fns.c 2011-10-18 14:35:09 +0000
@@ -635,9 +635,8 @@
{"LightGreen" , PALETTERGB (144,238,144)},
};
-DEFUN ("w32-default-color-map", Fw32_default_color_map, Sw32_default_color_map,
- 0, 0, 0, doc: /* Return the default color map. */)
- (void)
+static Lisp_Object
+w32_default_color_map (void)
{
int i;
colormap_t *pc = w32_color_map;
@@ -658,6 +657,13 @@
return (cmap);
}
+DEFUN ("w32-default-color-map", Fw32_default_color_map, Sw32_default_color_map,
+ 0, 0, 0, doc: /* Return the default color map. */)
+ (void)
+{
+ return w32_default_color_map ();
+}
+
static Lisp_Object
w32_color_map_lookup (char *colorname)
{
@@ -4768,7 +4773,7 @@
UNGCPRO;
}
if (NILP (Vw32_color_map))
- Vw32_color_map = Fw32_default_color_map ();
+ Vw32_color_map = w32_default_color_map ();
/* Merge in system logical colors. */
add_system_logical_colors_to_map (&Vw32_color_map);
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9785
; Package
emacs
.
(Tue, 18 Oct 2011 15:59:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 9785 <at> debbugs.gnu.org (full text, mbox):
> From: Juanma Barranquero <lekktu <at> gmail.com>
> Date: Tue, 18 Oct 2011 17:32:31 +0200
>
> After revno:106121, the w32-specific function w32-default-color-map is
> only used from C, in w32fns.c:Fx_open_connection, to initialize the
> color map in case ~/rgb.txt and etc/rgb.txt are not found.
>
> It does not seem useful to expose it to elisp, so I suggest turning it
> into an internal function, and marking the elisp interface as
> obsolete.
Fine with me, but please wait for a few days for possible comments
from others.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9785
; Package
emacs
.
(Tue, 18 Oct 2011 16:00:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 9785 <at> debbugs.gnu.org (full text, mbox):
On Tue, Oct 18, 2011 at 17:56, Eli Zaretskii <eliz <at> gnu.org> wrote:
> Fine with me, but please wait for a few days for possible comments
> from others.
No hurry.
Juanma
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9785
; Package
emacs
.
(Mon, 24 Oct 2011 19:38:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 9785 <at> debbugs.gnu.org (full text, mbox):
> Fine with me, but please wait for a few days for possible comments
> from others.
Jason?
Juanma
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9785
; Package
emacs
.
(Wed, 26 Oct 2011 13:22:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 9785 <at> debbugs.gnu.org (full text, mbox):
Juanma Barranquero <lekktu <at> gmail.com> writes:
> From: Juanma Barranquero <lekktu <at> gmail.com>
> Date: Tue, 18 Oct 2011 17:32:31 +0200
>
> After revno:106121, the w32-specific function w32-default-color-map is
> only used from C, in w32fns.c:Fx_open_connection, to initialize the
> color map in case ~/rgb.txt and etc/rgb.txt are not found.
>
> It does not seem useful to expose it to elisp, so I suggest turning it
> into an internal function, and marking the elisp interface as
> obsolete.
...
> Jason?
Seems OK.
Reply sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
You have taken responsibility.
(Wed, 26 Oct 2011 13:47:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 26 Oct 2011 13:47:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 9785-done <at> debbugs.gnu.org (full text, mbox):
On Wed, Oct 26, 2011 at 15:19, Jason Rumney <jasonr <at> gnu.org> wrote:
> Seems OK.
Thanks, done.
Juanma
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 24 Nov 2011 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 208 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.