1. 13 Mar, 2019 3 commits
  2. 12 Mar, 2019 4 commits
    • Christopher Wellons's avatar
      * lisp/mail/hashcash.el: Get rid of backquoted lambdas · c8bf09ed
      Christopher Wellons authored
      Copyright-paperwork-exempt: yes
      
      (hashcash-generate-payment-async): η-reduce.
      (hashcash-insert-payment-async): Use proper closure.
      c8bf09ed
    • Michael Albinus's avatar
      * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): · 3ec05e1c
      Michael Albinus authored
      Use proper range when deleting the region.
      3ec05e1c
    • Alan Mackenzie's avatar
      Correct the indentation of CC Mode brace lists · aa1a4cce
      Alan Mackenzie authored
      while preserving the indentation of nested C++ uniform initialization.
      
      * lisp/progmodes/cc-align.el (c-lineup-2nd-brace-entry-in-arglist)
      (c-lineup-class-decl-init-+, c-lineup-class-decl-init-after-brace): New
      indentation functions.
      
      * lisp/progmodes/cc-engine.el (c-forward-class-decl): New function.
      (c-do-declarators): New function, partially extracted from
      c-font-lock-declarators, which now calls the new function.
      (c-inside-bracelist-p): Amend the introductory comment.
      (c-add-stmt-syntax): Add code to prevent the spurious recognition of a
      'defun-block-intro when a brace pair is used as an initializer.
      (c-evaluate-offset): No longer ignore vectors of length >= 2.
      (c-calc-offset): Refactor clumsily nested `if'/`or' into a cond form.
      
      * lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Replace the bulk of
      this function by a call to the new c-forward-class-decl.
      
      * lisp/progmodes/cc-langs.el (c-type-decl-prefix-key): Recognize "~" as a
      type decl operator.
      
      * lisp/progmodes/cc-mode.el (c-fl-decl-start): While searching backward for a
      "}" at an EOD, deal with actually finding the end of a brace list.
      
      * doc/misc/cc-mode.texi (List Line-Up): document
      c-lineup-2nd-brace-entry-in-arglist, c-lineup-class-decl-init-+, and
      c-lineup-class-decl-init-after-brace.
      
      * lisp/progmodes/cc-styles.el (c-style-alist): In styles "gnu", "bsd",
      "stroustrup", "python", and "java", change the offset for brace-list-intro
      from the default value or c-lineup-arglist-intro-after-paren to a list
      beginning with the symbol first, followed by two of the new alignment
      functions, followed by +.
      
      * lisp/progmodes/cc-vars.el (c-offset-alist): Change the default value of
      brace-list-entry from c-lineup-under-anchor back to 0.
      aa1a4cce
    • Martin Rudalics's avatar
      Revert last tweak in 'comint-output-filter' · d58c29b3
      Martin Rudalics authored
      * lisp/comint.el (comint-output-filter): Revert last tweak because
      it can hang gdb indefinitely.
      d58c29b3
  3. 11 Mar, 2019 11 commits
    • Paul Eggert's avatar
      Reindent pdumper per usual Emacs style · 1d65985a
      Paul Eggert authored
      * src/pdumper.c, src/pdumper.h: Reindent.
      1d65985a
    • Eli Zaretskii's avatar
      Fix show-trailing-whitespace in R2L text · 7fddde1f
      Eli Zaretskii authored
      * src/xdisp.c (highlight_trailing_whitespace): Allow for
      stretch glyphs at the left edge of R2L lines, when skipping
      glyphs inserted by the display engine.  This unbreaks
      show-trailing-whitespace in R2L lines.
      7fddde1f
    • Paul Eggert's avatar
      Fix a small pdumper memory leak · 93c0527a
      Paul Eggert authored
      * src/pdumper.c (dump_mmap_reset): Free the private area here ...
      (dump_mm_heap_cb_release): ... instead of here.
      (dump_mmap_release_heap): Simplify by avoiding a local.
      (dump_mmap_contiguous): Reindent GNU style.
      93c0527a
    • Martin Rudalics's avatar
      Rewrite minibuffer window resizing code · 95373b69
      Martin Rudalics authored
      * src/frame.c (resize_mini_frames): New variable.
      * src/window.c (resize_mini_window_apply): New function.
      (grow_mini_window, shrink_mini_window): Remove PIXELWISE
      argument.  Call resize_mini_window_apply to apply changes.
      (Fresize_mini_window_internal): Call resize_mini_window_apply
      to apply changes.
      (Qwindow__resize_mini_frame): New symbol.
      * src/window.h (grow_mini_window, shrink_mini_window): Adjust
      external declarations.
      * src/xdisp.c (resize_mini_window): For minibuffer-only frames
      call 'window--resize-mini-frame' if resize_mini_frames is
      non-nil.  Offload parts of logic to grow_mini_window and
      shrink_mini_window which are now called without the PIXELWISE
      argument.
      (Vresize_mini_windows): Mention 'resize-mini-frames' in
      doc-string.
      * lisp/cus-start.el (resize-mini-frames): Add customization
      support.
      * lisp/window.el (window--resize-mini-window): Simplify code.
      (window--resize-mini-frame): New function.
      * doc/lispref/minibuf.texi (Minibuffer Windows): Describe new
      option 'resize-mini-frames'.
      * etc/NEWS: Mention new option 'resize-mini-frames'.
      95373b69
    • Paul Eggert's avatar
      * src/editfns.c: Fix docstring typo. · 27466c62
      Paul Eggert authored
      27466c62
    • Paul Eggert's avatar
      Improve binary-as-unsigned treatment (Bug#34792) · 9b4d34fa
      Paul Eggert authored
      * etc/NEWS:
      * src/editfns.c (Fformat, binary_as_unsigned):
      Update now that we always have bignums.
      (syms_of_editfns) [!defined lisp_h_FIXNUMP]: Remove now-obsolete
      code, since lisp_h_FIXNUMP is always defined now.
      * test/src/editfns-tests.el (read-large-integer): Simplify,
      now that we can assume binary-as-unsigned defaults to nil.
      9b4d34fa
    • Paul Eggert's avatar
      More regexp corrections and tweaks · e81c44fd
      Paul Eggert authored
      Problems reported by Mattias Engdegård in:
      https://lists.gnu.org/r/emacs-devel/2019-03/msg00247.html
      * lisp/align.el (align-rules-list):
      * lisp/comint.el (comint-output-filter):
      * lisp/language/china-util.el (encode-hz-region):
      * lisp/progmodes/cperl-mode.el (cperl-indent-exp):
      * lisp/progmodes/idlwave.el (idlwave-is-pointer-dereference):
      * lisp/progmodes/scheme.el (dsssl-font-lock-keywords):
      * lisp/textmodes/texinfmt.el (texinfo-accent-commands):
      * test/src/regex-emacs-tests.el (regex-tests-re-even-escapes):
      Fix some regular-expression typos.
      e81c44fd
    • Paul Eggert's avatar
      Update from Gnulib · e2f35443
      Paul Eggert authored
      This incorporates:
      2019-03-10 alloca-opt: Fix conflict mingw's new <alloca.h> file
      2019-03-03 getloadavg: Write NULL for the null pointer
      Reported by Michal Privoznik <mprivozn@redhat.com>.
      * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
      * build-aux/config.guess, build-aux/move-if-change:
      * doc/misc/texinfo.tex, lib/alloca.in.h, lib/getloadavg.c:
      * m4/alloca.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      e2f35443
    • Glenn Morris's avatar
      ; Auto-commit of loaddefs files. · 89082c82
      Glenn Morris authored
      89082c82
    • Dmitry Gutov's avatar
      (ruby-add-log-current-method): Recognize methods ending with ? or ! · 66943d0c
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-add-log-current-method):
      Recognize method names ending with ? or !.
      66943d0c
    • Dmitry Gutov's avatar
      project--find-regexp-in-files: Use 'grep -E' · 5aefaf43
      Dmitry Gutov authored
      * lisp/progmodes/project.el (project--find-regexp-in-files): Use
      'grep -E' because we convert the regexp to extended already.
      5aefaf43
  4. 10 Mar, 2019 3 commits
    • Michael Albinus's avatar
      Changes in Tramp adb process handling · de0dc6b8
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-methods) <adb>: Add `tramp-remote-shell'
      and `tramp-remote-shell-args'.
      (tramp-adb-file-name-handler-alist): Use `tramp-handle-shell-command'
      rather than `tramp-adb-handle-shell-command'.
      (tramp-adb-handle-shell-command): Remove.
      (tramp-adb-handle-make-process): Use a proper prompt.
      (tramp-adb-wait-for-output): Simplify.
      de0dc6b8
    • Ken Brown's avatar
      Use a runtime test for timerfd on Cygwin (Bug#34618) · d6826546
      Ken Brown authored
      * src/atimer.c [HAVE_TIMERFD] (have_buggy_timerfd): New
      function.
      (init_atimer) Use it.
      d6826546
    • Stefan Monnier's avatar
      * lisp/speedbar.el: Minor tweaks · e70a65d4
      Stefan Monnier authored
      (speedbar-directory-buttons-follow): Use file-name-as-directory.
      (speedbar-ignored-directory-expressions)
      (speedbar-supported-extension-expressions): Use `sym` in the setter.
      (speedbar-frame-mode): Use with-current-buffer.
      (speedbar-item-info-tag-helper): Use 'cond'.
      (speedbar-highlight-one-tag-line): Don't use position beyond EOB.
      e70a65d4
  5. 09 Mar, 2019 19 commits
    • Tassilo Horn's avatar
      Make doc-view work with text-mode as default major-mode (bug#34451) · affd2a0c
      Tassilo Horn authored
      * lisp/doc-view.el (doc-view--text-view-mode): New alias for view-mode.
      (doc-view-open-text): Use it.
      (doc-view-toggle-display): Use it.
      affd2a0c
    • Christopher Wellons's avatar
      * list/emulation/viper: Use user-error for "Viper bell" · dfc80553
      Christopher Wellons authored
      Copyright-paperwork-exempt: yes
      
      * lisp/emulation/viper-init.el (viper-ViperBell): New constant.
      * lisp/emulation/viper-cmd.el (viper-prefix-arg-com)
      (viper-forward-char, viper-backward-char, viper-goto-col)
      (viper-find-char, viper-paren-match, viper-put-back, viper-Put-back)
      (viper-delete-char, viper-mark-point, viper-goto-mark-subr):
      * lisp/emulation/viper-ex.el (ex-delete): Use it and `user-error`.
      dfc80553
    • Tassilo Horn's avatar
      Name buffer according to attachment filename (bug#34478). · 7073db2b
      Tassilo Horn authored
      * lisp/gnus/mm-decode.el (mm-display-external): Name buffer showing
        the attachment according to the attachment's filename, i.e. "*mm*
        <filename>" instead of " *mm*12345".
      7073db2b
    • Ken Brown's avatar
      Re-enable the timerfd interface on Cygwin · 466466db
      Ken Brown authored
      * configure.ac (emacs_cv_have_timerfd): No longer set this to "no"
      on Cygwin.  (Bug#34618)
      466466db
    • Eli Zaretskii's avatar
    • Ivan Andrus's avatar
      Mention `binary-as-unsigned' in `format' docstring (Bug#34792) · a4fa053f
      Ivan Andrus authored
      * src/src/editfns.c (format): Update docstring to mention binary-as-unsigned
      (Bug#34792)
      a4fa053f
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 3b63afd7
      Glenn Morris authored
      0589de55 (origin/emacs-26) Fix markup of fake keys in the ELisp manual
      82d4b987 Avoid errors in Auto Revert mode
      a3b19351 Mention empty strings in file name expansion, emacs lisp refe...
      a38da0d4 cc-mode.texi: Work around makeinfo alignment bug.  Fix proble...
      464ee80e Warn against recursive invocations of 'buffer-list-update-hoo...
      60b5c109 Provide more details in doc-string of 'delete-windows-on' (Bu...
      f0be0f1b Improve documentation of 'delete-windows-on'
      f1bddc78 * lisp/frame.el (make-frame-command): Doc fix.  (Bug#34715)
      28486234 Avoid undefined behavior in gdb-mi.el
      dbf18379 * lisp/window.el (fit-frame-to-buffer): Make doc-string more ...
      099ef446 Minor spelling and grammar fixes (bug#34756)
      52fd4006 Minor improvement of documentation of '(when CONDITION . SPEC)'
      f872b65b Improve documentation of 'auto-coding-functions'
      04cad5e8 Fix visiting XML files with non-Unix EOL format
      a89fabe9 Update example major mode code in Elisp manual
      
      # Conflicts:
      #	lisp/autorevert.el
      #	lisp/window.el
      3b63afd7
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Consult 'face-remapping-alist' for 'internal-border' face · 9fe7f233
      Eli Zaretskii authored
      * src/xterm.c (x_clear_under_internal_border)
      (x_after_update_window_line):
      * src/w32fns.c (x_clear_under_internal_border):
      * src/w32term.c (x_after_update_window_line): Consult
      'face-remapping-alist' when using the 'internal-border' face.
      9fe7f233
    • Alan Mackenzie's avatar
      CC Mode: Correct some incorrect regular expressions: · 91123154
      Alan Mackenzie authored
      * lisp/progmodes/cc-awk.el (c-awk-regexp-char-list-re): "^" -> "\\^".  R*x?R*
      -> \(R*x\)?R*.
      
      * lisp/progmodes/cc-mode.el (c-after-change-re-mark-unbalanced-strings): "|"
      -> "\\|".
      91123154
    • Michael Albinus's avatar
      Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723 · 21f54fee
      Michael Albinus authored
      * doc/emacs/custom.texi (Connection Variables): New node.
      
      * doc/emacs/emacs.texi (Top): Add entry for Connection Variables.
      
      * doc/emacs/misc.texi (Single Shell): Mention default value for
      remote buffers.
      
      * doc/lispref/variables.texi (Connection Local Variables):
      Describe `with-connection-local-variables' instead of
      `with-connection-local-profiles'.
      
      * doc/misc/tramp.texi (Remote processes): Refer to Emacs manual.
      Mention default connection-local settings for `shell-file-name'
      and `shell-command-switch'.
      
      * etc/NEWS: Mention connection-local variables changes.
      
      * lisp/files-x.el (hack-connection-local-variables):
      Push connection-local variables to `file-local-variables-alist'.
      (connection-local-criteria-for-default-directory): New defsubst.
      (with-connection-local-variables): Rename from
      `with-connection-local-profiles'.  Adapt implementation.
      
      * lisp/files.el (hack-local-variables):
      Call `hack-connection-local-variables'.
      
      * lisp/shell.el (shel...
      21f54fee
    • Charles A. Roelli's avatar
      Make help for file supersession more readable · c37bdd00
      Charles A. Roelli authored
      * lisp/userlock.el (ask-user-about-supersession-help): Use
      'substitute-command-keys' to show the command key for
      "\\[revert-buffer]" properly.
      c37bdd00
    • Eli Zaretskii's avatar
      Fix markup of fake keys in the ELisp manual · 0589de55
      Eli Zaretskii authored
      * doc/lispref/keymaps.texi (Menu Bar, Tool Bar): Fix markup of
      fake keys.  (Bug#34785)
      0589de55
    • Eli Zaretskii's avatar
      Avoid errors in Auto Revert mode · 82d4b987
      Eli Zaretskii authored
      * lisp/autorevert.el (auto-revert-buffers): Cancel
      auto-revert-timer only if it is non-nil.  This avoids errors
      on first invocation of Auto-Revert mode.
      82d4b987
    • Eli Zaretskii's avatar
      Import Unicode 12.0 data files · fddb915d
      Eli Zaretskii authored
      * admin/unidata/copyright.html:
      * admin/unidata/UnicodeData.txt:
      * admin/unidata/SpecialCasing.txt:
      * admin/unidata/NormalizationTest.txt:
      * admin/unidata/Blocks.txt:
      * admin/unidata/BidiMirroring.txt:
      * admin/unidata/BidiBrackets.txt: New versions from Unicode 12.0.
      * admin/unidata/unidata-gen.el (unidata-gen-file):
      * admin/unidata/blocks.awk (name2alias): Adapt to changes in
      new data files.
      * admin/notes/unicode: Update and improve instructions for
      importing a new Unicode Standard.
      
      * lisp/international/characters.el (char-width-table): Update
      lists of characters according to Unicode 12.0.
      * lisp/international/fontset.el (script-representative-chars):
      Add characters from new scripts to 'script-representative-chars'.
      (otf-script-alist): Update according to data on the MS site.
      * lisp/international/mule-cmds.el (ucs-names): Update unused
      ranges of codepoints according to Unicode 12.0.
      
      * test/lisp/international/ucs-normalize-tests.el
      (ucs-normalize-tests--failing-lines-part1...
      fddb915d
    • Martin Rudalics's avatar
      Further redesign of window change functions · 4e082ce3
      Martin Rudalics authored
      * doc/lispref/windows.texi (Window Hooks): Revise description
      of window change functions.  Add documentation for
      'window-state-change-hook' and window state change flag.
      * etc/NEWS: Update entry for window change functions.
      * src/frame.c (Fframe_window_state_change)
      (Fset_frame_window_state_change): New functions.
      * src/frame.h (struct frame): New boolean window_state_change.
      (FRAME_WINDOW_STATE_CHANGE): New macro.
      * src/window.c (window_change_record_frames): New static
      boolean.
      (window_change_record_frame): Remove function - code moved to
      window_change_record.
      (window_change_record): Record frame changes here taking
      window_change_record_frames into account.
      (run_window_change_functions_1): Set window_change_record_frames
      whenever we run one of our hooks.
      (run_window_change_functions): Run hooks also when
      FRAME_WINDOW_STATE_CHANGE has been set.  Run
      Vwindow_state_change_hook.  Leave decision whether to record
      changes for all frames to window_change_record.
      (Vwindow_state_change_functions): Update doc-string.
      (Vwindow_state_change_hook): New normal hook.
      4e082ce3
    • Alan Third's avatar
      Don't redraw the glyph on top of bar cursors · d2270d8f
      Alan Third authored
      * src/nsterm.m (ns_draw_window_cursor): Limit when we redraw the
      glyph.
      d2270d8f
    • Michael Albinus's avatar
      Mention empty strings in file name expansion, emacs lisp reference · a3b19351
      Michael Albinus authored
      * doc/lispref/files.texi (Files, File Name Expansion):
      Mention also empty strings.
      a3b19351
    • Arash Esbati's avatar
      ; Improve matching of key-val labels yet more (bug#34629) · eed51281
      Arash Esbati authored
      * lisp/textmodes/reftex-vars.el (reftex-label-regexps): Match
      explicitly for key-val labels in optional arguments of
      environments provided by "listings" and "breqn" packages and the
      macro "\ctable" from the package of the same name.
      Update docstring.
      eed51281