1. 28 Oct, 2017 1 commit
    • Glenn Morris's avatar
      Fix some doc typos · e6b4e5ff
      Glenn Morris authored
      * lisp/calendar/todo-mode.el (todo-next-item)
      (todo-previous-item, todo-toggle-item-header):
      * lisp/window.el (move-to-window-group-line):
      * src/editfns.c (Fformat):
      * test/lisp/calendar/todo-mode-tests.el (todo-test-move-item05):
      Fix doc typos.
      
      ; And in some comments.
      e6b4e5ff
  2. 27 Oct, 2017 7 commits
    • Eli Zaretskii's avatar
    • Tak Kunihiro's avatar
      Improve pixel-scroll-mode · 1bda71ec
      Tak Kunihiro authored
      Scroll vertically by number of pixels returned by
      'frame-char-height' with or without horizontally scrolled.
      (Bug#28922)
      
      * lisp/pixel-scroll.el (pixel-resolution-fine-flag): When t, scroll
      by number of pixels returned by 'frame-char-height'.
      (pixel-scroll-up): Scroll by 'frame-char-height'. Fix algorithm to
      move cursor to avoid unexpected jump.
      (pixel-scroll-down): Scroll by 'frame-char-height'.
      (pixel-bob-at-top-p): Consider number of pixels that is about to
      scroll.
      (pixel-posn-y-at-point): Consider existence of an overlay string.
      Return nil when horizontally scrolled.
      (pixel-point-at-top-p): Consider number of pixels that is about to
      scroll. Use different algorithm when horizontally scrolled.
      (pixel-point-at-bottom-p): Consider number of pixels that is about
      to scroll. Return nil when horizontally scrolled.
      (pixel-scroll-pixel-down): Move cursor when horizontally scrolled.
      (pixel--whistlestop-line-up): Change cosmetics and move cursor when
      horizontally scrolled.
      (pixel-line-height): Call 'pixel-visual-line-height' instead of
      'line-pixel-height'.
      (pixel-visual-line-height): New function to return height in pixels
      of text line where cursor is with or without horizontally scrolled,
      considering response of display engine.
      (pixel-visible-pos-in-window): New function to return position of
      a char shown on text line where cursor is on screen with or without
      horizontally scrolled.
      1bda71ec
    • Daniel Lublin's avatar
      Support Certification Authority Authorization in dns-mode.el · 196106d3
      Daniel Lublin authored
      * lisp/textmodes/dns-mode.el (dns-mode-types): Add "CAA".
      (Bug#28911)
      
      Copyright-paperwork-exempt: yes
      196106d3
    • Ulf Jasper's avatar
      Fix documentation of `newsticker-new-item-functions' (bug#29023). · 933b3a3e
      Ulf Jasper authored
      * lisp/net/newst-backend.el (newsticker-new-item-functions),
      (newsticker-new-item-functions-sample),
      (newsticker-download-enclosures): Fix docstring, rename
      variable feed to feedname (bug#29023).
      
      * doc/misc/newsticker.texi (Automatic Processing)
      (Automatic Processing): Fix documentation of
      `newsticker-new-item-functions' (bug#29023).
      933b3a3e
    • Tino Calancha's avatar
      Require seq in rmc.el · 7f089aa5
      Tino Calancha authored
      * lisp/emacs-lisp/rmc.el: Require seq (Bug#28975).
      * test/lisp/emacs-lisp/rmc-tests.el (test-read-multiple-choice): Add test.
      7f089aa5
    • Katsumi Yamaoka's avatar
      Make an example code introduced in the Gnus info work (bug#29008) · 53aaad1d
      Katsumi Yamaoka authored
      You can find it in the bottom of (info "(gnus)Foreign Groups").
      NOTE: this change is worth being merged to the trunk.
      
      * lisp/gnus/gnus-group.el (gnus-read-ephemeral-emacs-bug-group):
      Allow a string for bug# (bug#29008).
      53aaad1d
    • Katsumi Yamaoka's avatar
      Enable gnus-read-ephemeral-* to run multiple times (bug#29008) · 7b29db22
      Katsumi Yamaoka authored
      NOTE: *DO NOT* merge this change to the trunk.
      
      * lisp/gnus/gnus-group.el (gnus-read-ephemeral-gmane-group)
      (gnus-read-ephemeral-bug-group): Make it work for any number of times
      for the case `url-automatic-caching' is set (bug#29008).
      7b29db22
  3. 26 Oct, 2017 2 commits
    • Alan Mackenzie's avatar
      Fix another "wrong side of point" error in CC Mode. · ad68bbd0
      Alan Mackenzie authored
      This fixes (a follow-up to) bug #28850.
      A internal generated form for scanning text to fontify had a LIMIT parameter.
      It also locally bound LIMIT to a value possibly beyond the original LIMIT,
      allowing point to move beyond the original LIMIT, and to create the wrong side
      error.  Fix it by checking point is not beyond LIMIT in the outer context
      before using it.
      
      * lisp/progmodes/cc-fonts.el (c-make-font-lock-search-form): Add a new
      parameter CHECK-POINT which, when non-nil, directs the function to generate a
      check on point.
      (c-make-font-lock-context-search-function): Invoke the above function with new
      argument value t.
      ad68bbd0
    • Michael Albinus's avatar
      Fix Bug#28959 · 646e56e1
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-find-backup-file-name):
      Use `tramp-tramp-file-p' rather than `tramp-file-name-p'.  Add
      hop to backup file name.  (Bug#28959)
      
      * test/lisp/net/tramp-tests.el (tramp-test34-find-backup-file-name):
      New test.
      (tramp-test35-make-nearby-temp-file)
      (tramp-test36-special-characters)
      (tramp-test36-special-characters-with-stat)
      (tramp-test36-special-characters-with-perl)
      (tramp-test36-special-characters-with-ls, tramp-test37-utf8)
      (tramp-test37-utf8-with-stat, tramp-test37-utf8-with-perl)
      (tramp-test37-utf8-with-ls, tramp-test38-file-system-info)
      (tramp-test39-asynchronous-requests)
      (tramp-test40-recursive-load, tramp-test41-remote-load-path)
      (tramp-test42-delay-load, tramp-test43-unload): Rename.
      646e56e1
  4. 25 Oct, 2017 4 commits
    • Dmitry Gutov's avatar
      Fix two js indentation problems · e562356c
      Dmitry Gutov authored
      Fix intentation problems reported in
      https://github.com/mooz/js2-mode/issues/463.
      * lisp/progmodes/js.el (js--continued-expression-p):
      Check syntax state after /.
      (js--multi-line-declaration-indentation):
      Check syntax state before "const".
      e562356c
    • Alan Mackenzie's avatar
      Fix a "wrong side of point" error in CC Mode. Fixes bug #28850. · 46540a1c
      Alan Mackenzie authored
      The cause was a scanning over a bracket pair taking us beyond the supplied
      LIMIT parameter in c-forward-declarator.
      
      * lisp/progmodes/cc-engine.el (c-forward-declarator): Add three checks (<
      (point) limit) whilst dealing with tokens after the declared identifier.
      
      * lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Don't supply a LIMIT
      argument to `c-forward-declarator' (twice), since we want to fontify up till
      the end of a declarator, not an arbitrary jit-lock chunk end.
      46540a1c
    • Stefan Monnier's avatar
      Fix autoload of flymake from elisp-mode during bootstrap (bug#28994) · 57ca4091
      Stefan Monnier authored
      * lisp/loadup.el: add `progmodes` to load-path so we can find flymake.el.
      * lisp/kmacro.el: Require `replace` since we use query-replace-map.
      * lisp/replace.el: Require `text-mode` since we use text-mode-map.
      57ca4091
    • Michael Albinus's avatar
      Fix Bug#28982 · 761c6307
      Michael Albinus authored
      * admin/MAINTAINERS: Add test/lisp/url/url-tramp-tests.el.
      
      * lisp/url/url-tramp.el (url-tramp-convert-url-to-tramp)
      (url-tramp-convert-tramp-to-url): Adapt to recent Tramp changes.
      
      * test/lisp/url/url-tramp-tests.el: New file.  (Bug#28982)
      761c6307
  5. 24 Oct, 2017 3 commits
  6. 23 Oct, 2017 3 commits
  7. 22 Oct, 2017 4 commits
    • Alexander Gramiak's avatar
      Don't fill keywords after Emacs Lisp docstring · a012ec76
      Alexander Gramiak authored
      This approach does mean that keywords that have spaces before them
      inside of docstrings aren't filled, but I think this is should be fine
      until Bug#28937 is fixed.
      
      * lisp/emacs-lisp/lisp-mode.el (lisp-fill-paragraph): Add a colon to
      paragraph-start unconditionally, but require that it follows at least
      one space.  (Bug#24622)
      * test/lisp/emacs-lisp/lisp-tests.el: New tests for Bug#24622 and
      Bug#7751.
      a012ec76
    • Alan Mackenzie's avatar
      Refactor c-forward-token-2 with new function c-forward-over-token-and-ws. · b7c4aa95
      Alan Mackenzie authored
      Use the new function directly in several places where c-forward-token-2
      wouldn't move over the last token in the buffer.  This caused an infinite loop
      in c-restore-<>-properties.
      
      * lisp/progmodes/cc-engine.el (c-forward-over-token-and-ws): New function,
      extracted from c-forward-token-2.
      (c-forward-token-2): Refactor, calling the new function.
      (c-restore-<>-properties): Fix infinite loop.
      (c-forward-<>-arglist-recur, c-in-knr-argdecl)
      (c-looking-at-or-maybe-in-bracelist): Call the new function directly in place
      of c-forward-token-2.
      
      * lisp/progmodes/cc-cmds.el (c-defun-name) Call the new function directly in
      place of c-forward-token-2.
      
      * lisp/progmodes/cc-fonts.el (c-font-lock-enclosing-decls): Call the new
      function directly in place of c-forward-token-2.
      b7c4aa95
    • Paul Eggert's avatar
      Avoid unnecessary rounding errors in timestamps · 3aee7be6
      Paul Eggert authored
      Avoid the rounding errors of float-time when it’s easy.  E.g.,
      replace (< (float-time a) (float-time b)) with (time-less-p a b).
      * lisp/desktop.el (desktop-save):
      * lisp/ecomplete.el (ecomplete-add-item):
      * lisp/epg.el (epg-wait-for-completion):
      * lisp/files.el (dir-locals-find-file, dir-locals-read-from-dir):
      * lisp/image-dired.el (image-dired-get-thumbnail-image)
      (image-dired-create-thumb-1):
      * lisp/info.el (info-insert-file-contents):
      * lisp/ls-lisp.el (ls-lisp-format-time):
      * lisp/net/ange-ftp.el (ange-ftp-file-newer-than-file-p)
      (ange-ftp-verify-visited-file-modtime):
      * lisp/net/rcirc.el (rcirc-ctcp-sender-PING):
      * lisp/textmodes/remember.el (remember-store-in-mailbox):
      * lisp/url/url-cookie.el (url-cookie-expired-p):
      Bypass float-time to avoid rounding errors.
      
      * lisp/files.el (dir-locals-find-file):
      3aee7be6
    • Paul Eggert's avatar
      Fix xdg timestamp error on 32-bit Emacs · 2bfa4285
      Paul Eggert authored
      * lisp/xdg.el (xdg-thumb-mtime): Return an Emacs timestamp,
      not an integer.  This avoids signaling an error on 32-bit
      Emacs, where timestamps typically do not fit into fixnums
      (Bug#28921).
      2bfa4285
  8. 21 Oct, 2017 13 commits
    • Noam Postavsky's avatar
      Another fix for unsafe directory error message (Bug#865) · d719ea6a
      Noam Postavsky authored
      * lisp/server.el (server-ensure-safe-dir): Put file owner's uid, not
      current user's for the wrong owner case.  Show expanded file name in
      error message.
      d719ea6a
    • Noam Postavsky's avatar
      Handle https url for debbugs mbox (Bug#28831) · b060e091
      Noam Postavsky authored
      In 2017-09-13 "Prefer HTTPS to FTP and HTTP in documentation",
      gnus-bug-group-download-format-alist was updated to use https for the
      debbugs.gnu.org mbox links, but gnus-read-ephemeral-bug-group assumed
      http links.
      * lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group): Use
      url-parse functions to get the host name, instead of ad-hoc regexps.
      b060e091
    • Noam Postavsky's avatar
      Ignore string properties when saving eshell history (Bug#28700) · 9e4265ef
      Noam Postavsky authored
      * lisp/eshell/em-hist.el (eshell-write-history): Remove properties
      before inserting history strings.
      (eshell-read-history): Remove obsolete comment.
      * test/lisp/eshell/em-hist-tests.el (eshell-write-readonly-history):
      New test.
      9e4265ef
    • Michael Albinus's avatar
      Fix Bug#28889 · 0f286ca8
      Michael Albinus authored
      * lisp/net/tramp.el: Change autoload cookie to tramp-autoload cookie.
      (tramp-completion-file-name-regexp-default)
      (tramp-completion-file-name-handler-alist)
      (tramp-completion-file-name-handler): Remove autoload cookie.
      (tramp-initial-completion-file-name-regexp): Remove.
      (tramp-autoload-file-name-regexp): New defconst.
      (tramp-register-autoload-file-name-handlers): Use it.
      (with-parsed-tramp-file-name): Adapt docstring.  Compute
      `tramp-file-name' slots.  (Bug#28889)
      0f286ca8
    • Glenn Morris's avatar
      Update describe-function for recent Fdocumentation change · 888e51f2
      Glenn Morris authored
      * lisp/help-fns.el (describe-function-1):
      Handle Fdocumentation returning either void or invalid.
      888e51f2
    • Charles A. Roelli's avatar
      Make flymake's mouse-wheel interaction portable (Bug#28732) · 75bb4827
      Charles A. Roelli authored
      * lisp/progmodes/flymake.el (flymake--mode-line-format): Bind
      'mouse-wheel-down-event' and 'mouse-wheel-up-event' instead of
      'mouse-4' and 'mouse-5'.  Update the tooltip text accordingly, and
      remove a stray newline in it.
      75bb4827
    • Nick Helm's avatar
      Prevent eldoc from changing the mode line · 035d7ac7
      Nick Helm authored
      * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Don't
      change the mode line if it is not displayed.  (Bug#28697)
      035d7ac7
    • Eli Zaretskii's avatar
      Fix doc strings in simple.el · c9d71b31
      Eli Zaretskii authored
      * lisp/simple.el (shell-command-saved-pos)
      (region-extract-function, region-bounds): Doc fixes.  (Bug#28609)
      c9d71b31
    • Phil Sainty's avatar
      Avoid creating inconsistent buffer states in term-char-mode · 0d8e4f45
      Phil Sainty authored
      * lisp/term.el (term-mode, term-char-mode, term-line-mode)
      (term-emulate-terminal): Make buffer read-only in 'term-char-mode',
      except for the process filter's output.  Use 'read-only-mode-hook' to
      track and restore the user-set state of 'buffer-read-only' for
      'term-line-mode'.  (Bug#24837)
      (term-char-mode-buffer-read-only): New user option.
      (term-line-mode-buffer-read-only): New buffer-local variable.
      (term-line-mode-buffer-read-only-update): New function.
      (term-char-mode, term-line-mode): Use 'term-set-goto-process-mark'
      in pre-command-hook, and 'term-goto-process-mark-maybe' in
      post-command-hook to counter-act unexpected changes to point when
      using 'term-char-mode'.
      (term-char-mode-point-at-process-mark): New user option.
      (term-goto-process-mark): New buffer-local variable.
      (term-set-goto-process-mark): New function.
      (term-goto-process-mark-maybe): New function.
      (term-process-mark): New function.
      
      * etc/NEWS: Mention the new behavior and user options.
      0d8e4f45
    • Bahodir Mansurov's avatar
      New input method 'usbek-cyrillic' · 79d57f4b
      Bahodir Mansurov authored
      * lisp/leim/quail/cyrillic.el (uzbek-cyrillic): New input method.
      (Bug#28848)
      
      * etc/NEWS: Mention the new input method.
      
      Copyright-paperwork-exempt: yes
      79d57f4b
    • Paul Eggert's avatar
      Simplify make-progress-reporter vs float-time · 868eb74f
      Paul Eggert authored
      * lisp/subr.el (make-progress-reporter): Remove no-longer-needed
      doc and code for the case where float-time is not supported,
      since float-time is always present now.
      868eb74f
    • Paul Eggert's avatar
      Fix two more minor Gnus typos · 83db9a1b
      Paul Eggert authored
      * lisp/gnus/mail-source.el (mail-source-delete-old-incoming):
      The old code had two minor bugs: first, it multiplied by 1/65536
      instead of by 1/86400.  Second, it called current-time twice and
      glued part of the two results together, resulting in a race.
      Fix both bugs by simplifying the code and using
      time-to-number-of-days.
      83db9a1b
    • Paul Eggert's avatar
      Fix two minor Gnus typos · e655946c
      Paul Eggert authored
      * lisp/gnus/gnus-sum.el (gnus-summary-import-article):
      Remove unused local, and fix use of local that was never assigned to.
      e655946c
  9. 20 Oct, 2017 3 commits
    • Stefan Monnier's avatar
      * lisp/help-fns.el (describe-function-1): · ef3d8505
      Stefan Monnier authored
      Fix help-fns-test-dangling-alias.  (Bug#28918)
      
      (cherry picked from commit e1d42f8f)
      ef3d8505
    • Glenn Morris's avatar
      Fix flymake's loading of subr-x · 11bd8aa2
      Glenn Morris authored
      * lisp/progmodes/flymake.el, test/lisp/progmodes/flymake-tests.el:
      No need to load subr-x at run-time.
      11bd8aa2
    • Michael Albinus's avatar
      Fix Bug#28896 · b500e06f
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-rename-file):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file): Handle FILENAME
      being a directory.  (Bug#28896)
      
      * test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
      (tramp-test12-rename-file): Test also FILENAME being a directory.
      b500e06f