1. 11 Aug, 2016 1 commit
    • Eli Zaretskii's avatar
      Avoid annoying re-scroll when buffer has many overlay strings · 2e0a2b37
      Eli Zaretskii authored
      * src/xdisp.c (redisplay_window): Add better recovery from a
      situation where window-start is on buffer position which has a
      before-string that includes newlines, with the result that point
      is not visible in the window, because the display engine starts
      displaying with the before-string.  (Bug#24179)
      2e0a2b37
  2. 10 Aug, 2016 9 commits
  3. 09 Aug, 2016 12 commits
    • Vincent Belaïche's avatar
      Apply changes from commits 3c97b0f7 and 8a38e948 to master branch. · 731d225c
      Vincent Belaïche authored
      Here follows the logs from the two commits which I apply to master.
      
      commit 3c97b0f7
      Author: Vincent Belaïche <vincentb1@users.sourceforge.net>
      Date:   Fri Jul 29 13:44:14 2016 +0200
      
      Fix ses-delete-blanks to delete only blanks + documentation.
      
      * doc/misc/ses.texi (Quick Tutorial): Mention the '!'
      'ses-range' modifier as an alternative to 'ses+'.
      (Advanced Features): Add a refernce to node 'Nonrelocatable
      references' concerning function 'ses-rename-cell'.
      (Standard formula functions): Mention the '!' 'ses-range'
      modifier as an alternative to 'ses-delete-blanks'.
      (More on cell printing): Fix fallback printer
      definition.  Minor editorial formatting changes.
      (Nonrelocatable references): Document the use of
      'ses-rename-cell' as a better way to make cell reference
      non-relocatable.
      (The data area): Document the presence of local printer
      definitions in the data area.
      
      * lisp/ses.el (ses-delete-blanks): Do not remove
      *error*.  Any error in an argument should propagate into the
      using formula rather than being silently hidden !
      
      commit 8a38e948
      Author: Vincent Belaïche <vincentb1@users.sourceforge.net>
      Date:   Thu Jul 28 19:49:37 2016 +0200
      
      Fix local printer set to left aligned string formatter.
      
      * lisp/ses.el (ses-local-printer-compile): Add missing case
      for left-aligned string formatter.
      731d225c
    • Paul Eggert's avatar
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cconv.el: Fix λ-lifting in the presence of shadowing · c97cd6c0
      Stefan Monnier authored
      Change the code which detects and circumvents the case where one of the
      variables used in λ-lifting is shadowed, so that it also works when the
      shadowing comes before the λ-lifted function (bug#24171).
      
      (cconv--remap-llv): New function, extracted from cconv-convert.
      (cconv-convert): Use it, but differently for `let' and `let*'.
      c97cd6c0
    • Alan Mackenzie's avatar
      CC Mode: check for and fix missing call to before_change_functions. · 9cf90958
      Alan Mackenzie authored
      Fixes bug #24094 and bug #24074.
      
      This can happen with `revert-buffer' or sometimes `find-file', when the file
      is already in a buffer, but the file has been changed outside of Emacs.
      
      * lisp/progmodes/cc-mode (c-after-change): When we detect a missing
      invocation of c-before-change-functions, we assume the changed region is the
      entire buffer, and call c-before-change explicitly before proceding.
      9cf90958
    • Alan Mackenzie's avatar
      Make c-deprepertize-CPP work on deletion/insertion of "s. Fixes bug #24132. · 8b789c8c
      Alan Mackenzie authored
      * lisp/progmodes/cc-mode.el (c-depropertize-CPP): Rewrite function.
      8b789c8c
    • Michael Albinus's avatar
      Support $ENV in Tramp · 5126b7d6
      Michael Albinus authored
      * doc/misc/tramp.texi (Remote processes): Explain setting $ENV.
      
      * etc/NEWS: Explain the "ENV" environment variable in
      `tramp-remote-process-environment'.
      
      * lisp/net/tramp-sh.el (tramp-remote-process-environment): Add "ENV=''".
      (tramp-open-shell): Read $ENV value from
      `tramp-remote-process-environment'.
      (tramp-open-connection-setup-interactive-shell): Set values in
      proper order.
      5126b7d6
    • Paul Eggert's avatar
      Simplify exec_byte_code via moving decls etc. · e09dc111
      Paul Eggert authored
      * src/bytecode.c (exec_byte_code): Simplify, mostly by moving
      initializers into decls, and by omitting some unnecessary
      changes to ‘top’.  This improves performance a bit on x86-64,
      as it happens.
      e09dc111
    • Paul Eggert's avatar
      Remove interpreter’s byte stack · 644fc17b
      Paul Eggert authored
      This improves performance overall on my benchmark on x86-64,
      since the interpreted program-counter resides in a machine
      register rather than in RAM.
      * etc/DEBUG, src/.gdbinit: Remove xbytecode GDB command, as there
      is no longer a byte stack to decode.
      * src/bytecode.c (struct byte_stack, byte_stack_list)
      (relocate_byte_stack): Remove.  All uses removed.
      (FETCH): Simplify now that pc is now local (typically, in a
      register) and no longer needs to be relocated.
      (CHECK_RANGE): Remove.  All uses now done inline, in a different way.
      (BYTE_CODE_QUIT): Remove; now done by op_relative_branch.
      (exec_byte_code): Allocate a copy of the function’s bytecode,
      so that there is no problem if GC moves it.
      * src/lisp.h (struct handler): Remove byte_stack member.
      All uses removed.
      (SAFE_ALLOCA_LISP_EXTRA): New macro, a generalization of
      SAFE_ALLOCA_LISP.
      (SAFE_ALLOCA_LISP): Use it.
      644fc17b
    • Paul Eggert's avatar
      Remove arbitrary limit on bytecode maxdepth · cb71a119
      Paul Eggert authored
      * src/bytecode.c (exec_byte_code): Remove MAX_ALLOCA-based limit
      on bytecode maxdepth, by using SAFE_ALLOCA_LISP instead of alloca.
      
      pipeline is fuller.
      cb71a119
    • Paul Eggert's avatar
      Tune bytecode quitting · d896f789
      Paul Eggert authored
      * src/bytecode.c (BYTE_CODE_QUIT): Check for GC, too.  Do the
      check only once every 256 times.  This should be good enough, and
      improves performance significantly on x86-64 as branch-prediction
      typically assumes checking will not be done so the instruction
      pipeline stays fuller.
      (exec_byte_code): Set up the quit counter.  Don’t call maybe_gc
      directly, as BYTE_CODE_QUIT does that now.
      d896f789
    • Paul Eggert's avatar
      Simplify BYTE_CODE_SAFE checking · 4d07064a
      Paul Eggert authored
      * src/bytecode.c (BYTE_CODE_SAFE): Default to false, so that it
      can be used outside #if.  All uses of ‘defined BYTE_CODE_SAFE’
      changed to ‘BYTE_CODE_SAFE’.  Use BYTE_CODE_SAFE in plain
      expressions instead of #if expressions when this is easy.
      (struct byte_stack) [BYTE_CODE_SAFE]: Remove member ‘bottom’,
      as it is no longer needed.
      (exec_byte_code): Omit #if BYTE_CODE_SAFE when this is easy.
      Simplify stack-overflow checking when BYTE_CODE_SAFE.
      4d07064a
    • Paul Eggert's avatar
      Get BYTE_CODE_METER working again · 846e88eb
      Paul Eggert authored
      BYTE_CODE_METER hasn’t worked since 2013, and nobody seems to have
      noticed.  Perhaps we should remove it?
      * src/bytecode.c (METER_2) [BYTE_CODE_METER]:
      Use *aref_addr instead of AREF, since it needs to be an lvalue.
      846e88eb
  4. 08 Aug, 2016 2 commits
  5. 07 Aug, 2016 4 commits
    • Paul Eggert's avatar
      Tune interpretation of integer arglist descriptor · 7961dee1
      Paul Eggert authored
      * src/bytecode.c (exec_byte_code):
      Simplify and tune when INTEGERP (args_template).
      7961dee1
    • Noam Postavsky's avatar
      Fix debugging of string-match-p errors · 7fb75680
      Noam Postavsky authored
      * src/eval.c (call_debugger): Bind inhibit-changing-match-data to nil so
      that debugger code that needs to do regexp match won't break
      (Bug #23949, Bug #24166, Bug#16294).
      7fb75680
    • Michael Albinus's avatar
      Add `make-nearby-temp-file' and `temporary-file-directory' · 2c050617
      Michael Albinus authored
      * doc/lispref/files.texi (Unique File Names):
      Introduce `make-nearby-temp-file' and `temporary-file-directory'.
      (Magic File Names): Mention `make-nearby-temp-file' and
      `temporary-file-directory'.
      
      * etc/NEWS (provided): Mention `make-nearby-temp-file' and
      `temporary-file-directory'.
      
      * lisp/files.el (mounted-file-systems): New defcustom.
      (temporary-file-directory, make-nearby-temp-file): New defuns.
      (normal-backup-enable-predicate): Fix docstring.
      
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      <make-nearby-temp-file, temporary-file-directory>: Add handler.
      
      * lisp/net/tramp.el (tramp-file-name-for-operation):
      Add `make-nearby-temp-file' and `temporary-file-directory'.
      (tramp-get-remote-tmpdir): Remove compatibility code.
      (tramp-handle-temporary-file-directory)
      (tramp-handle-make-nearby-temp-file): New defuns.
      
      * lisp/org/ob-core.el (org-babel-local-file-name):
      * lisp/progmodes/gud.el (gud-common-init):
      * lisp/vc/vc-hooks.el (vc-user-login-name): Use `file-remote-p'.
      
      * lisp/vc/vc-git.el (vc-git-checkin): Handle remote log message.
      
      * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name):
      Check `tramp--test-enabled'.
      (tramp-test18-file-attributes): Add tests for
      `file-ownership-preserved-p'.
      (tramp-test27-start-file-process, tramp-test28-shell-command):
      Reduce timeouts in `accept-process-output'.
      (tramp-test--shell-command-to-string-asynchronously): Add timeout.
      (tramp-test29-environment-variables): Remove additional sleep calls.
      (tramp-test32-make-nearby-temp-file): New test.
      (tramp--test-special-characters, tramp--test-utf8): Adapt docstring.
      (tramp-test33-special-characters)
      (tramp-test33-special-characters-with-stat)
      (tramp-test33-special-characters-with-perl)
      (tramp-test33-special-characters-with-ls, tramp-test34-utf8)
      (tramp-test34-utf8-with-stat, tramp-test34-utf8-with-perl)
      (tramp-test34-utf8-with-ls)
      (tramp-test35-asynchronous-requests)
      (tramp-test36-recursive-load, tramp-test37-unload): Rename.
      (tramp--test-ftp-p): Simplify check.
      (tramp--test-sh-p): New defun.
      (tramp-test20-file-modes, tramp-test22-file-times)
      (tramp-test26-process-file, tramp-test27-start-file-process)
      (tramp-test28-shell-command)
      (tramp-test29-environment-variables)
      (tramp-test30-vc-registered)
      (tramp-test33-special-characters-with-stat)
      (tramp-test33-special-characters-with-perl)
      (tramp-test33-special-characters-with-ls)
      (tramp-test34-utf8-with-stat, tramp-test34-utf8-with-perl)
      (tramp-test34-utf8-with-ls)
      (tramp-test35-asynchronous-requests): Use it.
      2c050617
    • Michael Albinus's avatar
      Add missing dcstrings in Tramp, remove chec for obsolee methods · a7985477
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-progress-reporter-update)
      (tramp-unload-file-name-handlers, tramp-get-local-uid)
      (tramp-get-local-gid, tramp-get-local-locale):
      * lisp/net/tramp-adb.el (tramp-adb-ls-date-regexp)
      (tramp-adb-ls-toolbox-regexp, tramp-adb-get-ls-command):
      * lisp/net/tramp-compat.el (tramp-compat-funcall):
      * lisp/net/tramp-ftp.el (tramp-ftp-enable-ange-ftp):
      * lisp/net/tramp-gw.el (tramp-gw-process-filter):
      * lisp/net/tramp-sh.el (tramp-get-remote-path)
      (tramp-get-remote-locale, tramp-get-ls-command)
      (tramp-get-ls-command-with-dired)
      (tramp-get-ls-command-with-quoting-style)
      (tramp-get-ls-command-with-w-option)
      (tramp-get-test-nt-command, tramp-get-file-exists-command)
      (tramp-get-remote-ln, tramp-get-remote-perl)
      (tramp-get-remote-stat, tramp-get-remote-readlink)
      (tramp-get-remote-trash, tramp-get-remote-touch)
      (tramp-get-remote-gvfs-monitor-dir)
      (tramp-get-remote-inotifywait, tramp-get-remote-id)
      (tramp-get-remote-uid-with-id)
      (tramp-get-remote-uid-with-perl, tramp-get-remote-python)
      (tramp-get-remote-uid-with-python, tramp-get-remote-uid)
      (tramp-get-remote-gid-with-id)
      (tramp-get-remote-gid-with-perl)
      (tramp-get-remote-gid-with-python, tramp-get-remote-gid)
      (tramp-get-env-with-u-option): Add missing docstrings.
      
      * lisp/net/tramp.el (tramp-obsolete-methods)
      (tramp-warned-obsolete-methods): Remove.
      (tramp-find-method): Do not check for obsolete methods any longer.
      a7985477
  6. 06 Aug, 2016 10 commits
  7. 05 Aug, 2016 2 commits
    • Paul Eggert's avatar
      Merge from origin/emacs-25 · c1b5000d
      Paul Eggert authored
      d841a03c ; Spelling fix
      a6ae4792 Post AppDefined events from the main thread ONLY (bug#23934)
      d35d398b Update to the AUTHORS file for Bob Weiner
      4d2f4dfd Revert "Fix local printer set to left aligned string formatter."
      cd1b4d60 Revert "Fix ses-delete-blanks to delete only blanks + documen...
      f7ceb8e0 Revert "Fix English."
      baa7abde Improve doc strings of 'gud-gdb' and 'gdb'
      aa4271ab Fix doc string of 'minibuffer-message-timeout'
      b275cc76 Fix English.
      3c97b0f7 Fix ses-delete-blanks to delete only blanks + documentation.
      272391f1 profiler: document prefix arg for tree expansion
      442cc39e Clarify usage of eshell-visual-options
      b443c3c7 Fix comment in files-in-below-directory
      8a38e948 Fix local printer set to left aligned string formatter.
      0f0b191a ; Fix typos in NEWS
      6bdf687a ; * etc/NEWS: Remove temporary marks
      c1b5000d
    • Paul Eggert's avatar
      ; Merge from origin/emacs-25 · fe322583
      Paul Eggert authored
      The following commit was skipped:
      
      3d981ddd Bump Emacs version to 25.1 for the first RC
      fe322583