1. 14 Jul, 2014 2 commits
    • Dmitry Antipov's avatar
      * lisp.h (CHECK_VECTOR_OR_STRING): Return number of elements · 201b6857
      Dmitry Antipov authored
      or characters in string, respectively.  Add comment.
      * fringe.c (Fdefine_fringe_bitmap):
      * fns.c (Fsubstring, substring_both): Use it.
      * keymap.c (Fdefine_key, Flookup_key):
      * macros.c (Fstart_kbd_macro): Likewise.  Avoid call to Flength.
      201b6857
    • Paul Eggert's avatar
      * make-docfile.c: Simplify a bit, to simplify further refactoring. · a705278d
      Paul Eggert authored
      (outfile): Remove static var.  All uses changed to use stdout,
      since it's always stdout anyway.  While we're at it, prefer
      putchar/puts/fputs to printf when there are no format strings.
      (main): Use freopen rather than fopen, so that stdout is reused.
      Move O_BINARY stuff after the freopen, so it affects the
      reopened file.
      (write_c_args): Omit first arg, since it's always stdout now.
      All uses changed.
      a705278d
  2. 13 Jul, 2014 1 commit
    • Paul Eggert's avatar
      Improve behavior of 'bzr up; cd src; make -k'. · 4939f58d
      Paul Eggert authored
      * Makefile.in (ACLOCAL_INPUTS): Add all m4/*.m4 files.
      * src/Makefile.in (top_srcdir): New var.
      (ntsource, lispsource, ALL_CFLAGS, gl-stamp, emacs.res):
      Use '$(top_srcdir)' instead of '$(srcdir)/..';
      its expansion is a bit shorter.
      (../config.status): Actually build config.status instead of
      just complaining.
      (ACLOCAL_INPUTS, AUTOCONF_INPUTS):
      New macros, copied and relocated from ../Makefile.in.
      ($(top_srcdir)/aclocal.m4, $(top_srcdir)/configure, config.in)
      (../config.status, Makefile): New dependencies and rules,
      copied with relocation from ../Makefile.in.  This should be more
      likely to rebuild the build machinery properly if you do a 'make'
      in the src directory.
      4939f58d
  3. 12 Jul, 2014 9 commits
  4. 11 Jul, 2014 12 commits
  5. 10 Jul, 2014 6 commits
  6. 09 Jul, 2014 10 commits
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      * font.c, font.h (font_unparse_fcname): Now static. · f5075377
      Paul Eggert authored
      Define only if HAVE_XFT || HAVE_FREETYPE || HAVE_NS.
      f5075377
    • Stefan Monnier's avatar
      * lisp/vc/log-edit.el (log-edit-changelog-entries): Don't both visiting · 5d71cc6b
      Stefan Monnier authored
      a non-existing file.
      
      Fixes: debbugs:17970
      5d71cc6b
    • Stefan Monnier's avatar
      * lisp/faces.el (face-name): Undo last change. · f972be09
      Stefan Monnier authored
      (x-resolve-font-name): Don't call face-name.
      
      Fixes: debbugs:17956
      f972be09
    • Sam Steingold's avatar
      Treat the perl keyword `constant' like `bless', `return' &c · 140ea213
      Sam Steingold authored
      * lisp/progmodes/cperl-mode.el (cperl-block-p): Tread the perl keyword
      `constant' like `bless', `return' &c
      140ea213
    • Dmitry Antipov's avatar
      * coding.c (ALLOC_CONVERSION_WORK_AREA): Prefer ptrdiff_t to int and · 205ededb
      Dmitry Antipov authored
      so avoid integer overflow if decoded gap size exceeds INT_MAX bytes.
      205ededb
    • Dmitry Antipov's avatar
      Next minor cleanup of font subsystem. · 876d043f
      Dmitry Antipov authored
      * font.h (enum font_property_index): Remove FONT_ENTITY_INDEX (no
      users) and FONT_FORMAT_INDEX (set by a few font drivers but never
      really used).
      (FONT_ENTITY_NOT_LOADABLE, FONT_ENTITY_SET_NOT_LOADABLE): Remove;
      unused.
      * ftfont.h (ftfont_font_format): Remove prototype.
      * ftfont.c (ftfont_font_format): Remove; now unused.
      (ftfont_open):
      * nsfont.m (nsfont_open):
      * w32font.c (w32font_open_internal):
      * w32uniscribe.c (uniscribe_open):
      * xfont.c (xfont_open):
      * xftfont.c (xftfont_open): All users changed.
      876d043f
    • Fabián Ezequiel Gallina's avatar
      Fix dedenters and electric colon handling. · fded0b4a
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el
      (python-rx-constituents): Add dedenter and block-ender.
      (python-indent-dedenters, python-indent-block-enders): Delete.
      (python-indent-context): Return new case for dedenter-statement.
      (python-indent-calculate-indentation): Handle new case.
      (python-indent-calculate-levels): Fix levels calculation for
      dedenter statements.
      (python-indent-post-self-insert-function): Fix colon handling.
      (python-info-dedenter-opening-block-message): New function.
      (python-indent-line): Use it.
      (python-info-closing-block)
      (python-info-closing-block-message): Remove.
      (python-info-dedenter-opening-block-position)
      (python-info-dedenter-opening-block-positions)
      (python-info-dedenter-statement-p): New functions.
      
      * test/automated/python-tests.el
      (python-indent-block-enders-1)
      (python-indent-block-enders-2): Fix tests.
      (python-indent-block-enders-3)
      (python-indent-block-enders-4)
      (python-indent-block-enders-5)
      (python-indent-dedenters-1)
      (python-indent-dedenters-2): Remove tests.
      (python-indent-dedenters-1)
      (python-indent-dedenters-2)
      (python-indent-dedenters-3)
      (python-indent-dedenters-4)
      (python-indent-dedenters-5)
      (python-indent-dedenters-6)
      (python-indent-dedenters-7)
      (python-info-dedenter-opening-block-position-1)
      (python-info-dedenter-opening-block-position-2)
      (python-info-dedenter-opening-block-position-3)
      (python-info-dedenter-opening-block-positions-1)
      (python-info-dedenter-opening-block-positions-2)
      (python-info-dedenter-opening-block-positions-3)
      (python-info-dedenter-opening-block-positions-4)
      (python-info-dedenter-opening-block-positions-5)
      (python-info-dedenter-opening-block-message-1)
      (python-info-dedenter-opening-block-message-2)
      (python-info-dedenter-opening-block-message-3)
      (python-info-dedenter-opening-block-message-4)
      (python-info-dedenter-opening-block-message-5)
      (python-info-dedenter-statement-p-1)
      (python-info-dedenter-statement-p-2)
      (python-info-dedenter-statement-p-3)
      (python-info-dedenter-statement-p-4)
      (python-info-dedenter-statement-p-5): New tests.
      
      Fixes: debbugs:15163
      fded0b4a
    • Stefan Monnier's avatar
    • Glenn Morris's avatar