1. 01 Jan, 2020 1 commit
  2. 17 Aug, 2019 1 commit
  3. 26 Jun, 2019 2 commits
  4. 20 May, 2019 1 commit
  5. 10 May, 2019 1 commit
    • Alan Mackenzie's avatar
      Make uncomment-region remove obtrusive spaces before tabs. · a8d17f35
      Alan Mackenzie authored
      These spaces were typically inserted earlier by comment-region.  This patch
      makes these two complementary functions closer to inverses.
      
      * lisp/newcomment.el (uncomment-region-default-1): Remove spaces before a tab
      where the comment opener has just been removed.
      a8d17f35
  6. 11 Apr, 2019 1 commit
  7. 04 Apr, 2019 1 commit
  8. 01 Jan, 2019 1 commit
  9. 02 Jun, 2018 1 commit
  10. 03 Apr, 2018 1 commit
    • Alan Mackenzie's avatar
      Put combine-change-calls around comment-region and uncomment-region · eb0d10d5
      Alan Mackenzie authored
      * lisp/newcomment.el (comment-combine-change-calls): New buffer local
      variable.
      (uncomment-region-default-1, comment-region-default-1): Functions renamed from
      uncomment-region-default and comment-region-default.
      (uncomment-region-default, comment-region-default): New functions, which call
      the above either enclosed in combine-change-calls or not.
      eb0d10d5
  11. 01 Jan, 2018 1 commit
  12. 07 Nov, 2017 1 commit
    • Antonin Houska's avatar
      Handle single-line comments correctly (Bug#26049) · db949166
      Antonin Houska authored
      * lisp/newcomment.el (comment-region-internal): Previously, the
      comment text had to contain at least one line break character for the
      ending extra line to be added.  Make the behavior more consistent by
      looking for end of line instead.
      (comment-region-internal): Remove trailing white space from the
      comment's initial line.
      
      Copyright-paperwork-exempt: yes
      db949166
  13. 23 Sep, 2017 1 commit
  14. 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
  15. 09 Aug, 2017 1 commit
    • Tom Tromey's avatar
      Fix auto-filling regression · 81656add
      Tom Tromey authored
      Bug#28003
      * lisp/newcomment.el (comment-indent-new-line): Check
      comment-auto-fill-only-comments.  Reverts earlier change.
      * lisp/simple.el (internal-auto-fill): Call auto-fill-function, not
      do-auto-fill.
      81656add
  16. 06 Aug, 2017 1 commit
    • Tom Tromey's avatar
      Respect comment-auto-fill-only-comments · 9b463fa8
      Tom Tromey authored
      Respect comment-auto-fill-only-comments when auto-filling and a
      comment syntax is defined.
      
      * lisp/newcomment.el (comment-indent-new-line): Do not check
      comment-auto-fill-only-comments.
      * lisp/simple.el (internal-auto-fill): New defun.
      * src/cmds.c (internal_self_insert): Call Qinternal_auto_fill, not
      auto_fill_function.
      (syms_of_cmds): Define Qinternal_auto_fill.
      9b463fa8
  17. 06 Jul, 2017 1 commit
    • Noam Postavsky's avatar
      Allow comment-indent-functions to specify exact indentation (Bug#385) · e832febf
      Noam Postavsky authored
      * lisp/newcomment.el (comment-choose-indent): Interpret a cons of two
      integers as indicating a range of acceptable indentation.
      (comment-indent): Don't apply `comment-inline-offset',
      `comment-choose-indent' already does that.
      (comment-indent-function):
      * doc/emacs/programs.texi (Options for Comments): Document new
      acceptable return values.
      * etc/NEWS: Announce it.
      e832febf
  18. 05 Jul, 2017 1 commit
    • Noam Postavsky's avatar
      Fix infloop in uncomment-region-default (Bug#27112) · 2a9d7394
      Noam Postavsky authored
      When `comment-continue' has only blanks, `comment-padright' produces a
      regexp that matches the empty string, so `uncomment-region-default'
      will loop infinitely.
      * lisp/newcomment.el (comment-padright): Only return a regexp if STR
      has nonblank characters.
      2a9d7394
  19. 15 Feb, 2017 1 commit
    • Noam Postavsky's avatar
      Test comment-multi-line = nil auto fill case too · 0a646662
      Noam Postavsky authored
      * test/lisp/progmodes/js-tests.el (js-mode-auto-fill): Test with
      `comment-multi-line' both nil and non-nil.
      * lisp/newcomment.el (comment-multi-line): Mark safe if it's a
      boolean.
      * etc/NEWS: Mention that `js-mode' now sets `comment-multi-line'.
      0a646662
  20. 01 Jan, 2017 1 commit
  21. 22 Mar, 2016 1 commit
  22. 15 Jan, 2016 1 commit
  23. 01 Jan, 2016 1 commit
  24. 23 Sep, 2015 2 commits
  25. 22 Sep, 2015 1 commit
    • Stefan Monnier's avatar
      * prolog.el: Fix indentation of empty line · 6c33e7ad
      Stefan Monnier authored
      * lisp/emacs-lisp/smie.el (smie-rules-function): Document new
      `empty-line-token' element.
      (smie-indent-empty-line): New function.
      (smie-indent-functions): Add it.
      
      * lisp/progmodes/prolog.el (prolog-smie-rules): Fix :list-intro behavior
      and use the new `empty-line-token' element (bug#21526).
      (prolog-mode-variables): Fix comment-start-skip setting to match
      comment-start.
      
      * test/indent/prolog.prolog: Add nested indentation tests.
      
      * lisp/newcomment.el (comment-normalize-vars): Fix default value of
      comment-start-skip not to misuse submatch 1.
      6c33e7ad
  26. 01 Sep, 2015 1 commit
  27. 25 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Prefer directed to neutral quotes · 875a5d0e
      Paul Eggert authored
      Prefer directed to neutral quotes in docstings and diagnostics.
      In docstrings, escape apostrophes that would otherwise be translated
      to curved quotes using the newer, simpler rules.
      * admin/unidata/unidata-gen.el (unidata-gen-table):
      * lisp/align.el (align-region):
      * lisp/allout.el (allout-mode, allout-solicit-alternate-bullet):
      * lisp/bookmark.el (bookmark-default-annotation-text):
      * lisp/calc/calc-aent.el (math-read-if, math-read-factor):
      * lisp/calc/calc-lang.el (math-read-giac-subscr)
      (math-read-math-subscr):
      * lisp/calc/calc-misc.el (report-calc-bug):
      * lisp/calc/calc-prog.el (calc-fix-token-name)
      (calc-read-parse-table-part):
      * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
      * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
      * lisp/dabbrev.el (dabbrev-expand):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/emacs-lisp/elint.el (elint-get-top-forms):
      * lisp/emacs-lisp/lisp-mnt.el (lm-verify):
      * lisp/emulation/viper-cmd.el (viper-toggle-search-style):
      * lisp/erc/erc-button.el (erc-nick-popup):
      * lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login):
      * lisp/eshell/em-dirs.el (eshell/cd):
      * lisp/eshell/em-glob.el (eshell-glob-regexp):
      * lisp/eshell/em-pred.el (eshell-parse-modifiers):
      * lisp/eshell/esh-arg.el (eshell-parse-arguments):
      * lisp/eshell/esh-opt.el (eshell-show-usage):
      * lisp/files-x.el (modify-file-local-variable):
      * lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer)
      (filesets-update-pre010505):
      * lisp/find-cmd.el (find-generic, find-to-string):
      * lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
      * lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
      (gnus-agent-fetch-headers):
      * lisp/gnus/gnus-int.el (gnus-start-news-server):
      * lisp/gnus/gnus-registry.el:
      (gnus-registry--split-fancy-with-parent-internal):
      * lisp/gnus/gnus-score.el (gnus-summary-increase-score):
      * lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
      * lisp/gnus/gnus-topic.el (gnus-topic-rename):
      * lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
      * lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
      * lisp/gnus/spam.el (spam-check-blackholes):
      * lisp/mail/feedmail.el (feedmail-run-the-queue):
      * lisp/mpc.el (mpc-playlist-rename):
      * lisp/net/ange-ftp.el (ange-ftp-shell-command):
      * lisp/net/mairix.el (mairix-widget-create-query):
      * lisp/net/tramp-cache.el:
      * lisp/obsolete/otodo-mode.el (todo-more-important-p):
      * lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
      * lisp/org/ob-core.el (org-babel-goto-named-src-block)
      (org-babel-goto-named-result):
      * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
      * lisp/org/ob-ref.el (org-babel-ref-resolve):
      * lisp/org/org-agenda.el (org-agenda-prepare):
      * lisp/org/org-bibtex.el (org-bibtex-fields):
      * lisp/org/org-clock.el (org-clock-notify-once-if-expired)
      (org-clock-resolve):
      * lisp/org/org-feed.el (org-feed-parse-atom-entry):
      * lisp/org/org-habit.el (org-habit-parse-todo):
      * lisp/org/org-mouse.el (org-mouse-popup-global-menu)
      (org-mouse-context-menu):
      * lisp/org/org-table.el (org-table-edit-formulas):
      * lisp/org/ox.el (org-export-async-start):
      * lisp/play/dunnet.el (dun-score, dun-help, dun-endgame-question)
      (dun-rooms, dun-endgame-questions):
      * lisp/progmodes/ada-mode.el (ada-goto-matching-start):
      * lisp/progmodes/ada-xref.el (ada-find-executable):
      * lisp/progmodes/antlr-mode.el (antlr-options-alists):
      * lisp/progmodes/flymake.el (flymake-parse-err-lines)
      (flymake-start-syntax-check-process):
      * lisp/progmodes/python.el (python-define-auxiliary-skeleton):
      * lisp/progmodes/sql.el (sql-comint):
      * lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
      * lisp/server.el (server-get-auth-key):
      * lisp/subr.el (version-to-list):
      * lisp/textmodes/reftex-ref.el (reftex-label):
      * lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
      * lisp/vc/ediff-diff.el (ediff-same-contents):
      * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
      * test/automated/tramp-tests.el (tramp-test33-asynchronous-requests):
      Use directed rather than neutral quotes in diagnostics.
      875a5d0e
  28. 08 Feb, 2015 2 commits
  29. 01 Jan, 2015 2 commits
  30. 11 Apr, 2014 1 commit
  31. 18 Mar, 2014 1 commit
  32. 17 Mar, 2014 1 commit
  33. 01 Jan, 2014 1 commit
  34. 28 Dec, 2013 1 commit
    • Glenn Morris's avatar
      Misc small custom fixes · 9c61f806
      Glenn Morris authored
      The value of defcustom's const should not be quoted!
      
      * lisp/desktop.el (desktop-restore-in-current-display):
      * lisp/newcomment.el (comment-empty-lines):
      * lisp/progmodes/idlwave.el (idlwave-scan-all-buffers-for-routine-info)
      (idlwave-pad-keyword):
      * lisp/progmodes/tcl.el (tcl-tab-always-indent):
      * lisp/textmodes/reftex-vars.el (reftex-index-default-tag):
      * lisp/elec-pair.el (electric-pair-skip-whitespace):
      * lisp/progmodes/cfengine.el (cfengine-cf-promises):
      * lisp/cedet/ede/linux.el (project-linux-build-directory-default)
      (project-linux-architecture-default):
      * lisp/erc/erc-button.el (erc-button-alist):
      * lisp/gnus/auth-source.el (auth-sources):
      * lisp/gnus/nnmairix.el (nnmairix-propagate-marks-upon-close):
      * lisp/url/url-history.el (url-history-track):
      * lisp/url/url-vars.el (url-honor-refresh-requests):
      Fix custom types.
      
      * lisp/net/tls.el (tls-certtool-program): Fix default value.
      9c61f806
  35. 05 Oct, 2013 1 commit
  36. 01 Oct, 2013 1 commit