1. 04 Dec, 2016 1 commit
    • Eli Zaretskii's avatar
      Merge branch 'concurrency' · de4624c9
      Eli Zaretskii authored
      Conflicts (resolved):
  2. 03 Dec, 2016 10 commits
    • Eli Zaretskii's avatar
      Avoid compilation warnings in nt/*.c files · a486fabb
      Eli Zaretskii authored
      * nt/cmdproxy.c (fail, vfprintf, fprintf, printf, warn)
      (console_event_handler): Add prototypes.
      (canon_filename, skip_space, skip_nonspace, get_next_token)
      (batch_file_p, search_dir, make_absolute, try_dequote_cmdline)
      (spawn, get_env_size): Now static.
      * nt/ddeclient.c (DdeCallback): Provide prototype.
      * nt/addpm.c (DdeCallback): Provide prototype.
      (add_registry): Now static.
    • Mark Oteiza's avatar
      Display window before calculating width · 143a4306
      Mark Oteiza authored
      * lisp/image-dired.el (image-dired-display-thumbs): Display the buffer
      before calling image-dired-line-up and friends, which in turn calculate
      the window width. Otherwise, the thumbnail layout will be wrong in
      a side-by-side split.
    • Mark Oteiza's avatar
      Use pop-to-buffer-same-window · 5e915691
      Mark Oteiza authored
      * lisp/image-dired.el (image-dired-dired-with-window-configuration):
      (image-dired-dired-edit-comment-and-tags): Instead of switch-to-buffer,
      use pop-to-buffer-same-window cf. Bug#22244.
      (image-dired-forward-image, image-dired-backward-image): Ignore unused.
    • Noam Postavsky's avatar
      ; Merge: Lisp watchpoints (Bug#24923) · 88fefc32
      Noam Postavsky authored
    • Noam Postavsky's avatar
      Document watchpoints · 56c81783
      Noam Postavsky authored
      * doc/lispref/debugging.texi (Variable Debugging):
      * doc/lispref/variables.texi (Watching Variables): New section.
      * etc/NEWS: Add entry for watchpoints
    • Noam Postavsky's avatar
      Add tests for watchpoints · e7cd98b8
      Noam Postavsky authored
      * test/src/data-tests.el (data-tests-variable-watchers):
      (data-tests-local-variable-watchers): New tests.
    • Noam Postavsky's avatar
      Ensure redisplay using variable watcher · d3faef9b
      Noam Postavsky authored
      This replaces looking up the variable name in redisplay--variables when
      setting it.
      * lisp/frame.el: Replace redisplay--variables with add-variable-watcher
      * src/xdisp.c (Fset_buffer_redisplay): Rename from maybe_set_redisplay,
      set the redisplay flag unconditionally.
      (Vredisplay__variables): Remove it.
      * src/data.c (set_internal): Remove maybe_set_redisplay call.
    • Noam Postavsky's avatar
      Add function to trigger debugger on variable write · cfd2b9ea
      Noam Postavsky authored
      * lisp/emacs-lisp/debug.el (debug-on-variable-change):
      (cancel-debug-on-variable-change): New functions.
      (debugger-setup-buffer): Add watchpoint clause.
    • Noam Postavsky's avatar
      Show watchpoints when describing variables · 459a2344
      Noam Postavsky authored
      * src/data.c (Fget_variable_watchers): New function.
      * lisp/help-fns.el (describe-variable): Use it to detect watching
    • Noam Postavsky's avatar
      Add lisp watchpoints · 22721316
      Noam Postavsky authored
      This allows calling a function whenever a symbol-value is changed.
      * src/lisp.h (lisp_h_SYMBOL_TRAPPED_WRITE_P):
      (SYMBOL_TRAPPED_WRITE_P): New function/macro.
      (lisp_h_SYMBOL_CONSTANT_P): Check for SYMBOL_NOWRITE specifically.
      (enum symbol_trapped_write): New enumeration.
      (struct Lisp_Symbol): Rename field constant to trapped_write.
      (make_symbol_constant): New function.
      * src/data.c (Fadd_variable_watcher, Fremove_variable_watcher):
      (set_symbol_trapped_write, restore_symbol_trapped_write):
      (harmonize_variable_watchers, notify_variable_watchers): New functions.
      * src/data.c (Fset_default): Call `notify_variable_watchers' for trapped
      (set_internal): Change bool argument BIND to 3-value enum and call
      `notify_variable_watchers' for trapped symbols.
      * src/data.c (syms_of_data):
      * src/data.c (syms_of_data):
      * src/font.c (syms_of_font):
      * src/lread.c (intern_sym, init_obarray):
      * src/buffer.c (syms_of_buffer): Use make_symbol_constant.
      * src/alloc.c (init_symbol):
      * src/bytecode.c (exec_byte_code): Use SYMBOL_TRAPPED_WRITE_P.
      * src/data.c (Fmake_variable_buffer_local, Fmake_local_variable):
      * src/eval.c (Fdefvaralias, specbind): Refer to Lisp_Symbol's
      trapped_write instead of constant.
      (Ffuncall): Move subr calling code into separate function.
      (funcall_subr): New function.
  3. 02 Dec, 2016 15 commits
    • Eli Zaretskii's avatar
    • Glenn Morris's avatar
      Starting doc of user options with "*" is long obsolete · 30dc85c6
      Glenn Morris authored
      * lisp/battery.el (battery-upower-device): Doc fix.
    • Reuben Thomas's avatar
      Fix docstrings to have a complete sentence in first line · 5315275f
      Reuben Thomas authored
      * lisp/dired-x.el (dired-omit-case-fold, dired-omit-case-fold-p): Fix
    • Reuben Thomas's avatar
      Remove obsolete comments and commented code from dired-x.el · 9effa4bf
      Reuben Thomas authored
      * lisp/dired-x.el (dired-mark-sexp): Remove a query from 1993 and its
      1997 answer about whether dired-mark-sexp is used.
      * lisp/dired-x.el (dired-buffers-for-dir-exact): Remove this function
      commented out since before dired-x.el was added to RCS in 1994.
    • Reuben Thomas's avatar
      Remove pre-customize dired-x.el documentation · e22cca7d
      Reuben Thomas authored
      * lisp/dired-x.el (Commentary): Remove USAGE section explaining how to
      use dired-x from .emacs.  It is now fully customizable.
      * lisp/dired-x.el (dired-guess-shell-alist-user): Remove explanation of
      how to set this custom variable in .emacs.  It should be customized.
    • Reuben Thomas's avatar
      Allow files to be matched case-sensitively in dired-x · 50b9ddfc
      Reuben Thomas authored
      * lisp/dired-x.el (dired-mark-unmarked-files): Add an argument which
      controls case folding for matching the regex (Bug#18716).
      (dired-omit-case-fold): New variable.  Defaults to `t' on case-sensitive
      systems, `nil' otherwise.
      (dired-mark-omitted, dired-omit-expunge): Use dired-omit-case-fold.
      * doc/misc/dired-x.texi, etc/NEWS: Document dired-omit-case-fold.
    • Reuben Thomas's avatar
      Add support for curly quotation marks to electric-pair-mode · b6a8025e
      Reuben Thomas authored
      * lisp/elec-pair.el (electric-pair-pairs, electric-pair-text-pairs): Add
      entries for left/right single/double quotation marks, from
      electric-quote-chars. Note that this is safe for single quotation marks,
      unlike with the ASCII apostrophe, since, although the right quotation
      mark can be used as an apostrophe, it is the left quotation mark that is
      typed to get a pair (Bug#24901).
    • NicolasPetton's avatar
      Fix bug#25087 · 66d6e7e9
      NicolasPetton authored
      * etc/themes/manoj-dark-theme.el: Fix two typos.
    • Michael Albinus's avatar
      Handle quoted file names in Tramp · e9ac4b4c
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-file-name-handler): Handle also the
      case the file name is quoted.  This is not trapped by the
      reassigned `tramp-file-name-regexp' anymore.
    • Evgeny Zajcev's avatar
    • Evgeny Zajcev's avatar
      Support for rawrgb images using imagemagick · 0b3f8ca8
      Evgeny Zajcev authored
      * src/image.c (imagemagick_load_image): Set wand size before loading
      blob when ':width' and ':height' are provided.
      * lisp/image.el (image-format-suffixes): Add 'image/x-rgb'.
    • Nikolay Kudryavtsev's avatar
      Fix 'sql-connect' on first invocation · b3ff982a
      Nikolay Kudryavtsev authored
      * lisp/progmodes/sql.el (sql-connect): Reorder code which sets
      param-var.  (Bug#19452)
    • Paul Eggert's avatar
      Fix type typo on Solaris · c662e2d4
      Paul Eggert authored
      * src/sysdep.c (system_process_attributes) [SOLARIS2 && HAVE_PROCFS]:
      Fix type mismatch, caught by --enable-check-lisp-object-type.
    • Paul Eggert's avatar
      Merge from gnulib · f3fa5d7e
      Paul Eggert authored
      This incorporates:
      2016-11-27 md4,md5,sha*: tune for recent glibc _STRING_INLINE_unaligned
      2016-11-21 snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
      * build-aux/snippet/c++defs.h:
      * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
      Copy from gnulib.
    • Paul Eggert's avatar
      Make struct font_drivers read-only · ebb96114
      Paul Eggert authored
      This simplifies the code a bit, and makes the structs more
      shareable and less likely to become corrupt.
      * src/alloc.c (cleanup_vector):
      * src/font.c (valid_font_driver, font_prepare_cache)
      (font_finish_cache, font_get_cache, font_clear_cache)
      (register_font_driver, font_update_drivers):
      * src/font.h (struct font, struct font_driver_list)
      struct font_drivers are now const.
      * src/font.c, src/ftcrfont.c, src/ftfont.c, src/nsfont.m, src/xfont.c:
      Omit no-longer-necessary decls.
      * src/ftcrfont.c (syms_of_ftcrfont):
      * src/ftxfont.c (syms_of_ftxfont):
      * src/xftfont.c (syms_of_xftfont):
      Omit no-longer-necessary initialization code.
      * src/ftcrfont.c (ftcrfont_driver):
      * src/ftfont.c (ftfont_driver):
      * src/ftxfont.c (ftxfont_driver):
      * src/macfont.m (macfont_driver):
      * src/nsfont.m (nsfont_driver):
      * src/xfont.c (xfont_driver):
      * src/xftfont.c (xftfont_driver):
      Use C99-style initializer for ease of maintenance, and make it const.
      * src/ftcrfont.c, src/ftxfont.c, src/xftfont.c:
      Refer to functions like ftfont_text_extents directly.
      * src/ftfont.c (ftfont_get_cache, ftfont_list, ftfont_list_family)
      (ftfont_has_char, ftfont_encode_char, ftfont_text_extents)
      (ftfont_get_bitmap, ftfont_anchor_point, ftfont_otf_capability)
      (ftfont_variation_glyphs, ftfont_filter_properties)
      * src/xfont.c (xfont_get_cache):
      Now extern, so that other modules’ struct font_drivers can use
      them directly.
      * src/macfont.m (macfont_descriptor_entity):
      * src/nsfont.m (nsfont_open):
      Use constant directly; this is clearer.
  4. 01 Dec, 2016 6 commits
    • Eli Zaretskii's avatar
    • Helmut Eller's avatar
      Forth related improvements for etags · bb8e3827
      Helmut Eller authored
      Generate correct tags names for things like "(foo)".
      Previously "(foo" created.
      Fix a bug where a tag for "-bar" was created when encountering things
      like "create-bar".
      Recognize more words from the Forth-2012 Standard.
      * lib-src/etags.c (Forth_words): Check for whitespace after defining
      words.  Create tag with make_tag instead of get_tag to avoid notiname
      which isn't appropriate for Forth.
      * test/manual/etags/forth-src/test-forth.fth: Add some test cases.
      * test/manual/etags/ETAGS.good_1:
      * test/manual/etags/ETAGS.good_2:
      * test/manual/etags/ETAGS.good_3:
      * test/manual/etags/ETAGS.good_4:
      * test/manual/etags/ETAGS.good_5:
      * test/manual/etags/ETAGS.good_6:
      * test/manual/etags/CTAGS.good: Adapt to the changes in etags.c and
      new test cases.
    • Eli Zaretskii's avatar
      Fix bugs with buffer-local tags tables · 2f68cb3e
      Eli Zaretskii authored
      * lisp/progmodes/etags.el (visit-tags-table): After
      'visit-tags-table-buffer' returns, retrieve the value of
      'tags-file-name' from the buffer we started in.  Force
      recomputation of 'tags-completion-table' next time it is used,
      since the list of tags table has changed.
      (visit-tags-table-buffer): Accept an additional optional argument
      CBUF, the buffer in which to start processing, and switch to that
      buffer if CBUF is non-nil.  All callers changed to supply a
      non-nil CBUF when they call 'visit-tags-table-buffer' in a loop.
      Doc fix.
      (tags-completion-table): Accept an optional argument, the buffer
      for which to build 'tags-completion-table', and build that
      buffer's completion table.
      (tags-lazy-completion-table): Pass the current buffer to
      (tags-file-name): Don't say in the doc string that setting this
      variable directly is enough; say that 'visit-tags-table' should be
      used for that.  (Bug#158)  (Bug#17326)  (Bug#23164)
      * doc/emacs/maintaining.texi (Select Tags Table): Delete the
      advice to set 'tags-file-name' directly.
      * test/lisp/progmodes/etags-tests.el: New tests.
    • Glenn Morris's avatar
      ; Auto-commit of loaddefs files. · 7d35b3d3
      Glenn Morris authored
    • Paul Eggert's avatar
      * src/lisp.h (LISP_INITIALLY_ZERO): Remove. · 04355cb5
      Paul Eggert authored
      All uses replaced by LISPSYM_INITIALLY.
    • Paul Eggert's avatar
      Make Cairo safer for --enable-gcc-warnings · fccd7d3c
      Paul Eggert authored
      * src/image.c (xcolor_to_argb32, pbm_load, jpeg_load_body, gif_load):
      Avoid overflow warnings about ‘0xff << 24’.
      (xpm_load, gif_load): Avoid unnecessary casts.
      (gif_load): Fewer ifdefs.
  5. 30 Nov, 2016 1 commit
  6. 29 Nov, 2016 7 commits