From: Jason Rumney Date: Fri, 25 Jul 2008 00:36:45 +0000 (+0000) Subject: (Fx_select_font): Reverse sense of second arg. X-Git-Tag: emacs-pretest-23.0.90~3902 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1ada3dab92a2ee116288c64d6524d47c475f5c6c;p=emacs.git (Fx_select_font): Reverse sense of second arg. --- diff --git a/src/ChangeLog b/src/ChangeLog index d85f4d6ee18..3060905410f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-07-25 Jason Rumney + + * w32font.c (Fx_select_font): Reverse sense of second arg. + 2008-07-24 Stefan Monnier * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos) diff --git a/src/w32font.c b/src/w32font.c index 77e949a6af0..4a4c7625787 100644 --- a/src/w32font.c +++ b/src/w32font.c @@ -2328,10 +2328,10 @@ DEFUN ("x-select-font", Fx_select_font, Sx_select_font, 0, 2, 0, Return fontconfig style font string corresponding to the selection. If FRAME is omitted or nil, it defaults to the selected frame. -If INCLUDE-PROPORTIONAL is non-nil, include proportional fonts +If EXCLUDE-PROPORTIONAL is non-nil, exclude proportional fonts in the font selection dialog. */) - (frame, include_proportional) - Lisp_Object frame, include_proportional; + (frame, exclude_proportional) + Lisp_Object frame, exclude_proportional; { FRAME_PTR f = check_x_frame (frame); CHOOSEFONT cf; @@ -2348,9 +2348,9 @@ in the font selection dialog. */) cf.hwndOwner = FRAME_W32_WINDOW (f); cf.Flags = CF_FORCEFONTEXIST | CF_SCREENFONTS | CF_NOVERTFONTS; - /* Unless include_proportional is non-nil, limit the selection to + /* If exclude_proportional is non-nil, limit the selection to monospaced fonts. */ - if (NILP (include_proportional)) + if (!NILP (exclude_proportional)) cf.Flags |= CF_FIXEDPITCHONLY; cf.lpLogFont = &lf;