summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* enable mhtml-mode by defaultfeature/mhtml-modeTom Tromey2017-03-232-5/+8
| | | | | | | * lisp/files.el (auto-mode-alist): Reference mhtml-mode, not html-mode. (magic-fallback-mode-alist): Likewise. * lisp/net/eww.el (eww-view-source): Use mthml-mode.
* add mhtml-mode.elTom Tromey2017-03-231-0/+390
| | | | | | | | * etc/NEWS: Update. * lisp/textmodes/mhtml-mode.el: New file. * test/manual/indent/html-multi.html: New file. * test/lisp/textmodes/mhtml-mode-tests.el: New file. * doc/emacs/text.texi (HTML Mode): Mention mhtml-mode.
* change sgml-mode to help multi-html modeTom Tromey2017-03-231-16/+31
| | | | | | | | * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-rules): New defconst. (sgml-syntax-propertize): Use it. (sgml--find-<>-backward): New function. (sgml-parse-tag-backward): Use it.
* make js.el respect prog-first-columnTom Tromey2017-03-231-1/+2
| | | | * lisp/progmodes/js.el (js--proper-indentation): Call prog-first-column.
* make smie.el respect prog-first-columnTom Tromey2017-03-231-1/+3
| | | | * lisp/emacs-lisp/smie.el (smie-indent-bob): Call prog-first-column.
* change viper to use derived-mode-pTom Tromey2017-03-232-13/+25
| | | | | | | | * lisp/subr.el (provided-mode-derived-p): New function. (derived-mode-p): Use it. * lisp/emulation/viper.el (viper-mode): Use derived-mode-p. (this-major-mode-requires-vi-state): Use provided-mode-derived-p. (set-viper-state-in-major-mode): Use derived-mode-p.
* change align to use derived-mode-pTom Tromey2017-03-231-1/+1
| | | | * lisp/align.el (align-region): Use derived-mode-p.
* change org to use derived-mode-pTom Tromey2017-03-232-3/+3
| | | | | | | * lisp/org/org-list.el (org-list-insert-radio-list): Use derived-mode-p. * lisp/org/org-table.el (orgtbl-setup, orgtbl-toggle-comment): Use derived-mode-p.
* change semantic to use derived-mode-pTom Tromey2017-03-231-1/+1
| | | | * lisp/cedet/semantic.el (semantic-new-buffer-fcn): Use derived-mode-p.
* change calc to use derived-mode-pTom Tromey2017-03-231-7/+13
| | | | | * lisp/calc/calc-embed.el (calc-embedded-find-modes) (calc-embedded-make-info): Use derived-mode-p.
* change auto-insert to use derived-mode-pTom Tromey2017-03-231-1/+1
| | | | * lisp/autoinsert.el (auto-insert): Use derived-mode-p.
* Protect against an infloop in python-modePhilipp Stephani2017-03-231-3/+13
| | | | | | | | | | | | | | | | | There appears to be an edge case caused by using `syntax-ppss' in a narrowed buffer during JIT lock inside of Python triple-quote strings. Unfortunately it is impossible to reproduce without manually destroying the syntactic information in the Python buffer, but it has been observed in practice. In that case it can happen that the syntax caches get sufficiently out of whack so that there appear to be overlapping strings in the buffer. As Python has no nested strings, this situation is impossible and leads to an infloop in `python-nav-end-of-statement'. Protect against this by checking whether the search for the end of the current string makes progress. * python.el (python-nav-end-of-statement): Protect against infloop. * progmodes/python-tests.el (python-tests--python-nav-end-of-statement--infloop): Add unit test.
* Use lexical-bind in TrampMichael Albinus2017-03-2311-30/+24
| | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp*.el: Add lexical-binding cookie. Move declarations up. * lisp/net/tramp-adb.el (tramp-adb-parse-device-names): Use `push' rather than `add-to-list'. (tramp-adb-get-device): Remove unused variable. * lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names): Remove unused variable. * lisp/net/tramp.el (auto-save-file-name-transforms): Declare. (tramp-find-file-name-coding-system-alist): Use `push' rather than `add-to-list'. * test/lisp/net/tramp-tests.el: Add lexical-binding cookie. Require 'dired. Move declarations up. (tramp-test32-make-nearby-temp-file): Wrap `make-nearby-temp-file' and `temporary-file-directory' calls with `with-no-warnings'. (tramp-test35-asynchronous-requests): Mark unused variable.
* Do not include comment start chars in ffap stringKaushal Modi2017-03-231-3/+38
| | | | | | | | | | | | * lisp/ffap.el (ffap-string-at-point): If the point is in a comment, ensure that the returned string does not contain the comment start characters (especially for major modes that have '//' as comment start characters). Otherwise, in a major mode like c-mode, with `ido-mode' enabled and `ido-use-filename-at-point' set to `guess', doing "C-x C-f" on a "//foo" comment will initiate an attempt to access a path "//foo" (Bug#24057). Co-authored-by: Noam Postavsky <npostavs@gmail.com>
* Fix filenotify.el issue for kqueueMichael Albinus2017-03-221-7/+3
| | | | | | | | | * lisp/filenotify.el (file-notify-add-watch): Use directory for remote file name handlers. * test/lisp/filenotify-tests.el (file-notify-test01-add-watch): Create/delete temporary file only for "kqueue". (file-notify-test02-rm-watch): Create/delete temporary files.
* * lisp/emacs-lisp/lisp-mode.el (indent-sexp): Fix null endpos caseGraham Dobbins2017-03-211-1/+4
| | | | Copyright-paperwork-exempt: yes
* epatch: Save right backups in Git multipatchesTino Calancha2017-03-212-8/+7
| | | | | | | | | | 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.
* Solve ses-recalculate-cell updating only current line bug.Vincent Belaïche2017-03-201-4/+7
| | | | | | | | * lisp/ses.el (ses-recalculate-cell): Add optional argument ses--curcell to avoid overwriting ses--curcell when function is called from ses-recalculate-all. Update docstring accordingly. (ses-recalculate-all): Call ses-recalculate-cell with argument ses--curcell to avoid its overwriting.
* Simpler filter implementationMark Oteiza2017-03-191-22/+17
| | | | | | * lisp/play/dunnet.el (dun-endgame-question): Get or set dun-endgame-questions one time only. Use dolist and an index to prune the list.
* * lisp/button.el (forward-button): Use user-error instead.Mark Oteiza2017-03-191-1/+1
|
* Fixups after merge from emacs-25Paul Eggert2017-03-191-1/+1
| | | | | | | * etc/NEWS: Remove stray entry. * etc/NEWS.25: Copy from Emacs emacs-25 etc/NEWS. * lisp/textmodes/rst.el (rst-package-emacs-version-alist): Make it nondecreasing.
* Merge from origin/emacs-25Paul Eggert2017-03-194-8/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a094732 * etc/PROBLEMS: Say that HP-UX cc doesn't work. 1925dd9 Fix duplicate wording in Emacs manual 6de8429 * lisp/paren.el (show-paren--default, show-paren-function): A... 2d671fd Fix wording in Emacs manual a8766a2 Document how to customize input methods 6eb8995 * lisp/net/eww.el (eww-reload): Doc fix. (Bug#25981) aceac95 Fix warning message about native completion (Bug#25984) a314c1f Clarify documentation of 'raise' and 'height' display specs f366f6e Mention problems with GPaste in PROBLEMS 6e788ef ; etc/PROBLEMS: Explain about the python+libedit problem (Bug... 6406618 Fix doc strings in info.el c1ed152 ; * src/keyboard.c (Fposn_at_point): Fix last change. eed9677 Fix doc string of 'posn-at-point' 0d5957e Documentation fix in elisp reference manual
| * * lisp/paren.el (show-paren--default, show-paren-function): Add docstring.Hong Xu2017-03-141-2/+4
| |
| * * lisp/net/eww.el (eww-reload): Doc fix. (Bug#25981)Eli Zaretskii2017-03-111-2/+3
| |
| * Fix warning message about native completion (Bug#25984)Noam Postavsky2017-03-051-1/+1
| | | | | | | | | | * lisp/progmodes/python.el (python-shell-completion-native-turn-on-maybe): The relevant variable is `python-shell-completion-native-enable'.
| * Fix doc strings in info.elEli Zaretskii2017-02-251-3/+3
| | | | | | | | | | * lisp/info.el (Info-selection-hook, Info-mode-hook) (Info-edit-mode-hook): Doc fixes. (Bug#25794)
| * ; Update ldef-boot.el for Emacs 25.1 releaseemacs-25.2-rc2Nicolas Petton2017-02-211-9/+9
| |
* | Merge from origin/emacs-25Paul Eggert2017-03-194-6/+8
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ec4226d * lisp/woman.el (woman): Fix docstring prefix arg description. 2b774fa Mention "editor" in Emacs man page header ae60d0c Document problems with nerd-fonts 2fdb5a9 ; Details about pinning Emacs to w32 task bar 5c3105e * doc/lispref/modes.texi (Derived Modes): Make example more i... 4c51ef4 Clarify what is the "cursor" 8303c32 ; * etc/NEWS: Copyedits. 3f7493e ; Fix a typo in comment c54cf8d Improve commentary in lisp.h 8b92f86 ; * admin/make-tarball.txt: Cross-reference admin/release-pro... 0ba9932 Disable native completion for ipython (Bug#25067) 38fc456 Fix a typo in ada-mode manual 00e75ba ; * src/coding.c (Fencode_coding_region): Fix a typo in the d... a541c21 Clarify documentation of 'bufferpos-to-filepos' and 'filepos-... # Conflicts: # etc/NEWS # etc/PROBLEMS
| * * lisp/woman.el (woman): Fix docstring prefix arg description.Noam Postavsky2017-02-181-1/+1
| |
| * ; Fix a typo in commentTino Calancha2017-02-101-1/+1
| | | | | | | | | | * lisp/vc/ediff-wind.el (ediff-setup-windows-multiframe-merge): Fix a typo in comment.
| * Disable native completion for ipython (Bug#25067)Noam Postavsky2017-02-071-2/+4
| | | | | | | | | | * lisp/progmodes/python.el: (python-shell-completion-native-disabled-interpreters): Add "ipython".
| * Clarify documentation of 'bufferpos-to-filepos' and 'filepos-to-bufferpos'Eli Zaretskii2017-02-051-2/+2
| | | | | | | | | | | | | | | | | | * doc/lispref/nonascii.texi (Text Representations): Clarify that 'exact' value of QUALITY argument to 'bufferpos-to-filepos' and 'filepos-to-bufferpos' can lead to expensive and slow processing. * lisp/international/mule-util.el (filepos-to-bufferpos) (bufferpos-to-filepos): Doc fix. (Bug#25626)
| * Bump Emacs version to 25.2 RC1emacs-25.2-rc1Nicolas Petton2017-02-031-1091/+1111
| | | | | | | | | | | | | | | | * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version. * lisp/ldefs-boot.el: Update.
* | Merge from origin/emacs-25Paul Eggert2017-03-197-18/+27
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ab0a60a ; * CONTRIBUTE (Generating ChangeLog entries): Drop duplicate... 7e02a47 Index byte-compile-debug 7c1e598 Document `byte-compile-debug' in the ELisp manual 4d81eb4 Document variable `byte-compile-debug' 72ef710 Fix call to debugger on assertion failure ae8264c Call modification hooks in org-src fontify buffers b3139da ; Fix last change in doc/lispref/strings.texi c331f39 Improve documentation of 'format' conversions 9f52f67 Remove stale functions from ert manual c416b14 Fix a typo in Eshell manual 06695a0 ; Fix a typo in ediff-merg.el 954e9e9 Improve documentation of hooks related to saving buffers 9fcab85 Improve documentation of auto-save-visited-file-name 2236c53 fix typo in mailcap-mime-extensions 85a3e4e Fix typos in flymake.el a1ef10e More NEWS checking for admin.el's set-version # Conflicts: # lisp/emacs-lisp/bytecomp.el
| * Document variable `byte-compile-debug'Philipp Stephani2017-01-311-1/+2
| | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-debug): Document variable.
| * Fix call to debugger on assertion failureNoam Postavsky2017-01-301-1/+1
| | | | | | | | | | | | * lisp/emacs-lisp/cl-preloaded.el (cl--assertion-failed): The first argument must be `error', and the second is a list of arguments for `signal'.
| * Call modification hooks in org-src fontify buffersNoam Postavsky2017-01-291-10/+14
| | | | | | | | | | | | * lisp/org/org-src.el (org-src-font-lock-fontify-block): Let-bind `inhibit-modification-hooks' to nil, since this function can be called from jit-lock-function which binds that variable to t (Bug#25132).
| * ; Fix a typo in ediff-merg.elTino Calancha2017-01-211-1/+1
| | | | | | | | | | * lisp/vc/ediff-merg.el (ediff-skip-merge-regions-that-differ-from-default): Fix a typo in docstring.
| * Improve documentation of hooks related to saving buffersEli Zaretskii2017-01-201-3/+7
| | | | | | | | | | | | | | | | | | | | * lisp/files.el (write-file-functions, write-contents-functions) (before-save-hook, after-save-hook): Note that these are only used by save-buffer. * doc/lispref/backups.texi (Auto-Saving): * doc/lispref/files.texi (Saving Buffers): Mention that save-related hooks are not run by auto-saving. (Bug#25460)
| * fix typo in mailcap-mime-extensionsTom Tromey2017-01-181-1/+1
| | | | | | | | | | * lisp/net/mailcap.el (mailcap-mime-extensions): Use "text/x-patch", not "test/x-patch". (Bug#25472)
| * Fix typos in flymake.elLele Gaifax2017-01-181-1/+1
| | | | | | | | | | | | | | * lisp/progmodes/flymake.el (flymake-check-patch-master-file-buffer): Spelling fixes in the doc string. Copyright-paperwork-exempt: yes
| * Fix auto-save-file-name problem in Tramp on MS Windows. Do not mergeMichael Albinus2017-01-171-1/+5
| | | | | | | | | | * lisp/net/tramp.el (tramp-handle-make-auto-save-file-name): Fix a problem when running on MS Windows.
* | Merge from origin/emacs-25Paul Eggert2017-03-194-15/+20
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | 5569e64 ; Spelling fixes 24a5f57 * lisp/net/eww.el (eww-tag-meta): Handle single quoted URLs (... 9b89896 * lisp/progmodes/sql.el (sql-product-alist): Doc tweak 69b50f5 * lisp/progmodes/sql.el (sql-product-alist): Doc fix. (Bug#2... 42eae54 Improve documentation of dabbrevs b0ade0d Clarify that easy-menu-add is a nop (Bug#25382) 3c69f2c * lisp/textmodes/rst.el (rst-package-emacs-version-alist): Fi... # Conflicts: # lisp/textmodes/rst.el
| * * lisp/net/eww.el (eww-tag-meta): Handle single quoted URLs (Bug#25445).Ian Dunn2017-01-151-0/+1
| | | | | | | | Copyright-paperwork-exempt: yes
| * * lisp/progmodes/sql.el (sql-product-alist): Doc tweakStefan Monnier2017-01-141-1/+1
| | | | | | | | `:sqli-comint-func' does not have to be a symbol.
| * * lisp/progmodes/sql.el (sql-product-alist): Doc fix. (Bug#25440)Eli Zaretskii2017-01-141-7/+10
| |
| * Clarify that easy-menu-add is a nop (Bug#25382)Noam Postavsky2017-01-121-7/+8
| | | | | | | | | | * lisp/emacs-lisp/easymenu.el (easy-menu-add): Make it into an alias of `ignore', like `easy-menu-remove'.
| * * lisp/textmodes/rst.el (rst-package-emacs-version-alist): Fix entry.Glenn Morris2017-01-111-1/+1
| |
| * Revert "Add DNS keywords and remove duplications"Eli Zaretskii2017-01-111-5/+2
| | | | | | | | This reverts commit 1cb9aa5b14867983d0013a61709b4d0af18364ff.
| * Add DNS keywords and remove duplicationsAlexander Kuleshov2017-01-111-2/+5
| | | | | | | | | | * lisp/textmodes/dns-mode.el (dns-mode-types): Add two TLSA and NSEC" DNS related keywords and remove duplication of "NSAP".