1. 04 Jun, 2019 1 commit
    • Noam Postavsky's avatar
      Keep nxml-prolog-end up to date (Bug#18871) · 3f2bfe9a
      Noam Postavsky authored
      The change on 2016-01-16 "lisp/nxml: Use syntax-tables for comments"
      removed the update of nxml-prolog-end, although it already failed to
      work correctly after 2013-10-07 "* lisp/nxml/nxml-mode.el: Use
      lexical-binding and syntax-propertize."
      * lisp/nxml/nxml-rap.el: New function.
      * lisp/nxml/nxml-mode.el (nxml-mode): Add it to
      after-change-functions.
      3f2bfe9a
  2. 09 May, 2019 1 commit
    • Noam Postavsky's avatar
      Fix nxml-get-inside (Bug#32003) · ca14dd1d
      Noam Postavsky authored
      The change from 2016-01-16 "lisp/nxml: Use syntax-tables for comments"
      made nxml-get-inside return non-nil for any string or comment,
      including attribute strings.  This caused incorrect and therefore
      indentation.
      * lisp/nxml/nxml-rap.el: Update commentary to reflect changes to
      nxml-mode parsing.
      (nxml-get-inside): Only return non-nil when inside comments and
      generic strings, not normal quote-delimited strings.
      * test/lisp/nxml/nxml-mode-tests.el: New tests.
      ca14dd1d
  3. 01 Jan, 2019 1 commit
  4. 01 Jan, 2018 1 commit
  5. 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
  6. 01 Jan, 2017 1 commit
  7. 16 Jan, 2016 1 commit
    • Stefan Monnier's avatar
      lisp/nxml: Use syntax-tables for comments · 56e10975
      Stefan Monnier authored
      * lisp/nxml/nxml-mode.el (nxml-set-face): Prepend.
      (nxml-mode): Set syntax-ppss-table.
      Use sgml-syntax-propertize-function for syntax-propertize-function.
      Let font-lock highlight strings and comments.
      (nxml-degrade): Don't touch "nxml-inside" property any more.
      (nxml-after-change, nxml-after-change1): Remove functions.
      (comment): Don't set fontify rule any more.
      (nxml-fontify-attribute): Don't highlight the value any more.
      (nxml-namespace-attribute-value-delimiter, nxml-namespace-attribute-value)
      (nxml-comment-delimiter, nxml-comment-content): Remove faces.
      
      * lisp/nxml/nxml-rap.el (nxml-scan-end): Remove.
      (nxml-get-inside, nxml-inside-start, nxml-inside-end): Use syntax-ppss.
      (nxml-clear-inside, nxml-set-inside): Remove.
      (nxml-scan-after-change): Remove function.
      (nxml-scan-prolog, nxml-tokenize-forward): Simplify.
      (nxml-ensure-scan-up-to-date): Use syntax-propertize.
      (nxml-move-outside-backwards):
      * lisp/nxml/nxml-outln.el (nxml-section-tag-backward): Adjust to new
      nxml-inside-start behavior.
      
      * lisp/nxml/nxml-util.el (nxml-debug-set-inside)
      (nxml-debug-clear-inside): Remove macros.
      
      * lisp/nxml/xmltok.el (xmltok-forward-special): Remove function.
      (xmltok-scan-after-comment-open): Simplify.
      56e10975
  8. 15 Jan, 2016 1 commit
    • Stefan Monnier's avatar
      Update nXML to use Emacs's Unicode support, and lexical-binding · 930f8e83
      Stefan Monnier authored
      * etc/nxml/*.el: Remove obsolete char-name files.
      * lisp/nxml/xsd-regexp.el (xsdre-range-list-difference): Remove unused
      var `next'.
      * lisp/nxml/rng-nxml.el (rng-set-state-after): Don't assume point-min==1.
      * lisp/nxml/rng-match.el (rng-update-match-state): Simplify.
      * lisp/nxml/nxml-outln.el (nxml-outline-state-transform-exceptions)
      (nxml-target-section-pos, nxml-depth-in-target-section)
      (nxml-outline-state-transform-alist)
      (nxml-outline-display-section-tag-function): Move decl before first use.
      * lisp/nxml/nxml-mode.el (nxml-char-name-ignore-case)
      (nxml-char-name-alist, nxml-char-name-table)
      (nxml-autoload-char-name-set-list, nxml-named-char-history): Remove vars.
      (nxml-enable-char-name-set, nxml-disable-char-name-set)
      (nxml-char-name-set-enabled-p, nxml-autoload-char-name-set)
      (nxml-define-char-name-set, nxml-get-char-name): Remove functions.
      (nxml-insert-named-char): Use read-char-by-name instead.
      (nxml-char-ref-display-extra): Use get-char-code-property.
      * lisp/nxml/nxml-maint.el (nxml-create-unicode-char-name-sets):
      Remove function.
      * lisp/nxml/nxml-glyph.el, lisp/nxml/nxml-uchnm.el: Remove files.
      930f8e83
  9. 01 Jan, 2016 1 commit
  10. 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
  11. 01 Jan, 2015 2 commits
  12. 21 Mar, 2014 1 commit
  13. 01 Jan, 2014 1 commit
  14. 09 Aug, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/subr.el (define-error): New function. · 54bd972f
      Stefan Monnier authored
      * doc/lispref/control.texi (Signaling Errors): Refer to define-error.
      (Error Symbols): Add `define-error'.
      * doc/lispref/errors.texi (Standard Errors): Don't refer to `error-conditions'.
      * lisp/progmodes/ada-xref.el (ada-error-file-not-found): Rename from
      error-file-not-found and define with define-error.
      * lisp/emacs-lisp/cl-lib.el (cl-assertion-failed): Move here from subr.el
      and define with define-error.
      * lisp/userlock.el (file-locked, file-supersession):
      * lisp/simple.el (mark-inactive):
      * lisp/progmodes/js.el (js-moz-bad-rpc, js-js-error):
      * lisp/progmodes/ada-mode.el (ada-mode-errors):
      * lisp/play/life.el (life-extinct):
      * lisp/nxml/xsd-regexp.el (xsdre-invalid-regexp, xsdre-parse-error):
      * lisp/nxml/xmltok.el (xmltok-markup-declaration-parse-error):
      * lisp/nxml/rng-util.el (rng-error):
      * lisp/nxml/rng-uri.el (rng-uri-error):
      * lisp/nxml/rng-match.el (rng-compile-error):
      * lisp/nxml/rng-cmpct.el (rng-c-incorrect-schema):
      * lisp/nxml/nxml-util.el (nxml-error, nxml-file-parse-error):
      * lisp/nxml/nxml-rap.el (nxml-scan-error):
      * lisp/nxml/nxml-outln.el (nxml-outline-error):
      * lisp/net/soap-client.el (soap-error):
      * lisp/net/gnutls.el (gnutls-error):
      * lisp/net/ange-ftp.el (ftp-error):
      * lisp/mpc.el (mpc-proc-error):
      * lisp/json.el (json-error, json-readtable-error, json-unknown-keyword)
      (json-number-format, json-string-escape, json-string-format)
      (json-key-format, json-object-format):
      * lisp/jka-compr.el (compression-error):
      * lisp/international/quail.el (quail-error):
      * lisp/international/kkc.el (kkc-error):
      * lisp/emacs-lisp/ert.el (ert-test-failed):
      * lisp/calc/calc.el (calc-error, inexact-result, math-overflow)
      (math-underflow):
      * lisp/bookmark.el (bookmark-error-no-filename):
      * lisp/epg.el (epg-error): Define with define-error.
      54bd972f
  15. 15 May, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/nxml/nxml-mode.el: Treat unclosed <[[, <?, comment, and other · c9990474
      Stefan Monnier authored
      literals as extending to EOB.
      (nxml-last-fontify-end): Remove unused variable.
      (nxml-after-change1): Use with-silent-modifications.
      (nxml-extend-after-change-region): Simplify.
      (nxml-extend-after-change-region1): Remove function.
      (nxml-after-change1): Don't adjust for dependent regions.
      (nxml-fontify-matcher): Simplify.
      * lisp/nxml/xmltok.el (xmltok-dependent-regions): Remove variable.
      (xmltok-add-dependent): Remove function.
      (xmltok-scan-after-lt, xmltok-scan-after-processing-instruction-open)
      (xmltok-scan-after-comment-open, xmltok-scan-prolog-literal)
      (xmltok-scan-prolog-after-processing-instruction-open): Treat
      unclosed <[[, <?, comment, and other literals as extending to EOB.
      * lisp/nxml/rng-valid.el (rng-mark-xmltok-dependent-regions)
      (rng-mark-xmltok-dependent-region, rng-dependent-region-changed):
      Remove functions.
      (rng-do-some-validation-1): Don't mark dependent regions.
      * lisp/nxml/nxml-rap.el (nxml-adjust-start-for-dependent-regions)
      (nxml-mark-parse-dependent-regions, nxml-mark-parse-dependent-region)
      (nxml-clear-dependent-regions): Remove functions.
      (nxml-scan-after-change, nxml-scan-prolog, nxml-tokenize-forward)
      (nxml-ensure-scan-up-to-date):
      Don't clear&mark dependent regions.
      c9990474
  16. 23 Mar, 2013 1 commit
    • Leo Liu's avatar
      * lisp/nxml/nxml-util.el (nxml-with-unmodifying-text-property-changes): · 7e74b0fb
      Leo Liu authored
      Remove.
      
      * lisp/nxml/rng-valid.el (rng-validate-mode)
      (rng-after-change-function, rng-do-some-validation):
      * lisp/nxml/rng-maint.el (rng-validate-buffer):
      * lisp/nxml/nxml-rap.el (nxml-tokenize-forward, nxml-ensure-scan-up-to-date):
      * lisp/nxml/nxml-outln.el (nxml-show-all, nxml-set-outline-state):
      * lisp/nxml/nxml-mode.el (nxml-mode, nxml-degrade, nxml-after-change)
      (nxml-extend-after-change-region): Use with-silent-modifications.
      7e74b0fb
  17. 01 Jan, 2013 1 commit
  18. 11 Jan, 2012 1 commit
  19. 05 Jan, 2012 1 commit
  20. 25 Jan, 2011 1 commit
  21. 15 Jan, 2011 1 commit
  22. 02 Jan, 2011 1 commit
  23. 13 Jan, 2010 1 commit
  24. 05 Jan, 2009 1 commit
  25. 03 Jul, 2008 1 commit
    • Juanma Barranquero's avatar
      Fix typos, and general docstring cleanup. · 10545bd8
      Juanma Barranquero authored
      * nxml/nxml-glyph.el (nxml-glyph-set-hook):
      * nxml/nxml-uchnm.el (nxml-unicode-blocks)
      (nxml-unicode-block-char-name-set):
      * nxml/nxml-util.el (nxml-debug, nxml-make-namespace):
      * nxml/rng-nxml.el (rng-set-state-after):
      * nxml/rng-uri.el (rng-file-name-uri): Fix typo in docstring.
      
      * nxml/rng-cmpct.el (rng-c-lookup-create, rng-c-parse-primary)
      (rng-c-parse-annotation-body):
      * nxml/rng-dt.el (rng-dt-namespace-context-getter): Reflow docstrings.
      
      * nxml/nxml-mode.el (nxml, nxml-mode, nxml-after-change1)
      (nxml-extend-region, nxml-merge-indent-context-type, nxml-complete)
      (nxml-forward-balanced-item, nxml-dynamic-markup-word)
      (nxml-define-char-name-set, nxml-toggle-char-ref-extra-display):
      Fix typos in docstrings.
      (nxml-attribute-indent): Reflow docstring.
      (nxml-bind-meta-tab-to-complete-flag, nxml-last-fontify-end)
      (nxml-default-buffer-file-coding-system): Doc fixes.
      
      * nxml/nxml-ns.el (nxml-ns-state, nxml-ns-initial-state)
      (nxml-ns-set-prefix): Fix typos in docstrings.
      (nxml-ns-push-state, nxml-ns-pop-state, nxml-ns-set-default):
      Reflow docstring.
      (nxml-ns-get-prefix, nxml-ns-get-default): Doc fixes.
      
      * nxml/nxml-outln.el (nxml-hide-all-text-content)
      (nxml-show-direct-text-content, nxml-show-direct-subheadings)
      (nxml-hide-direct-text-content, nxml-hide-subheadings)
      (nxml-hide-text-content, nxml-show-subheadings, nxml-hide-other)
      (nxml-outline-display-rest, nxml-outline-set-overlay)
      (nxml-section-tag-forward, nxml-section-tag-backward)
      (nxml-back-to-section-start): Fix typos in docstrings.
      
      * nxml/nxml-parse.el (nxml-validate-function, nxml-parse-file):
      Doc fixes.
      
      * nxml/nxml-rap.el (nxml-scan-end, nxml-move-tag-backwards)
      (nxml-scan-element-forward, nxml-scan-element-backward): Doc fixes.
      (nxml-scan-after-change): Fix typo in docstring.
      
      * nxml/rng-match.el (rng-being-compiled, rng-normalize-choice-list)
      (rng-name-class-possible-names): Doc fixes.
      (rng-memo-map-add, rng-intern-group, rng-match-possible-namespace-uris)
      (rng-match-possible-start-tag-names, rng-match-possible-value-strings):
      Fix typos in docstrings.
      (rng-intern-group-shortcut, rng-intern-choice-shortcut):
      Reflow docstrings.
      
      * nxml/rng-util.el (rng-uniquify-eq, rng-uniquify-equal): Doc fixes.
      (rng-substq, rng-complete-before-point): Fix typos in docstrings.
      
      * nxml/rng-xsd.el (rng-xsd-make-date-time-regexp)
      (rng-xsd-convert-date-time): Reflow docstrings.
      (rng-xsd-compile): Fix typo in docstring.
      
      * nxml/rng-loc.el (rng-current-schema-file-name)
      (rng-locate-schema-file-using, rng-locate-schema-file-from-type-id):
      Doc fixes.
      (rng-set-schema-file): Fix typo in docstring.
      
      * nxml/rng-valid.el (rng-error-count, rng-validate-mode)
      (rng-do-some-validation, rng-process-start-tag, rng-process-text):
      Fix typos in docstrings.
      (rng-message-overlay, rng-conditional-up-to-date-start)
      (rng-conditional-up-to-date-end): Doc fixes.
      (rng-next-error, rng-previous-error): Reflow docstrings.
      
      * nxml/xmltok.el (xmltok-attribute-raw-normalized-value): Doc fix.
      (xmltok-dtd, xmltok-dependent-regions, xmltok-attribute-refs)
      (xmltok-valid-char-p, xmltok-standalone, xmltok-forward-prolog)
      (xmltok-merge-attributes): Fix typos in docstrings.
      (xmltok-make-attribute, xmltok-forward-special)
      (xmltok-get-declared-encoding-position): Reflow docstrings.
      
      * nxml/xsd-regexp.el (xsdre-char-class-to-range-list): Doc fix.
      (xsdre-range-list-union, xsdre-check-range-list, xsdre-current-regexp):
      Fix typos in docstrings.
      10545bd8
  26. 06 Jun, 2008 1 commit
  27. 06 May, 2008 1 commit
  28. 09 Jan, 2008 1 commit
  29. 28 Nov, 2007 1 commit
  30. 23 Nov, 2007 2 commits