aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdrian Robert2008-07-23 02:53:42 +0000
committerAdrian Robert2008-07-23 02:53:42 +0000
commit712b2de134e18ebf4eb4a5d2154f875becc07d20 (patch)
tree5cb81b4543e43ff5c1da8a0d419cd12f189a3383 /src
parent71554a21ec5cd63d62846089da22c5a848440fca (diff)
downloademacs-712b2de134e18ebf4eb4a5d2154f875becc07d20.tar.gz
emacs-712b2de134e18ebf4eb4a5d2154f875becc07d20.zip
fix up compile error from renaming of ns-list-fonts
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/nsfns.m58
-rw-r--r--src/nsterm.m4
3 files changed, 8 insertions, 60 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9e0877701d5..8bee26ced91 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2
3 * nsfns.m (x-list-fonts): Remove.
4 (syms_of_nsfns): Drop the x-list-fonts declaration.
5 * nsterm.m: Get rid of remaining "//" comments.
6
12008-07-22 Chong Yidong <cyd@stupidchicken.com> 72008-07-22 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix. 9 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
diff --git a/src/nsfns.m b/src/nsfns.m
index 84bcc36a4cd..b8e28f1d13f 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -1840,63 +1840,6 @@ DEFUN ("ns-emacs-info-panel", Fns_emacs_info_panel, Sns_emacs_info_panel,
1840} 1840}
1841 1841
1842 1842
1843DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 4, 0,
1844 doc: /* Return a list of the names of available fonts matching PATTERN.
1845If optional arguments FACE and FRAME are specified, return only fonts
1846the same size as FACE on FRAME.
1847If optional argument MAX is specified, return at most MAX matches.
1848
1849PATTERN is a regular expression; FACE is a face name - a symbol.
1850
1851The return value is a list of strings, suitable as arguments to
1852set-face-font.
1853
1854The font names are _NOT_ X names. */)
1855 (pattern, face, frame, max)
1856 Lisp_Object pattern, face, frame, max;
1857{
1858 Lisp_Object flist, olist = Qnil, tem;
1859 struct frame *f;
1860 int maxnames;
1861
1862 /* We can't simply call check_x_frame because this function may be
1863 called before any frame is created. */
1864 if (NILP (frame))
1865 f = SELECTED_FRAME ();
1866 else
1867 {
1868 CHECK_LIVE_FRAME (frame);
1869 f = XFRAME (frame);
1870 }
1871 if (! FRAME_WINDOW_P (f))
1872 {
1873 /* Perhaps we have not yet created any frame. */
1874 f = NULL;
1875 }
1876
1877 if (NILP (max))
1878 maxnames = 4;
1879 else
1880 {
1881 CHECK_NATNUM (max);
1882 maxnames = XFASTINT (max);
1883 }
1884
1885 /* get XLFD names */
1886 flist = ns_list_fonts (f, pattern, 0, maxnames);
1887
1888 /* convert list into regular names */
1889 for (tem = flist; CONSP (tem); tem = XCDR (tem))
1890 {
1891 Lisp_Object fname = XCAR (tem);
1892 olist = Fcons (build_string (ns_xlfd_to_fontname (SDATA (fname))),
1893 olist);
1894 }
1895
1896 return olist;
1897}
1898
1899
1900DEFUN ("ns-font-name", Fns_font_name, Sns_font_name, 1, 1, 0, 1843DEFUN ("ns-font-name", Fns_font_name, Sns_font_name, 1, 1, 0,
1901 doc: /* Determine font postscript or family name for font NAME. 1844 doc: /* Determine font postscript or family name for font NAME.
1902NAME should be a string containing either the font name or an XLFD 1845NAME 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. */);
2693 defsubr (&Sns_set_resource); 2636 defsubr (&Sns_set_resource);
2694 defsubr (&Sxw_display_color_p); /* this and next called directly by C code */ 2637 defsubr (&Sxw_display_color_p); /* this and next called directly by C code */
2695 defsubr (&Sx_display_grayscale_p); 2638 defsubr (&Sx_display_grayscale_p);
2696 defsubr (&Sx_list_fonts);
2697 defsubr (&Sns_font_name); 2639 defsubr (&Sns_font_name);
2698 defsubr (&Sns_list_colors); 2640 defsubr (&Sns_list_colors);
2699#ifdef NS_IMPL_COCOA 2641#ifdef NS_IMPL_COCOA
diff --git a/src/nsterm.m b/src/nsterm.m
index 72638825ef7..8fd157ebcc4 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1584,7 +1584,7 @@ ns_defined_color (struct frame *f, char *name, XColor *color_def, int alloc,
1584 return 0; 1584 return 0;
1585 1585
1586 if (makeIndex && alloc) 1586 if (makeIndex && alloc)
1587 color_def->pixel = ns_index_color(temp, f);//[temp retain]; 1587 color_def->pixel = ns_index_color(temp, f); /* [temp retain]; */
1588 1588
1589 [temp getRed: &r green: &g blue: &b alpha: &a]; 1589 [temp getRed: &r green: &g blue: &b alpha: &a];
1590 color_def->red = r * 256; 1590 color_def->red = r * 256;
@@ -4068,7 +4068,7 @@ ns_term_shutdown (int sig)
4068 Fcons (build_string ("Cancel"), Qnil), 4068 Fcons (build_string ("Cancel"), Qnil),
4069 Fcons (build_string ("Save and Exit"), Qt)); 4069 Fcons (build_string ("Save and Exit"), Qt));
4070 Lisp_Object res = ns_popup_dialog (Qt, contents, Qnil); 4070 Lisp_Object res = ns_popup_dialog (Qt, contents, Qnil);
4071fprintf (stderr, "res = %d\n", EQ (res, Qt)); // FIXME 4071fprintf (stderr, "res = %d\n", EQ (res, Qt)); /* FIXME */
4072 if (EQ (res, Qt)) 4072 if (EQ (res, Qt))
4073 { 4073 {
4074 Feval (Fcons (intern ("save-buffers-kill-emacs"), Qnil)); 4074 Feval (Fcons (intern ("save-buffers-kill-emacs"), Qnil));