1. 13 Jul, 2018 1 commit
  2. 11 Jul, 2018 1 commit
    • Stefan Monnier's avatar
      * lisp/vc/diff-mode.el: Perform hunk refinement from font-lock · f8b1e40f
      Stefan Monnier authored
      Remove redundant :group arguments.
      (diff-font-lock-refine): New var.
      (diff--refine-hunk): New function, extracted from diff-refine-hunk.
      (diff-refine-hunk): Use it.
      (diff--font-lock-refine--refresh): New function.
      (diff--font-lock-refined): New function.
      (diff-font-lock-keywords): Use it.
      f8b1e40f
  3. 02 Jul, 2018 1 commit
    • John Shahid's avatar
      Optionally add argument description in minor mode DOC (bug#10754) · ee3e4323
      John Shahid authored
      Add a paragraph to minor mode's docstring documenting the mode's ARG
      usage if the supplied docstring doesn't already contain the word "ARG".
      
      * easy-mmode.el (easy-mmode--arg-docstring): New const.
      (easy-mmode--arg-docstring): New function.
      (define-minor-mode): Use them.
      
      Remove argument documentation from all minor modes.
      ee3e4323
  4. 17 Apr, 2018 1 commit
    • Juri Linkov's avatar
      Use next-error-found to set next-error-last-buffer. · 0c9e3df3
      Juri Linkov authored
      https://lists.gnu.org/archive/html/emacs-devel/2018-04/msg00207.html
      
      * lisp/simple.el (next-error-buffer): New buffer-local variable
      instead of making buffer-local next-error-last-buffer.  (Bug#20489)
      (next-error-found-function): New defcustom.
      (next-error-buffer-on-selected-frame): Use t for avoid-current arg
      of next-error-buffer-p.
      (next-error-find-buffer): Add second rule for using the current
      next-error-buffer if it's not visited by other navigation.
      (next-error, next-error-internal): Call next-error-found.
      (next-error-found): New function with body extracted mostly from
      next-error.
      
      * lisp/vc/add-log.el (change-log-goto-source-internal): New function
      with body from change-log-goto-source.
      (change-log-goto-source): Call change-log-goto-source-internal and
      next-error-found.
      (change-log-next-error): Call change-log-goto-source-internal
      instead of change-log-goto-source.
      (change-log-mode): Don't set next-error-last-buffer.  (Bug#28864)
      
      * lisp/vc/diff-mode.el (diff-goto-source): Call next-error-found.
      
      * lisp/progmodes/xref.el (xref-goto-xref): Call next-error-found.
      
      * lisp/replace.el (occur-mode-goto-occurrence)
      (occur-mode-goto-occurrence-other-window)
      (occur-mode-display-occurrence): Call next-error-found.
      (occur-next-error): Remove unnecessary with-current-buffer.
      (Bug#27362, bug#30646)
      0c9e3df3
  5. 18 Feb, 2018 1 commit
  6. 01 Jan, 2018 1 commit
  7. 15 Dec, 2017 1 commit
    • Glenn Morris's avatar
      Small fixes prompted by make check-declare · 780407cf
      Glenn Morris authored
      * lisp/frame.el (x-focus-frame): Update declaration.
      (ns-mouse-absolute-pixel-position): Fix declaration.
      * lisp/vc/diff-mode.el (diff-refine-hunk):
      Use smerge-refine-regions rather than obsolete alias.
      (smerge-refine-subst): Remove declaration, no longer relevant.
      780407cf
  8. 26 Nov, 2017 1 commit
  9. 02 Oct, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to HTTP for gnu.org · 5172fa02
      Paul Eggert authored
      This fixes some URLs I omitted from my previous pass,
      notably those in lists.gnu.org.  Although lists.gnu.org
      does not yet support TLS 1.1, TLS 1.0 is better than nothing.
      * lisp/erc/erc.el (erc-official-location):
      * lisp/mail/emacsbug.el (report-emacs-bug):
      Use https:, not http:.
      5172fa02
  10. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  11. 27 Aug, 2017 1 commit
  12. 21 Mar, 2017 1 commit
    • Tino Calancha's avatar
      epatch: Save right backups in Git multipatches · abe731ee
      Tino Calancha authored
      Multipatches on N Git files save wrong backups for
      N-1 files; only the last one has a correct backup (Bug#26084).
      * lisp/vc/diff-mode.el (diff-file-junk-re): Add 'Prereq: '
      * lisp/vc/ediff-ptch.el (ediff-map-patch-buffer): Use 'diff-file-junk-re'.
      * test/lisp/vc/ediff-ptch-tests.el (ediff-ptch-test-bug25010):
      Rename from ibuffer-test-bug25010.
      (ediff-ptch-test-bug26084): New test.
      abe731ee
  13. 02 Feb, 2017 2 commits
  14. 31 Jan, 2017 1 commit
  15. 29 Jan, 2017 1 commit
    • Tino Calancha's avatar
      Fix Bug#25524 · 0073223c
      Tino Calancha authored
      * lisp/vc/diff-mode.el (diff-beginning-of-hunk):
      Return position at the beginning off the hunk.
      (diff-file-junk-re): Add SVN keywords.
      0073223c
  16. 21 Jan, 2017 2 commits
    • Tino Calancha's avatar
      diff-hunk-kill independent of point inside headers · e5e42cef
      Tino Calancha authored
      Make diff-apply-hunk and diff-hunk-kill independent of the point
      position in a diff header (Bug#17544).
      This change allows to apply hunks in order.  It also makes possible to
      press M-k repeatedly to kill hunks in the order they appear in the buffer.
      See discussion on #Bug25105.
      * lisp/vc/diff-mode.el (diff-file-junk-re):
      Move definition before it's used.
      (diff--at-diff-header-p): New predicate; return non-nil when point
      is inside a hunk header, a file header, or within a line
      matching diff-file-junk-re.
      (diff-beginning-of-hunk): Use it.
      Check if the point is inside a diff header, in the middle of a hunk,
      or before the first hunk.
      (diff-apply-hunk): Call diff-beginning-of-hunk with non-nil arg
      before apply the hunk.
      (diff-hunk-kill, diff-file-kill):
      Call diff-beginning-of-hunk with non-nil arg after kill the hunks.
      (diff-post-command-hook): Call diff-beginning-of-hunk with non-nil argument.
      e5e42cef
    • Tino Calancha's avatar
      ; Revert "Improve diff-mode navigation/manipulation" · 1508b538
      Tino Calancha authored
      This reverts commit 2c8a7e50.
      This change causes regressions:
      https://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00738.html
      The following related commits are reverted as well:
      61c6a10e
      a283d655
      6b6abe0d
      e5ef59b8
      73349822
      
      Fixes: debbugs:25105, 25400.
      1508b538
  17. 19 Jan, 2017 1 commit
  18. 01 Jan, 2017 1 commit
  19. 25 Dec, 2016 2 commits
  20. 22 Dec, 2016 1 commit
  21. 29 Nov, 2016 3 commits
    • Noam Postavsky's avatar
      Fix previous commit · a283d655
      Noam Postavsky authored
      * lisp/vc/diff-mode.el (diff-refine-hunk): Make sure to go to beginning
      of hunk before calling `diff-hunk-style'.
      a283d655
    • Noam Postavsky's avatar
    • Dima Kogan's avatar
      Improve diff-mode navigation/manipulation · 2c8a7e50
      Dima Kogan authored
      This is Bug #17544.
      
      Navigation and use of diff buffers had several annoying corner cases
      that this patch fixes.  These corner cases were largely due to
      inconsistent treatment of file headers.  Say you have a diff such as
      this:
      
       --- aaa
       +++ bbb
       @@ -52,7 +52,7 @@
       hunk1
       @@ -74,7 +74,7 @@
       hunk2
       --- ccc
       +++ ddd
       @@ -608,6 +608,6 @@
       hunk3
       @@ -654,7 +654,7 @@
       hunk4
      
      The file headers here are the '---' and '+++' lines.  With the point on
      such a line, hunk operations would sometimes refer to the next hunk and
      sometimes to the previous hunk.  Most of the time it would be the
      previous hunk, which is not what the user would expect.  This patch
      consistently treats such headers as the next hunk.  So with this patch,
      if the point is on the '--- ccc' line, the point is seen as referring to
      hunk3.
      
      Specific behaviors this fixes are:
      
      1. It should be possible to place the point in the middle of a diff
      buffer, and press M-k repeatedly to kill hunks in the order they appear
      in the buffer.  With the point on hunk1, M-k M-k would kill hunk1 then
      hunk2.  With the point on hunk3, it would kill hunk3 then hunk4; this is
      fine.  However, with the point on hunk2, it'd kill hunk2 then hunk1.
      This is fixed by this patch.
      
      2. Similarly, it should be possible to apply hunks in order.  Previously
      with the point at the start, C-c C-a would apply the hunk1, then move
      the point to the first @@ header, and thus C-c C-a would try to apply
      the same hunk again.
      
      * lisp/vc/diff-mode.el (diff--wrap-navigation): New function to add better
      navigation logic to diff-{hunk,file}-{next,prev}.
      (diff-hunk-next, diff-hunk-prev):
      (diff-file-next, diff-file-prev): Better navigation logic if
      skip-hunk-start is true, which happens when called interactively.
      (diff-bounds-of-hunk, diff-find-source-location):
      (diff-apply-hunk, diff-current-defun, diff-refine-hunk): Small tweaks to
      improve hunk navigation.
      2c8a7e50
  22. 27 Jun, 2016 1 commit
  23. 23 Jun, 2016 1 commit
    • Mark Oteiza's avatar
      Remove some face aliases obsoleted in 22.1 · c430f7e2
      Mark Oteiza authored
      * lisp/faces.el (modeline-inactive, modeline-highlight, modeline-buffer-id):
      * lisp/hilit-chg.el (highlight-changes-face, highlight-changes-delete-face):
      * lisp/info.el (Info-title-1-face, Info-title-2-face, Info-title-3-face,
      Info-title-4-face, info-menu-5):
      * lisp/obsolete/old-whitespace.el (whitespace-highlight-face):
      * lisp/paren.el (show-paren-match-face, show-paren-mismatch-face):
      * lisp/progmodes/make-mode.el (makefile-space-face):
      * lisp/textmodes/texinfo.el (texinfo-heading-face): Remove.
      (texinfo-font-lock-keywords): Use texinfo-heading face.
      * lisp/vc/add-log.el (change-log-date-face, change-log-name-face,
      change-log-email-face, change-log-file-face, change-log-list-face,
      change-log-conditionals-face, change-log-function-face,
      change-log-acknowledgement-face):
      * lisp/vc/diff-mode.el (diff-header-face, diff-file-header-face,
      diff-index-face, diff-hunk-header-face, diff-removed-face, diff-added-face,
      diff-changed-face, diff-function-face, diff-context-face,
      diff-nonexistent-face): Remove.
      (diff-use-changed-face, diff-font-lock-keywords): Use non-obsolete face
      symbols.
      (diff-hunk-file-names): Fix comment.
      (diff-refine-change): Remove.
      (diff-refine-removed, diff-refine-added, diff-refine-hunk): Use
      non-obsolete face.
      * lisp/vc/log-view.el (log-view-file-face, log-view-message-face): Remove.
      (log-view-font-lock-keywords): Use non-obsolete face names.
      * lisp/vc/pcvs-info.el (cvs-header-face, cvs-filename-face, cvs-unknown-face,
      cvs-handled-face, cvs-need-action-face, cvs-marked-face, cvs-msg-face):
      * lisp/wid-edit.el (widget-documentation-face, widget-button-face,
      widget-field-face, widget-single-line-field-face, widget-inactive-face,
      widget-button-pressed-face):
      * lisp/woman.el (woman-italic-face, woman-bold-face, woman-unknown-face,
      woman-addition-face): Remove.
      c430f7e2
  24. 01 Jan, 2016 1 commit
  25. 14 Nov, 2015 1 commit
    • Dmitry Gutov's avatar
      ; Fix warnings · 138ad3d9
      Dmitry Gutov authored
      * lisp/vc/diff-mode.el (diff-kill-applied-hunks):
      Fix unused variable warnings.
      138ad3d9
  26. 17 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Backslash cleanup in Elisp source files · 284c470e
      Paul Eggert authored
      This patch should not change behavior.  It typically omits backslashes
      where they are redundant (e.g., in the string literal "^\$").
      In a few places, insert backslashes where they make regular
      expressions clearer: e.g., replace "^\*" (equivalent to "^*") with
      "^\\*", which has the same effect as a regular expression.
      Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs,
      and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with
      RCS IDs, as that makes it clearer that the backslash is intended.
      284c470e
  27. 29 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Fix minor text quoting in calc, calendar, vc · 5e63c842
      Paul Eggert authored
      * lisp/calc/calc-ext.el (calc-shift-Z-prefix-help):
      * lisp/calc/calc-help.el (calc-j-prefix-help):
      * lisp/calc/calc-misc.el (calc-help):
      * lisp/calc/calc.el (calc-algebraic-mode, calc-mode):
      Escape an apostrophe in a docstring.
      * lisp/calc/calc-forms.el (calc-hms-notation):
      * lisp/calc/calc-mode.el (calc-display-raw, calc-algebraic-mode):
      Escape an apostrophe in a diagnostic.
      * lisp/calc/calc-misc.el (calc-help):
      * lisp/calendar/diary-lib.el (diary-include-files):
      * lisp/calendar/todo-mode.el (todo-prefix, todo-item-mark):
      * lisp/vc/diff-mode.el (diff-delete-trailing-whitespace):
      * lisp/vc/ediff-diff.el (ediff-same-contents):
      * lisp/vc/ediff-merg.el (ediff-re-merge):
      * lisp/vc/ediff-ptch.el (ediff-patch-file-internal):
      * lisp/vc/ediff-util.el (ediff-test-save-region)
      (ediff-status-info):
      * lisp/vc/ediff.el (ediff-merge-revisions)
      (ediff-merge-revisions-with-ancestor):
      * lisp/vc/pcvs.el (cvs-mode-checkout, cvs-vc-command-advice):
      * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
      Respect text quoting style in doc string or diagnostic.
      * lisp/calc/calc-prog.el (calc-kbd-push, calc-kbd-pop):
      * lisp/vc/add-log.el (change-log-goto-source):
      Avoid double-formatting.
      * lisp/vc/ediff-init.el (format-message):
      New backward-compatibility alias.
      5e63c842
  28. 09 Apr, 2015 1 commit
  29. 01 Jan, 2015 2 commits
  30. 01 Dec, 2014 1 commit
  31. 21 Oct, 2014 1 commit
    • Juri Linkov's avatar
      * lisp/vc/diff-mode.el (diff-refine-changed): Rename from · 4ede14b9
      Juri Linkov authored
      `diff-refine-change' for consistency with `diff-changed'.
      (diff-refine-change): Add obsolete face alias. 
      * lisp/vc/smerge-mode.el (smerge-refined-changed): Rename from
      `smerge-refined-change'.
      (smerge-refined-change): Add obsolete face alias.
      [Backport]
      
      Fixes: debbugs:10181
      4ede14b9
  32. 29 Sep, 2014 1 commit
  33. 16 Aug, 2014 1 commit
  34. 18 Jun, 2014 1 commit