1. 28 May, 2017 2 commits
    • Michael Albinus's avatar
      Some tweaks, almost all for Tramp adb method · e7bb7cc2
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names):
      Use `make-tramp-file-name'.
      (tramp-adb-get-device): Use `tramp-file-name-port-or-default'.
      (tramp-adb-maybe-open-connection): Set "prompt" property.
      (tramp-adb-wait-for-output): Use it.
      * lisp/net/tramp-cache.el (tramp-cache-print): Use `elt'.
      (tramp-dump-connection-properties): Check also that there are
      properties to be saved.  Don't save "started" property of
      "ftp" method.
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name):
      Use `make-tramp-file-name'.
      * lisp/net/tramp.el (tramp-remote-file-name-spec-regexp):
      Host could be empty.
      (tramp-file-name-port-or-default): New defun.
      (tramp-dissect-file-name): Simplify `make-tramp-file-name' call.
      (tramp-handle-file-name-case-insensitive-p): Use a progress reporter.
      (tramp-call-process, tramp-call-process-region):
      Use `make-tramp-file-name'.
      * test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
      Revert change from 2017-05-24.
      (tramp-test05-expand-file-name-relative): Let it also pass for
      "adb" method.
    • Jürgen Hötzel's avatar
      Fix Tramp for Android 7 · 288b3ca2
      Jürgen Hötzel authored
      * tramp-adb.el (tramp-adb-ls-toolbox-regexp):
      Username part of prompt is empty on Android 7.
      Ignore addition links column on Android 7.
      Dont use --color=none when using toybox (Android 7).  It's not
      possible to disable coloring explicitly for toybox ls.
  2. 27 May, 2017 12 commits
    • Svante Carl v. Erichsen's avatar
      Fix cl-indent for `loop' with :keywords (Bug#15543) · 527a7cc9
      Svante Carl v. Erichsen authored
      * lisp/emacs-lisp/cl-indent.el (lisp-extended-loop-p): Allow for
      Copyright-paperwork-exempt: yes
    • Paul Eggert's avatar
      Depromiscuify inotify with IN_MASK_ADD · d3873050
      Paul Eggert authored
      Use IN_MASK_ADD instead of using a no-longer-promiscuous-enough
      mask.  This simplifies the code and restores the ability to
      in some cases (Bug#26973).
      * src/inotify.c (INOTIFY_DEFAULT_MASK): Remove.
      (Finotify_add_watch): Use IN_MASK_ADD instead.
    • Paul Eggert's avatar
      Restore inotify onlydir support · ad656a72
      Paul Eggert authored
      There was no need to remove it in the 2017-03-26 inotify change,
      as it is like IN_DONT_FOLLOW and does not affect other watchers
      for the same file.
      * src/inotify.c (symbol_to_inotifymask, Finotify_add_watch)
      (syms_of_inotify): Bring back onlydir.
    • Paul Eggert's avatar
      Simplify computation of inotify mask · 8f59ff24
      Paul Eggert authored
      * src/inotify.c (add_watch): Accept uint32_t imask instead
      of Lisp_Object aspect.  Caller changed.
      (Finotify_add_watch): Use aspect_to_inotifymask earlier, to
      simplify the code.
    • Philipp Stephani's avatar
      Don't attempt to recover from undefined behavior in some cases · ebe0bdae
      Philipp Stephani authored
      These functions can only be run in batch mode and exit Emacs on
      return, so nothing can be recovered.  Disable unsafe recover
      mechanisms so that we get real failures and good stack traces on
      fatal signals.
      * lisp/emacs-lisp/bytecomp.el (batch-byte-compile)
      * lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit)
      (ert-summarize-tests-batch-and-exit): Don't attempt to recover
      from undefined behavior.
    • Philipp Stephani's avatar
      Avoid another compiler warning on macOS · a3a3ea07
      Philipp Stephani authored
      When configured with --without-ns, HAVE_NS is not defined on macOS,
      thus 'memory-limit' calls the deprecated sbrk(2) function.  Avoid that
      by using the pre-defined __APPLE__ preprocessor macro.
      * src/alloc.c (Fmemory_limit): Never use sbrk(2) on macOS.
    • Luke Yen-Xun Lee's avatar
      Fix ruler-mode text-scaling issues · b0177da7
      Luke Yen-Xun Lee authored
      * lisp/ruler-mode.el (ruler-mode-text-scaled-width): New function
      for computing scaled text width.
      (ruler-mode-text-scaled-window-width): Compute text scaled
      `window-width' value.
      (ruler-mode-mouse-grab-any-column, ruler-mode-mouse-add-tab-stop)
      (ruler-mode-ruler): Change `window-hscroll' into
      `ruler-mode-text-scaled-window-hscroll', and change `window-width'
      into `ruler-mode-text-scaled-window-width'.
    • Martin Rudalics's avatar
      Minor doc and doc-string fixes (Bug#27091) · 704fea97
      Martin Rudalics authored
      * src/window.c (Fset_window_scroll_bars): Fix doc-string.
      * doc/lispref/display.texi (Fringe Size/Pos, Scroll Bars)
      (Display Margins): Mention that `set-window-buffer' may override
      settings made by `set-window-fringes', `set-window-scroll-bars'
      and `set-window-margins'.
      * doc/lispref/windows.texi (Buffers and Windows): Fix doc of
    • Eli Zaretskii's avatar
      Avoid args-out-of-range errors on fringe clicks after "C-h k" · 3fc36f42
      Eli Zaretskii authored
      * src/keyboard.c (echo_truncate): Don't call Ftruncate if the echo
      message is already shorter than NCHARS.  (Bug#27040)
    • Eli Zaretskii's avatar
      Fix GUD "Stop" display when running pdb · 4b17214a
      Eli Zaretskii authored
      * lisp/progmodes/gud.el (gud-menu-map): Don't call gdb-show-stop-p
      when GUD mode is 'pdb'.  (Bug#27024)
    • Tak Kunihiro's avatar
      Support drag and drop of region by mouse (Bug#26725) · c0f2c298
      Tak Kunihiro authored
      * doc/emacs/frames.texi (Drag and Drop): Document support of drag
      and drop region by mouse.
      * lisp/mouse.el (mouse-drag-region): Call mouse-drag-and-drop-region
      when start-event is on region.
      (mouse-drag-and-drop-region): New function, moves the region by
      (mouse-drag-and-drop-region): New defcustom.
      * etc/NEWS: Mention mouse-drag-and-drop-region.
    • Noam Postavsky's avatar
  3. 26 May, 2017 7 commits
    • Alan Third's avatar
      Check if instancetype supported in ObjC · 0d676deb
      Alan Third authored
      * configure.ac: Add check for instancetype.
      * src/nsterm.h [!NATIVE_OBJC_INSTANCETYPE]: Define instancetype.
    • Wilfred Hughes's avatar
      Mark keywordp as a safe, error-free function · dc79aa10
      Wilfred Hughes authored
      * lisp/emacs-lisp/byte-opt.el: Add keywordp to
    • Paul Eggert's avatar
      * src/inotify.c: Add FIXME comments. · 4681fbac
      Paul Eggert authored
    • Andreas Politz's avatar
      Fix Bug#26973 · d02e8ab6
      Andreas Politz authored
      * src/inotify.c (INOTIFY_DEFAULT_MASK): Removing ACCESS, OPEN
      and CLOSE events on order do let other processes also reading
      from their descriptors.  (Bug#26973).
    • Michael Albinus's avatar
      Remove Emacs 23 compat code from Tramp · b3032988
      Michael Albinus authored
      * doc/misc/tramp.texi (Remote processes): Don't mention
      Emacs 24 explicitely.
      (Frequently Asked Questions): Remove Emacs 23 from
      compatibility list.
      * lisp/net/tramp.el:
      * lisp/net/tramp-adb.el:
      * lisp/net/tramp-cache.el:
      * lisp/net/tramp-gvfs.el:
      * lisp/net/tramp-sh.el:
      * lisp/net/tramp-smb.el: Replace compat function calls.
      * lisp/net/tramp-compat.el (remote-file-name-inhibit-cache)
      (tramp-compat-copy-file, tramp-compat-copy-directory)
      (tramp-compat-delete-file, tramp-compat-delete-directory)
      (tramp-compat-process-live-p): Remove them.
      * lisp/net/trampver.el: Make version check fit for Emacs 24.
    • Katsumi Yamaoka's avatar
      Work for application/x-tar-gz and image/svg+xml · 4de0737c
      Katsumi Yamaoka authored
      ;; Try inlining the attachment in the article <87wp94dzj6.fsf@gmail.com>
      ;; of bug#27078 in the Emacs bug list using Gnus.
      * lisp/gnus/mm-archive.el (mm-archive-decoders):
      Add a decoder for application/x-tar-gz.
      (mm-dissect-archive): Error out if a decoder is not found.
      * lisp/gnus/mm-decode.el (mm-get-image): Allow image/svg+xml.
    • Tino Calancha's avatar
      test-calc-23889: Skip test on 32-bit platforms · 4c4a1b32
      Tino Calancha authored
      This test fails on some 32-bit platforms as mentioned in
      * test/lisp/calc/calc-tests.el (test-calc-23889): Skip when
      the Lisp integer is not big enough.
  4. 25 May, 2017 11 commits
  5. 24 May, 2017 8 commits
    • Michael Albinus's avatar
      Fix Tramp for python.el · b2ec91db
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-get-connection-process): Check,
      that VEC is a `tramp-file-name' structure.
    • Alan Third's avatar
      Raise version of macOS we define instancetype for (bug#27059) · ad8b60ee
      Alan Third authored
      * src/nsterm.m: Increase supported version number.
    • Alan Third's avatar
      Define new types on macOS 10.6 (bug#27041) · d61d443f
      Alan Third authored
      * src/nsterm.h: Enable instancetype typedef for older macOS, and use
      correct NSUInteger instead of int.
    • Glenn Morris's avatar
      Don't autoload new dns-mode command · c0f90833
      Glenn Morris authored
      * lisp/textmodes/dns-mode.el (dns-mode-ipv6-to-nibbles):
      Remove autoload cookie.
    • Stefan Monnier's avatar
      * src/fns.c (sxhash): Fix records hashing (bug#27057, bug#26639) · 7dfe682e
      Stefan Monnier authored
      (sxhash_vector): Make it work on pseudo vectors as well.
      (sxhash): Treat records like vectors.
    • Michael Albinus's avatar
      Adapt tramp-tests.el according to new defstruct · ac36012d
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
      Fix test according to new defstruct.
      Expect it now as passed.  Cleanup at the end.
    • Michael Albinus's avatar
      Introduce a defstruct `tramp-file-name' as central data structure. · dca22e86
      Michael Albinus authored
      This solves also Bug#27009.
      * lisp/net/tramp.el (tramp-current-domain)
      (tramp-current-port): New defvars.
      (tramp-file-name): New defstruct.
      (tramp-file-name-user-domain, tramp-file-name-host-port)
      (tramp-file-name-equal-p): New defuns.
      (tramp-file-name-p, tramp-file-name-method)
      (tramp-file-name-user, tramp-file-name-host)
      (tramp-file-name-localname, tramp-file-name-hop)
      (tramp-file-name-real-user, tramp-file-name-domain)
      (tramp-file-name-real-host, tramp-file-name-port):
      Remove defuns.  They are provided by the defstruct, or not
      needed anymore.
      (tramp-dissect-file-name, tramp-buffer-name)
      (tramp-make-tramp-file-name, tramp-get-buffer)
      (tramp-debug-buffer-name, tramp-message)
      (tramp-error-with-buffer, with-parsed-tramp-file-name)
      (tramp-handle-file-remote-p, tramp-handle-file-symlink-p)
      (tramp-handle-insert-file-contents, tramp-process-actions)
      (tramp-check-cached-permissions, tramp-local-host-p)
      (tramp-get-remote-tmpdir, tramp-call-process)
      (tramp-call-process-region, tramp-read-passwd)
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
      (tramp-adb-handle-file-truename, tramp-adb-handle-copy-file)
      * lisp/net/tramp-cache.el (tramp-get-hash-table)
      (tramp-get-file-property, tramp-set-file-property)
      (tramp-flush-file-property, tramp-flush-directory-property)
      (tramp-set-connection-property, tramp-connection-property-p)
      (tramp-flush-connection-property, tramp-cache-print)
      (tramp-list-connections, tramp-dump-connection-properties)
      * lisp/net/tramp-cmds.el (tramp-cleanup-connection):
      * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name)
      (tramp-gvfs-url-file-name, tramp-gvfs-handler-askpassword)
      (tramp-gvfs-mount-spec, tramp-gvfs-get-remote-uid)
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
      (tramp-sh-handle-process-file, tramp-compute-multi-hops)
      (tramp-make-copy-program-file-name, tramp-get-remote-path)
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-file-acl, tramp-smb-handle-process-file)
      (tramp-smb-maybe-open-connection): Adapt according to defstruct.
    • Stephen Berman's avatar
      Fix and improve UI of scroll bar menu (bug#27047) · 08f00c01
      Stephen Berman authored
      In addition, since the Emacs manual writes "scroll bar", "tool
      bar" and "menu bar", use this convention in the Show/Hide menues
      and tooltips as well.
      * lisp/menu-bar.el (menu-bar-showhide-scroll-bar-menu): Make
      pressing a radio button in the menu actually show that it was
      pressed.  Replace the two radio buttons to turn the horizontal
      scroll bar on and off with a single check-box toggle and add a
      separator between this and the vertical scroll bar radio
      buttons.  Use conventional spelling.
      (menu-bar-no-horizontal-scroll-bar): Remove, since now unused.
      (menu-bar-showhide-tool-bar-menu, menu-bar-showhide-menu)
      (menu-bar-mode): Use conventional spelling.