1. 25 May, 2014 7 commits
  2. 24 May, 2014 5 commits
  3. 23 May, 2014 1 commit
  4. 22 May, 2014 6 commits
  5. 21 May, 2014 5 commits
    • Paul Eggert's avatar
      Don't assume that ImageMagick uses a 16-bit quantum. · 6c596cb2
      Paul Eggert authored
      * image.c (imagemagick_load_image): Port to hosts that do not use
      a 16-bit quantum, i.e., QuantumRange does not equal 65535.
      
      Fixes: debbugs:17519
      6c596cb2
    • Leo Liu's avatar
      * doc/lispref/sequences.texi (Sequence Functions): Update nreverse. · 254b7645
      Leo Liu authored
      * src/fns.c (Fnreverse): Accept strings for SEQ and update doc-string.
      254b7645
    • Daniel Colascione's avatar
      File-local-variable support for sh-script; add mksh support · e619d93c
      Daniel Colascione authored
        
      * lisp/files.el (interpreter-mode-alist): Add mksh.
        
      * lisp/progmodes/sh-script.el (sh-ancestor-alist): Add mksh, a pdksh
        derivative.
        (sh-alias-alist): Alias /system/bin/sh (Android's system shell) to
        mksh. Improve custom spec; allow regular expressions.
        (sh-shell): Delegate name splitting to `sh-canonicalize-shell'.
        (sh-after-hack-local-variables): New function.
        (sh-mode): Use it; respect file-local `sh-shell' variable.
        (sh-set-shell): Use `sh-canonicalize-shell' instead of open-coding
        the normalization.
        (sh-canonicalize-shell): Rewrite to support regexes.
      e619d93c
    • Daniel Colascione's avatar
      File-local-variable support for sh-script; add mksh support · 708374c7
      Daniel Colascione authored
      * lisp/files.el (interpreter-mode-alist): Add mksh.
      
      * lisp/progmodes/sh-script.el (sh-ancestor-alist): Add mksh, a pdksh
      derivative.
      (sh-alias-alist): Alias /system/bin/sh (Android's system shell) to
      mksh. Improve custom spec; allow regular expressions.
      (sh-shell): Delegate name splitting to `sh-canonicalize-shell'.
      (sh-after-hack-local-variables): New function.
      (sh-mode): Use it; respect file-local `sh-shell' variable.
      (sh-set-shell): Use `sh-canonicalize-shell' instead of open-coding
      the normalization.
      (sh-canonicalize-shell): Rewrite to support regexes.
      
      Fixes: debbugs:17333
      708374c7
    • Leo Liu's avatar
      8ea51e4f
  6. 20 May, 2014 2 commits
  7. 19 May, 2014 5 commits
    • Paul Eggert's avatar
      Allow any non-nil value to count as true in bool-vector. · 2f1205e0
      Paul Eggert authored
      Likewise for xd_signature in dbusbind.c.
      This is more consistent with the usual practice in Emacs, which is
      that any non-nil value counts as true.
      * doc/lispref/sequences.texi (Bool-Vectors): Coalesce discussion of how to
      print them.  bool-vector's args need not be t or nil.
      * src/alloc.c (Fbool_vector): Don't require args to be t or nil.
      * src/dbusbind.c (xd_signature): Likewise, for booleans.
      * src/data.c, lisp.h (Qbooleanp):
      * src/lisp.h (CHECK_BOOLEAN): Remove.  All uses removed.
      2f1205e0
    • Leo Liu's avatar
      427de535
    • Dmitry Antipov's avatar
      * font.c (font_matching_entity): Extract font-entity object · 8bb59716
      Dmitry Antipov authored
      from the vector of matching entities (Bug#17486).
      8bb59716
    • Dmitry Antipov's avatar
      * src/lisp.h (CHECK_BOOLEAN): New function. · 2bcf0551
      Dmitry Antipov authored
      * src/alloc.c (Fbool_vector): New function.
      (syms_of_alloc): Defsubr it.
      * src/data.c (Qbooleanp): New symbol.
      (syms_of_data): DEFSYM it.
      * src/dbusbind.c (xd_signature): Use CHECK_BOOLEAN.
      * doc/lispref/sequences.texi (Bool-vectors): Mention bool-vector.
      2bcf0551
    • Paul Eggert's avatar
      Remove dependencies on getdelim and getline. · 60fc70a8
      Paul Eggert authored
      Also, remove update-game-scores's limits on game scores and
      simplify its file-locking code.
      * configure.ac (getdelim, getline): Remove.
      * lib-src/update-game-score.c (struct score_entry): Unify the username and
      data members to a single user_data member, since they don't need to be
      changed independently and getdelim and getline aren't helpful.
      Make the score member char *, not intmax_t, so that scores are not
      limited to intmax_t.  All uses changed.
      (lose_syserr): A zero errno stands for invalid data in score file.
      (normalize_integer): New function.
      (main): Use it.  Check for invalid scores.  Omit redundant stat check.
      (read_score): First arg is now a string, not a FILE *.  All uses
      changed.  Do not use getdelim or getline; that's way simpler.
      (read_scores): Read the whole file, and let read_score handle each
      line.
      (score_compare): Compare strings representing integers, not integers.
      (write_scores) [DOS_NT]: Eliminate unnecessary chmod.
      (lock_file): Simplify locking code, eliminating goto.
      Check for unlink failure.
      60fc70a8
  8. 18 May, 2014 4 commits
  9. 17 May, 2014 2 commits
    • Paul Eggert's avatar
      Assume C99 or later. · 8208d2bf
      Paul Eggert authored
      * lib/stdarg.in.h, lib/stdbool.in.h, m4/stdarg.m4, m4/stdbool.m4:
      Remove.
      * configure.ac (_AC_PROG_CC_C89): Define a dummy, to keep 'configure'
      smaller.
      (gl_PROG_CC_C99): Use this to get C99 or later.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * admin/merge-gnulib (GNULIB_MODULES): Remove stdarg, stdbool.
      (GNULIB_TOOL_FLAGS): Avoid stdarg, stdbool.
      * doc/lispref/internals.texi (C Dialect): Document this.
      * etc/NEWS: Document this.
      * nt/gnulib.mk: Remove stdarg and stdbool modules.
      * src/bytecode.c (B__dummy__): Remove.
      * src/conf_post.h (bool_bf) [!NS_IMPL_GNUSTEP]: Use bool.
      (FLEXIBLE_ARRAY_MEMBER): Now always empty.
      * src/dbusbind.c (XD_DEBUG_MESSAGE) [!DBUS_DEBUG]:
      * src/regex.c (DEBUG_PRINT): Assume varargs macros.
      * src/lisp.h (DEFUN_FUNCTION_INIT): Remove.  All uses now assume C99.
      
      Fixes: debbugs:17487
      8208d2bf
    • Fabrice Popineau's avatar
      Always map new memory for buffers after dumping. · f63fc858
      Fabrice Popineau authored
       src/buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: Always map new
       memory for every buffer that was dumped.
      f63fc858
  10. 16 May, 2014 3 commits
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      Don't require pkg-config when building from repository. · c56327b5
      Paul Eggert authored
      * INSTALL: Prefer './configure FOO=BAR' to 'FOO=BAR ./configure'.
      * INSTALL.REPO: pkg-config is no longer required to build from
      the repository.
      * autogen.sh: Don't check for pkg-config.
      (progs): Remove pkg-config.
      (pkg_config_min, AUTORECONF_ENV, env_space, ACLOCAL_PATH):
      Remove.  All uses removed.
      * m4/pkg.m4: New file, built by admin/merge-pkg-config.
      * configure.ac: Remove unnecessary m4_pattern_forbid of ^PKG_ and
      an AC_ARG_VAR of PKG_CONFIG_PATH.  pkg.m4 does that for us.
      (EMACS_CHECK_MODULES): Remove workaround for old pkg-config bug,
      as we use pkg.m4 from a newer pkg-config.
      * admin/merge-pkg-config: New script.
      * admin/notes/copyright: Update for m4/*.m4, in particular m4/pkg.m4.
      * etc/NEWS: Prefer './configure FOO=BAR' to 'FOO=BAR ./configure'.
      * etc/PROBLEMS (Build-time-problems): Remove pkg-config problem
      that is no longer an issue.
      * nt/INSTALL: Remove no-longer-needed notes about pkg-config.
      c56327b5
    • Glenn Morris's avatar
      * etc/TODO: Add entry on printing. · 1e217552
      Glenn Morris authored
      1e217552