Merge changes from emacs-23 branch.
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 19 Oct 2010 11:44:07 +0000 (13:44 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 19 Oct 2010 11:44:07 +0000 (13:44 +0200)
1  2 
lisp/ChangeLog
lisp/emacs-lisp/regexp-opt.el
lisp/minibuffer.el
lisp/repeat.el
src/ChangeLog
src/s/cygwin.h
src/xftfont.c

diff --cc lisp/ChangeLog
@@@ -1,6 -1,6 +1,25 @@@
++2010-10-19  Stefan Monnier  <monnier@iro.umontreal.ca>
++
++      * repeat.el (repeat): Use read-key (bug#6256).
++
++2010-10-19  Chong Yidong  <cyd@stupidchicken.com>
++
++      * emacs-lisp/unsafep.el: Don't mark functions that display
++      messages as safe.  Suggested by Johan Bockgård.
++
++2010-10-19  Stefan Monnier  <monnier@iro.umontreal.ca>
++
++      * minibuffer.el (completion--replace): Move point where it belongs
++      when there's a common suffix (bug#7215).
++
++2010-10-19  Kenichi Handa  <handa@m17n.org>
++
++      * international/characters.el: Add category '|' (word breakable)
++      to fullwidth characters.
++
  2010-10-19  Michael Albinus  <michael.albinus@gmx.de>
  
 -      * net/tramp.el (tramp-do-file-attributes-with-stat)
 +      * net/tramp-sh.el (tramp-do-file-attributes-with-stat)
        (tramp-do-directory-files-and-attributes-with-stat): Use "e0" in
        order to make stat results a float.  Patch by Andreas Schwab
        <schwab@linux-m68k.org>.
Simple merge
@@@ -508,23 -498,12 +508,24 @@@ Moves point to the end of the new text.
        (setq suffix-len (1+ suffix-len)))
      (unless (zerop suffix-len)
        (setq end (- end suffix-len))
-       (setq newtext (substring newtext 0 (- suffix-len)))))
-   (goto-char beg)
-   (insert newtext)
-   (delete-region (point) (+ (point) (- end beg))))
+       (setq newtext (substring newtext 0 (- suffix-len))))
+     (goto-char beg)
+     (insert newtext)
+     (delete-region (point) (+ (point) (- end beg)))
+     (forward-char suffix-len)))
  
 +(defcustom completion-cycle-threshold nil
 +  "Number of completion candidates below which cycling is used.
 +Depending on this setting `minibuffer-complete' may use cycling,
 +like `minibuffer-force-complete'.
 +If nil, cycling is never used.
 +If t, cycling is always used.
 +If an integer, cycling is used as soon as there are fewer completion
 +candidates than this number."
 +  :type '(choice (const :tag "No cycling" nil)
 +          (const :tag "Always cycle" t)
 +          (integer :tag "Threshold")))
 +
  (defun completion--do-completion (&optional try-completion-function)
    "Do the completion and return a summary of what happened.
  M = completion was performed, the text was Modified.
diff --cc lisp/repeat.el
Simple merge
diff --cc src/ChangeLog
@@@ -1,28 -1,17 +1,41 @@@
 -2010-10-18  Ken Brown  <kbrown@cornell.edu>
++2010-10-19  Ken Brown  <kbrown@cornell.edu>
+       * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
 -2010-10-15  Kenichi Handa  <handa@m17n.org>
++2010-10-19  Kenichi Handa  <handa@m17n.org>
+       Fix incorrect font metrics when the same font is opened with
+       different pixelsizes.
+       * xftfont.c: Include composite.h.
+       (xftfont_shape): New function.
+       (syms_of_xftfont): Set xftfont_driver.shape.
 -2010-10-13  Damyan Pepper  <damyanp@gmail.com>
 +2010-10-18  Julien Danjou  <julien@danjou.info>
 +
 +      * frame.c (Fframe_pointer_visible_p):
 +      Add `frame-pointer-visible-p' to get the pointer visibility.
 +
 +2010-10-18  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 +
 +      * gnutls.c (emacs_gnutls_read): Return 0 if we get a
 +      non-"EAGAIN"-like error to signal to Emacs that the socket should
 +      be closed.
 +
 +2010-10-15  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * unexcoff.c (make_hdr): Fix prototype according to changes in
 +      2010-10-03T13:59:56Z!dann@ics.uci.edu.
 +
 +      * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
 +
 +2010-10-15  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * Makefile.in (really-oldXMenu): Fix typo in variable name that
 +      made building the X menu fail.
 +      (really-oldXMenu): Fix my previous fix.
 +
 +2010-10-14  Damyan Pepper  <damyanp@gmail.com>
  
        Fix handling of font properties on Windows (bug#6303).
        * font.c (font_filter_properties): New function, refactored from
diff --cc src/s/cygwin.h
@@@ -101,5 -132,10 +101,8 @@@ along with GNU Emacs.  If not, see <htt
     returns ENOSYS.  A workaround is to set G_SLICE=always-malloc. */
  #define G_SLICE_ALWAYS_MALLOC
  
 -/* the end */
 -
+ /* Send signals to subprocesses by "typing" special chars at them.  */
+ #define SIGNALS_VIA_CHARACTERS
  /* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b
     (do not change this comment) */
diff --cc src/xftfont.c
@@@ -664,8 -703,26 +665,25 @@@ xftfont_draw (struct glyph_string *s, i
    return len;
  }
  
+ Lisp_Object
+ xftfont_shape (Lisp_Object lgstring)
+ {
+   struct font *font;
+   struct xftfont_info *xftfont_info;
+   FT_Face ft_face;
+   Lisp_Object val;
+   CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring), font);
+   xftfont_info = (struct xftfont_info *) font;
+   ft_face = XftLockFace (xftfont_info->xftfont);
+   xftfont_info->ft_size = ft_face->size;
+   val = ftfont_driver.shape (lgstring);
+   XftUnlockFace (xftfont_info->xftfont);
+   return val;
+ }
  static int
 -xftfont_end_for_frame (f)
 -     FRAME_PTR f;
 +xftfont_end_for_frame (FRAME_PTR f)
  {
    XftDraw *xft_draw;