1. 05 Sep, 2016 2 commits
    • Eli Zaretskii's avatar
      Avoid assertion violations when scrolling narrowed buffer · 6acff252
      Eli Zaretskii authored
      * src/window.c (window_scroll_pixel_based):
      * src/xdisp.c (pos_visible_p): Don't allow simulated redisplay to
      start outside the accessible portion of the buffer.  This avoids
      assertion violations when some Lisp narrows the buffer to less
      than the current window, and then attempts to scroll the buffer.
    • Eli Zaretskii's avatar
      Treat SIGINT correctly in GUI sessions on MS-Windows · cfaf18a2
      Eli Zaretskii authored
      * src/w32proc.c (sys_signal): Don't reject SIGINT, as it is
      supported by MS runtime.
      * src/term.c (DEV_TTY): Move from here ...
      * src/conf_post.h (DEV_TTY): ... to here.  Separate definitions
      for WINDOWSNT and for the rest.
      * src/keyboard.c (handle_interrupt_signal): Use DEV_TTY instead of
      a literal "/dev/tty".
      * etc/NEWS: Mention the behavior change.
  2. 04 Sep, 2016 4 commits
    • Alan Third's avatar
      Fix synthetic bold on macOS retina displays · 62e4dc46
      Alan Third authored
      * src/macfont.m (macfont_draw): Multiply the synthetic bold scaling
      factor by the OS window backing scale factor.
    • Tino Calancha's avatar
      image-dired: Report when a necessary executable is not found · ca473907
      Tino Calancha authored
      See discussion on:
      * lisp/image-dired.el (image-dired-cmd-rotate-original-program)
      Use executable-find to set the defaut value of this option.
      (image-dired-cmd-rotate-original-program): Idem.
      Search for program 'convert' if 'jpegtran' is not available.
      Set the default value consistent with the executable in
      (image-dired-create-thumb, image-dired-display-image)
      (image-dired-rotate-thumbnail, image-dired-rotate-original)
      (image-dired-set-exif-data, image-dired-get-exif-data):
      Throw and error when the executable used in the function is missing.
      (image-dired-next-line, image-dired-previous-line):
      Use 'forward-line'.
    • Tino Calancha's avatar
      image-type-from-file-name: Perform a case insensitive match · 2db3307e
      Tino Calancha authored
      Fix Bug#24317
      * lisp/image.el (image-type-from-file-name): Bind case-fold-search
      to a non-nil value to force a case insensitive match.
      * lisp/image-dired.el (image-dired-rotate-original):
      Use image-type (Bug#24317).
      (image-dired-get-exif-file-name): Idem.
      Set 'no-exif-data-found' and 'data' in same setq call.
      Use file-attribute-modification-time.
    • Tino Calancha's avatar
      image-increase-size: Fix non-interactive calls · 7c16c89c
      Tino Calancha authored
      * lisp/image.el (image-increase-size, image-decrease-size):
      Compute a floating point division.
      Problem reported in:
  3. 03 Sep, 2016 2 commits
    • Robert Cochran's avatar
      Fix uses of (call-interactively) in lisp/emacs-lisp/checkdoc.el · 2ad16e4b
      Robert Cochran authored
      Passing the prefix argument as the 3rd argument to 'call-interactively'
      causes the prefix argument to be interpreted as events, which is not
      only wrong, but also causes a type error, as 'current-prefix-arg' can
      never be a vector as 'call-interactively' expects.  'call-interactively'
      automatically passes its prefix argument to the called function, so just
      do that, eliminating faulty behavior.
      * lisp/emacs-lisp/checkdoc.el (checkdoc-ispell):
      Do not pass 'current-prefix-arg' to 'call-interactively' as an event
      vector; merely allow it to propagate forward to the interactive call.
    • Richard Stallman's avatar
      Fix mail-combine-fields · 5fbba6cc
      Richard Stallman authored
      * lisp/mail/sendmail.el (mail-combine-fields): Call `save-excursion' to
      avoid losing our place in the search loop.
  4. 02 Sep, 2016 3 commits
    • Stefan Monnier's avatar
      Check actual contents before promting about changed file · 5a4bffb6
      Stefan Monnier authored
      * lisp/userlock.el (userlock--check-content-unchanged)
      (userlock--ask-user-about-supersession-threat): New functions.
      * src/filelock.c (lock_file): Use them to avoid spurious prompting.
      * doc/lispref/buffers.texi (Modification Time): Update doc of
    • Michael Albinus's avatar
      Make a reference to fakecygpty in the Tramp manual · 7dc4c3ba
      Michael Albinus authored
      * doc/misc/tramp.texi (Windows setup hints): Make a reference to
      fakecygpty on the Emacs Wiki.
      (Frequently Asked Questions): Fix url.
    • Paul Eggert's avatar
      Don’t create fd >= FD_SETSIZE · a5509099
      Paul Eggert authored
      This avoids a potential crash if too many subprocesses (Bug#24325).
      * src/process.c [HAVE_SETRLIMIT]: Include <sys/resource.h>.
      (init_process_emacs): If ulimit -n is greater than FD_SETSIZE,
      set it to FD_SETSIZE.
  5. 01 Sep, 2016 5 commits
  6. 31 Aug, 2016 9 commits
    • Eli Zaretskii's avatar
      Improve testing of etags · 64507149
      Eli Zaretskii authored
      * test/manual/etags/y-src/cccp.c:
      * test/manual/etags/y-src/parse.c: Correct #line directives to
      allow testing invalidate_nodes in etags.c.
      * 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 changes in test files.
    • Eli Zaretskii's avatar
    • Paul Eggert's avatar
      Fix etags problems found by static checking · 9166d402
      Paul Eggert authored
      * lib-src/etags.c (invalidate_nodes, put_entry):
      Remove now-unnecessary tests for null pointers.  Simplify.
      (put_entries): Rewrite to avoid GCC 6.2 warning about
      dereferencing null pointer.
    • Eli Zaretskii's avatar
      Fix a thinko in etags.c · 4ec31277
      Eli Zaretskii authored
      * lib-src/etags.c (invalidate_nodes): Don't try to dereference
      a null pointer.
    • Eli Zaretskii's avatar
      Avoid recursive calls in etags · 6d8144a2
      Eli Zaretskii authored
      * lib-src/etags.c (stack_entry): New struct.
      (push_node, pop_node, put_entry): New functions.
      (free_tree, add_node, invalidate_nodes, put_entries): Re-implement
      in a non-recursive way, to avoid stack overflow.  (Bug#5847)
    • Leo Liu's avatar
      Add 451 to url-http-codes · 6f125aa3
      Leo Liu authored
      * lisp/url/url-http.el (url-http-codes): Add 451.
    • Paul Eggert's avatar
      ; Spelling and quotation fixes · 1393a4d2
      Paul Eggert authored
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      Minor doc quoting fixes · 6f40b8b2
      Paul Eggert authored
      * doc/misc/htmlfontify.texi (Interactive):
      * lisp/htmlfontify.el (htmlfontify-buffer):
      Spell out character names, for clarity.  The old doc string
      generated the *Help* text ‘^L ([FF]) or ¤ (244)’, where ‘[FF]’
      stands for a form feed character; this was confusing.
      * lisp/electric.el (electric-quote-mode):
      * src/doc.c (syms_of_doc):
      * src/editfns.c (Fformat_message):
      Remove no-longer-necessary ‘\=’s in doc strings.
  7. 30 Aug, 2016 7 commits
    • Paul Eggert's avatar
      Update from gnulib · 6cf3ee3d
      Paul Eggert authored
      This incorporates:
      2016-08-30 intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
      2016-08-29 xalloc-oversized.h: port change to GCC 6.2.0
      2016-08-29 intprops.h: port recent changes to GCC 6.2.0
      2016-08-29 intprops.h: use __typeof__ with GCC 7
      2016-08-29 intprops.h, xalloc-oversized.h: work with gcc 7
      2016-08-24 intprops: fix paren typo on old platforms
      2016-08-24 intprops: port to OpenVMS
      * lib/intprops.h, lib/xalloc-oversized.h: Copy from gnulib.
    • Tassilo Horn's avatar
      Fix rules for \phi and \varphi which were reversed · 1145322a
      Tassilo Horn authored
      * lisp/leim/quail/latin-ltx.el: Special-case phi/varphi because those
        are reversed in ucs-names.  Also remove FIXME stating sigma/varsigma
        were reversed which is not true (anymore?).
    • Tassilo Horn's avatar
      Fix prettification of \phi, \varphi, and \varsigma · 67304320
      Tassilo Horn authored
      * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Fix
        prettification of \phi, \varphi, and \varsigma.
      Concretely, \phi's symbol was actually varphi, \varphi was missing, and
      \varsigma was commented out with a FIXME that it was reversed with
      \sigma which it was not.
    • Karl Fogel's avatar
      Use normal double quotes in TeX / LaTeX comments · 2b404e83
      Karl Fogel authored
      * lisp/textmodes/tex-mode.el (tex-insert-quote): When in a comment,
        default to inserting a normal double quote (") instead of TeX-style
        open (``) or close ('') quote marks.
      * etc/NEWS (TeX mode): Note the change.
      * test/lisp/electric-tests.el (autowrapping-7): Adjust accordingly.
      See this thread for discussion:
        From: Karl Fogel <kfogel {_AT_} red-bean.com>
        To: Emacs Development <emacs-devel {_AT_} gnu.org>
        Subject: [PATCH] Have LaTeX mode use normal double quotes in comments.
        Date: Mon, 29 Aug 2016 14:44:12 -0500
        Message-ID: <87twe3icmr.fsf@red-bean.com>
    • Alan Mackenzie's avatar
      Correctly analyze C++ list initialization in member init areas. · a9118afc
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-back-over-list-of-member-inits): Remove a
      superfluous call to c-backward-syntactic-ws.
      (c-looking-at-or-maybe-in-bracelist): Change calling convention, so that it
      reports encountering the Java "new" keyword.  Add, as an alternative, a check
      that we can move back over member initializations, and handle this as finding
      a brace block.
      (c-looking-at-special-brace-list, c-guess-continued-construct): Adapt to the
      new calling convention of c-looking-at-or-maybe-in-bracelist.
      (c-guess-basic-syntax, CASE 5A.3): Replace lots of inline ad-hoc code with
      calls to c-backward-over-enum-header and c-looking-at-or-maybe-in-bracelist,
      using the extra info from the value of that function to generate a
      topmost-into-cont element where needed (in Java).
      * lisp/progmodes/cc-fonts.el (c-font-lock-declarations): Adapt to the new
      calling convention of c-looking-at-or-maybe-in-bracelist.
      * lisp/progmodes/cc-mode.el (c-fl-decl-start): Adapt to the new calling
      convention of c-looking-at-or-maybe-in-bracelist.
    • Michael Albinus's avatar
      Use `file-attribute-*' in Tramp · 62b6c5d2
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-file-attribute-type)
      (tramp-compat-file-attribute-modes): New defaliases.
      * lisp/net/tramp.el (tramp-handle-file-modes)
      (tramp-handle-file-regular-p, tramp-handle-file-symlink-p)
      (tramp-get-local-gid, tramp-check-cached-permissions):
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-directory-p)
      (tramp-adb-handle-file-truename, tramp-adb-handle-copy-file):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-directory)
      (tramp-gvfs-handle-write-region, tramp-gvfs-get-remote-uid)
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-insert-directory): Use them.
    • Martin Rudalics's avatar
      In `pop-to-buffer' handle case where `display-buffer' fails (Bug#24332) · 4961cc3f
      Martin Rudalics authored
      * lisp/window.el (pop-to-buffer): Don't assume that
      `display-buffer' has supplied a window (Bug#24332).
      Rename BUFFER argument to BUFFER-OR-NAME.
      * doc/lispref/windows.texi (Switching Buffers): Fix
      `pop-to-buffer' documentation.
  8. 29 Aug, 2016 5 commits
    • Alan Third's avatar
      Clarify docstrings · bcd2d911
      Alan Third authored
      * src/nsterm.m: Clarified that ns-x-modifier variables require a symbol.
    • Michael Albinus's avatar
      Use `process-live-p' in Tramp · 1d0d6d92
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-process-live-p): New defun.
      * lisp/net/tramp.el (tramp-connectable-p, tramp-handle-file-remote-p)
      (tramp-action-process-alive, tramp-action-out-of-band)
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
      * lisp/net/tramp-cache.el (tramp-get-connection-property):
      * tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
      * lisp/net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
      (tramp-gw-aux-proc-sentinel, tramp-gw-open-connection):
      * tramp-sh.el (tramp-process-sentinel)
      * lisp/net/lisp/net/lisp/net/tramp-smb.el (tramp-smb-action-with-tar)
      (tramp-smb-handle-copy-directory, tramp-smb-action-get-acl)
      (tramp-smb-handle-process-file, tramp-smb-action-set-acl)
      (tramp-smb-maybe-open-connection, tramp-smb-wait-for-output)
      (tramp-smb-kill-winexe-function): Use it.
    • Eli Zaretskii's avatar
      Avoid crashes for invalid value of key modifiers · 472ebd86
      Eli Zaretskii authored
      * src/keyboard.c (parse_solitary_modifier): If the argument SYMBOL
      is not a symbol, don't try to recognize it.  See
      for the details.
      * test/src/keymap-tests.el (keymap-where-is-internal-test): New
      test, for testing the above fix.
    • Oleh Krehel's avatar
      Make dired-do-compress understand files with spaces in them · 67a01490
      Oleh Krehel authored
      * lisp/dired-aux.el (dired-compress-file): Add `shell-quote-argument'
        and `literal' flag to `replace-regexp-in-string'.
    • Paul Eggert's avatar
  9. 28 Aug, 2016 3 commits
    • Simen Heggestøyl's avatar
      Add tests for dom.el · 91734c6b
      Simen Heggestøyl authored
      * test/lisp/dom-tests.el: New file with tests for dom.el.
    • Paul Eggert's avatar
      Memory allocator alignment fixes · 7fcce24e
      Paul Eggert authored
      These changes remove some assumptions about heap allocator
      alignment that may not be true on unusual platforms.
      * src/alloc.c (POWER_OF_2): New macro.
      (ROUNDUP): Use it.
      (BLOCK_ALIGN): Verify that it is a power of 2.
      (aligned_alloc): Check that alignment passed to posix_memalign
      satisfies POSIX restrictions.
      (lisp_align_malloc): Check that size passed to aligned_alloc
      satisfies C11 restrictions.
      (MALLOC_IS_GC_ALIGNED): Check that GCALIGNMENT is 8, since the
      code has not been verified to work with other GCALIGNMENT values
      and the ice is thin here.  On GNU/Linux, malloc can return a value
      that is a multiple of 8 but not 16, even though __alignof__
      (max_align_t) is 16.  See:
      (lmalloc) [USE_ALIGNED_ALLOC]: Use aligned_alloc only if size
      is a multiple of alignment, since C11 says the behavior is
      undefined otherwise.
      (lmalloc, lrealloc): Don't use INT_ADD_WRAPV on size_t, as in
      general this macro is restricted to signed types.  Remove
      assertion that the result is a multiple of GCALIGNMENT, as that
      need not be true.
    • Paul Eggert's avatar
      Pacify --enable-gcc-warnings for lib-src/pop.c · 4be1ab61
      Paul Eggert authored
      * lib-src/pop.c: Include c-ctype.h.
      (socket_connection): Pacify --enable-gcc-warnings by rewriting to
      avoid 'if (v = E) ...'.  Use c_tolower, instead of a combination
      of the (undeclared) isupper and tolower.  Fix pointer constness