]> git.eshelyaron.com Git - emacs.git/commitdiff
fix up compile error from renaming of ns-list-fonts
authorAdrian Robert <Adrian.B.Robert@gmail.com>
Wed, 23 Jul 2008 02:53:42 +0000 (02:53 +0000)
committerAdrian Robert <Adrian.B.Robert@gmail.com>
Wed, 23 Jul 2008 02:53:42 +0000 (02:53 +0000)
lisp/ChangeLog
lisp/term/ns-win.el
src/ChangeLog
src/nsfns.m
src/nsterm.m

index 6ea835e256ad10d0a6d01fb2265ef19f02a102e9..72a11167447706ff3893411bf7f0f0a04127ffc7 100644 (file)
@@ -1,3 +1,7 @@
+2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * term/ns-win.el (x-list-fonts): Drop alias.
+
 2008-07-23  Juri Linkov  <juri@jurta.org>
 
        * replace.el (multi-query-replace-map): New variable.
index 22c21a65c77754c002806d8f2846a6a89d21c4bf..cdb5018e23097b3d4a3145b0b408c1bbf8337b9f 100644 (file)
@@ -1302,7 +1302,6 @@ PROMPT is the prompt string."
 
 ;;;; Font support.
 
-(defalias 'x-list-fonts 'ns-list-fonts)
 ;; Needed for font listing functions under both backend and normal
 (setq scalable-fonts-allowed t)
 
index 9e0877701d54c47fc5661950fb7e544f2793114e..8bee26ced91ea71c9fe335abdde2f7fe93839a01 100644 (file)
@@ -1,3 +1,9 @@
+2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * nsfns.m (x-list-fonts): Remove.
+       (syms_of_nsfns): Drop the x-list-fonts declaration.
+       * nsterm.m: Get rid of remaining "//" comments.
+
 2008-07-22  Chong Yidong  <cyd@stupidchicken.com>
 
        * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
index 84bcc36a4cdf1c6861acace5a8f6b56159237fe8..b8e28f1d13f1c6e1e184a44d7175bc6434339b9d 100644 (file)
@@ -1840,63 +1840,6 @@ DEFUN ("ns-emacs-info-panel", Fns_emacs_info_panel, Sns_emacs_info_panel,
 }
 
 
-DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 4, 0,
-       doc: /* Return a list of the names of available fonts matching PATTERN.
-If optional arguments FACE and FRAME are specified, return only fonts
-the same size as FACE on FRAME.
-If optional argument MAX is specified, return at most MAX matches.
-
-PATTERN is a regular expression; FACE is a face name - a symbol.
-
-The return value is a list of strings, suitable as arguments to
-set-face-font.
-
-The font names are _NOT_ X names.  */)
-     (pattern, face, frame, max)
-     Lisp_Object pattern, face, frame, max;
-{
-  Lisp_Object flist, olist = Qnil, tem;
-  struct frame *f;
-  int maxnames;
-
-  /* We can't simply call check_x_frame because this function may be
-     called before any frame is created.  */
-  if (NILP (frame))
-    f = SELECTED_FRAME ();
-  else
-    {
-      CHECK_LIVE_FRAME (frame);
-      f = XFRAME (frame);
-    }
-  if (! FRAME_WINDOW_P (f))
-    {
-      /* Perhaps we have not yet created any frame.  */
-      f = NULL;
-    }
-
-  if (NILP (max))
-    maxnames = 4;
-  else
-    {
-      CHECK_NATNUM (max);
-      maxnames = XFASTINT (max);
-    }
-
-  /* get XLFD names */
-  flist = ns_list_fonts (f, pattern, 0, maxnames);
-
-  /* convert list into regular names */
-  for (tem = flist; CONSP (tem); tem = XCDR (tem))
-    {
-      Lisp_Object fname = XCAR (tem);
-      olist = Fcons (build_string (ns_xlfd_to_fontname (SDATA (fname))),
-                    olist);
-    }
-
-  return olist;
-}
-
-
 DEFUN ("ns-font-name", Fns_font_name, Sns_font_name, 1, 1, 0,
        doc: /* Determine font postscript or family name for font NAME.
 NAME should be a string containing either the font name or an XLFD
@@ -2693,7 +2636,6 @@ be used as the image of the icon representing the frame.  */);
   defsubr (&Sns_set_resource);
   defsubr (&Sxw_display_color_p); /* this and next called directly by C code */
   defsubr (&Sx_display_grayscale_p);
-  defsubr (&Sx_list_fonts);
   defsubr (&Sns_font_name);
   defsubr (&Sns_list_colors);
 #ifdef NS_IMPL_COCOA
index 72638825ef70b74f63cb0bd7e12853e2ae4787cf..8fd157ebcc48ba97758f998cf5da2a522f6714fc 100644 (file)
@@ -1584,7 +1584,7 @@ ns_defined_color (struct frame *f, char *name, XColor *color_def, int alloc,
     return 0;
 
   if (makeIndex && alloc)
-      color_def->pixel = ns_index_color(temp, f);//[temp retain];
+      color_def->pixel = ns_index_color(temp, f); /* [temp retain]; */
 
   [temp getRed: &r green: &g blue: &b alpha: &a];
   color_def->red   = r * 256;
@@ -4068,7 +4068,7 @@ ns_term_shutdown (int sig)
       Fcons (build_string ("Cancel"), Qnil),
       Fcons (build_string ("Save and Exit"), Qt));
   Lisp_Object res = ns_popup_dialog (Qt, contents, Qnil);
-fprintf (stderr, "res = %d\n", EQ (res, Qt)); // FIXME
+fprintf (stderr, "res = %d\n", EQ (res, Qt)); /* FIXME */
   if (EQ (res, Qt))
     {
       Feval (Fcons (intern ("save-buffers-kill-emacs"), Qnil));