aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/progmodes/sh-script.el (sh--inside-noncommand-expression):Stefan Monnier2012-10-301-0/+5
| | | | | | Rename from sh--inside-arithmetic-expression, handle more cases. Fixes: debbugs:11263
* * lisp/progmodes/sh-script.el (sh--inside-arithmetic-expression): New func.Stefan Monnier2012-10-302-0/+9
| | | | | | (sh-font-lock-open-heredoc): Use it. Fixes: debbugs:12770
* * lisp/vc/diff-mode.el (diff-context->unified): Don't get confused by "hunkStefan Monnier2012-10-291-1/+4
| | | | | | header comments". (diff-unified->context, diff-context->unified) (diff-reverse-direction, diff-fixup-modifs): Use `use-region-p'.
* Adapt compile.el to changes in MSVC diagnostics format.Eli Zaretskii2012-10-142-0/+9
| | | | | | | | | | | | | | lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Adjust the msft regexp to the output of Studio 2010, and move msft before edg-1. See the discussion on emacs-devel, http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00579.html, for the details. etc/compilation.txt (msft): Add error messages in new Studio 2010 format. test/automated/compile-tests.el (compile-tests--test-regexps-data): Add data for msft's new format.
* * lisp/progmodes/ruby-mode.el (ruby-brace-to-do-end): Don't add extraDmitry Gutov2012-09-191-6/+10
| | | | | | whitespace after "end". (ruby-do-end-to-brace): Collapse block to one line if it fits within fill-column.
* * lisp/progmodes/ruby-mode.el (ruby-toggle-block): Guess the current block,Dmitry Gutov2012-09-092-10/+22
| | | | | | | | | | | | not just expect to be at its beginning. Adjust callees. Succeed when do-end block has no space before the pipe character. (ruby-brace-to-do-end): When the original block is one-liner, convert to multiline. Reindent the result. * test/automated/ruby-mode-tests.el: (ruby-toggle-block-to-multiline): New test. (ruby-should-indent-buffer, ruby-toggle-block-to-do-end) (ruby-toggle-block-to-brace): Use buffer-string.
* * lisp/progmodes/ruby-mode.el (ruby-match-expression-expansion): OnlyDmitry Gutov2012-09-081-3/+5
| | | | fail when reached LIMIT.
* * lisp/progmodes/ruby-mode.el (ruby-indent-beg-re): Add pieces fromDmitry Gutov2012-09-072-0/+29
| | | | | | | | | | | | | | | | | | ruby-beginning-of-indent, simplify, allow all keywords to have indentation before them. (ruby-beginning-of-indent): Adjust for above. Search until the found point is not inside a string or comment. (ruby-font-lock-keywords): Allow symbols to start with "@" character, give them higher priority than variables. (ruby-syntax-propertize-function) (ruby-font-lock-syntactic-keywords): Remove the "not comments" matchers. Expression expansions are not comments when inside a string, and there comment syntax status is irrelevant. (ruby-match-expression-expansion): New function. Check that expression expansion is inside a string, and it's not escaped. (ruby-font-lock-keywords): Use it. * test/automated/ruby-mode-tests.el: New tests (Bug#11613).
* Merge from emacs-24; up to 2012-05-04T19:17:01Z!monnier@iro.umontreal.caGlenn Morris2012-08-282-21/+123
|\
| * Update release logsemacs-24.2Chong Yidong2012-08-241-1/+1
| |
| * Bump version to 24.2Chong Yidong2012-08-161-0/+4
| |
| * Improve the file-local variable regression test.Chong Yidong2012-08-142-21/+123
| | | | | | | | | | * test/automated/files.el: Test every combination of values for enable-local-variables and enable-local-eval.
* | * src/xdisp.c (handle_invisible_prop): Fix ellipses at overlay string ends.Chong Yidong2012-08-202-1/+5
| | | | | | | | | | | | * test/redisplay-testsuite.el (test-redisplay): Use switch-to-buffer. Fixes: debbugs:3874
* | Make display strings obey buffer-invisibility-spec.Chong Yidong2012-08-182-1/+98
| | | | | | | | | | | | | | | | | | * src/xdisp.c (handle_invisible_prop): Obey TEXT_PROP_MEANS_INVISIBLE for the string case. * redisplay-testsuite.el (test-redisplay-4): New test. Fixes: debbugs:3874
* | * lisp/progmodes/ruby-mode.el (ruby-syntax-methods-before-regexp): New const.Dmitry Gutov2012-08-142-11/+23
| | | | | | | | | | | | | | | | (ruby-syntax-propertize-function): Use it to recognize regexps. Don't look at the text after regexp, just use the whitelist. * test/indent/ruby.rb: Rearrange examples, add new ones. Fixes: debbugs:6286
* | Merge from upstream ruby-mode.elNobuyoshi Nakada2012-08-122-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-mode-map): Remove unnecessary binding for `newline'. (ruby-move-to-block): When moving backward, stop at block opening, not indentation. * progmodes/ruby-mode.el (ruby-brace-to-do-end) (ruby-do-end-to-brace, ruby-toggle-block): New functions. * progmodes/ruby-mode.el (ruby-mode-map): Add binding for `ruby-toggle-block'. * test/automated/ruby-mode-tests.el (ruby-move-to-block-stops-at-opening) (ruby-toggle-block-to-do-end, ruby-toggle-block-to-brace): New test.
* | ChangeLog date fixesGlenn Morris2012-08-101-7/+1
| |
* | Merge from emacs-24; up to 2012-05-02T11:38:01Z!lekktu@gmail.comChong Yidong2012-08-113-1/+65
|\ \ | |/
| * * test/automated/files.el (files-test-disable-local-variables): New test.Glenn Morris2012-08-102-0/+15
| |
| * * test/automated/files.el: New file.Glenn Morris2012-08-082-0/+45
| |
| * * test/automated/Makefile.in (all): Fix typo.Glenn Morris2012-08-072-1/+5
| |
| * Bump version to 24.1.Chong Yidong2012-06-011-0/+4
| | | | | | | | | | Add release logs. Regenerate AUTHORS and ldefs-boot.el.
* | * test/automated/ruby-mode-tests.el (ruby-should-indent):Dmitry Gutov2012-08-102-3/+145
| | | | | | | | | | | | | | | | | | Add docstring, check (current-indentation) instead of (current-column). (ruby-should-indent-buffer): New function. Add tests for `ruby-deep-indent-paren' behavior. Port all tests from test/misc/test_ruby_mode.rb in Ruby repo. Fixes: debbugs:12169
* | Merge stuff from upsteam ruby-mode, part 1.Dmitry Gutov2012-08-102-9/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-mode-map): Remove deprecated binding (use `M-;' instead). (ruby-expr-beg, ruby-parse-partial): ?, _, and : are symbol constituents, ! is not (but kinda should be). (ruby-singleton-class-p): New function. (ruby-expr-beg, ruby-in-here-doc-p) (ruby-syntax-propertize-heredoc): Use it. (ruby-syntax-propertize-function): Adjust for changes in `ruby-syntax-propertize-heredoc'. * test/automated/ruby-mode-tests.el (ruby-should-indent) (ruby-assert-state): New functions. Add new tests. Fixes: debbugs:12169
* | New tests for XML name expansion.David Engster2012-07-292-1/+48
| | | | | | | | | | | | * automated/xml-parse-tests.el (xml-parse-tests--qnames): New variable to hold test data for name expansion. (xml-parse-tests): Test the two different types of name expansion.
* | * test/automated/occur-tests.el (occur-test-case): Use predefinedJuri Linkov2012-07-292-22/+32
| | | | | | | | buffer name " *test-occur*" instead of a random buffer name.
* | * lisp/progmodes/ruby-mode.el (ruby-parse-partial): No error when endDmitry Gutov2012-07-202-0/+43
| | | | | | | | | | | | | | up inside string symbol literal. * test/automated/ruby-mode-tests.el: New file with one test. Fixes: debbugs:11923
* | * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Mark "${#VAR"Stefan Monnier2012-07-172-0/+10
| | | | | | | | | | | | | | as not-a-comment. * test/indent/shell.sh: Add test case for ${#VAR}. Fixes: debbugs:11946
* | * lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): Highlight not onlyStefan Monnier2012-07-172-0/+15
| | | | | | | | | | | | | | | | | | | | $$..$$ but also $..$ using regexps. Use tex-verbatim for \url and \path. (tex-font-lock-keywords): Define as defconst like the others. (tex-common-initialization): Don't use font-lock-syntax-table any more. * test/indent/latex-mode.tex: New file. Fixes: debbugs:11953
* | More CL cleanups and reduction of use of cl.el.Stefan Monnier2012-07-112-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * woman.el, winner.el, vc/vc-rcs.el, vc/vc-hooks.el, vc/vc-hg.el: * vc/vc-git.el, vc/vc-dir.el, vc/vc-bzr.el, vc/vc-annotate.el: * textmodes/tex-mode.el, textmodes/sgml-mode.el, tar-mode.el: * strokes.el, ses.el, server.el, progmodes/js.el, progmodes/gdb-mi.el: * progmodes/flymake.el, progmodes/ebrowse.el, progmodes/compile.el: * play/tetris.el, play/snake.el, play/pong.el, play/landmark.el: * play/hanoi.el, play/decipher.el, play/5x5.el, nxml/nxml-mode.el: * net/secrets.el, net/quickurl.el, midnight.el, mail/footnote.el: * image-dired.el, ibuffer.el, ibuf-macs.el, ibuf-ext.el, hexl.el: * eshell/eshell.el, eshell/esh-io.el, eshell/esh-ext.el: * eshell/esh-cmd.el, eshell/em-ls.el, eshell/em-hist.el: * eshell/em-cmpl.el, eshell/em-banner.el: * url/url.el, url/url-queue.el, url/url-parse.el, url/url-http.el: * url/url-future.el, url/url-dav.el, url/url-cookie.el: * calendar/parse-time.el, test/eshell.el: Use cl-lib. * wid-browse.el, wdired.el, vc/vc.el, vc/vc-mtn.el, vc/vc-cvs.el: * vc/vc-arch.el, tree-widget.el, textmodes/texinfo.el: * textmodes/refill.el, textmodes/css-mode.el, term/tvi970.el: * term/ns-win.el, term.el, shell.el, ps-samp.el: * progmodes/perl-mode.el, progmodes/pascal.el, progmodes/gud.el: * progmodes/glasses.el, progmodes/etags.el, progmodes/cwarn.el: * play/gamegrid.el, play/bubbles.el, novice.el, notifications.el: * net/zeroconf.el, net/xesam.el, net/snmp-mode.el, net/mairix.el: * net/ldap.el, net/eudc.el, net/browse-url.el, man.el: * mail/mailheader.el, mail/feedmail.el: * url/url-util.el, url/url-privacy.el, url/url-nfs.el, url/url-misc.el: * url/url-methods.el, url/url-gw.el, url/url-file.el, url/url-expand.el: Dont use CL. * ibuf-ext.el (ibuffer-mark-old-buffers): Use float-time. * eshell/esh-opt.el (eshell-eval-using-options): Quote code with `lambda' rather than with `quote'. (eshell-do-opt): Adjust accordingly. (eshell-process-option): Simplify. * eshell/esh-var.el: * eshell/em-script.el: Require `esh-opt' for eshell-eval-using-options. * emacs-pcase.el (pcase--dontcare-upats, pcase--let*) (pcase--expand, pcase--u1): Rename pcase's internal `dontcare' pattern to `pcase--dontcare'. * emacs-cl.el (labels): Mark obsolete. (cl--letf, letf): Move to cl-lib. (cl--letf*, letf*): Remove. * emacs-cl-lib.el (cl-nth-value): Use defalias. * emacs-cl-macs.el (cl-dolist, cl-dotimes): Add indent rule. (cl-progv): Rewrite. (cl--letf, cl-letf): Move from cl.el. (cl-letf*): New macro. * emacs-cl-extra.el (cl--progv-before, cl--progv-after): Remove.
* | Clean up syntax-table usage in xml.elChong Yidong2012-07-051-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xml.el (xml--parse-buffer): Use xml-syntax-table. (xml-parse-tag): Likewise, and avoid changing entity tables. (xml-syntax-table): Define from scratch, making sure not to give x2000 and other Unicode spaces whitespace syntax, since those are not spaces in XML. (xml-parse-fragment): Delete unused function. (xml-name-start-char-re, xml-name-char-re, xml-name-re) (xml-names-re, xml-nmtoken-re, xml-nmtokens-re, xml-char-ref-re) (xml-entity-ref, xml-pe-reference-re) (xml-reference-re,xml-att-value-re, xml-tokenized-type-re) (xml-notation-type-re, xml-enumeration-re, xml-enumerated-type-re) (xml-att-type-re, xml-default-decl-re, xml-att-def-re) (xml-entity-value-re): Use syntax references in regexps where possible; no need to define inside a let-binding. (xml-parse-dtd): Use xml-pe-reference-re. (xml-entity-or-char-ref-re): New defconst. (xml-parse-string, xml-substitute-special): Use it.
* | * xml.el: Protect parser against XML bombs.Chong Yidong2012-07-032-2/+21
| | | | | | | | | | | | | | | | (xml-entity-expansion-limit): New variable. (xml-parse-string, xml-substitute-special): Use it. (xml-parse-dtd): Avoid infloop if the DTD is not terminated. * test/automated/xml-parse-tests.el: Update testcases.
* | * lisp/xml.el: Handle entity and character reference expansion correctly.Chong Yidong2012-07-032-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (xml-default-ns): New variable. (xml-entity-alist): Use XML spec definitions for lt and amp. (xml-parse-region): Make first two arguments optional. Discard text properties. (xml-parse-tag-1): New function, spun off from xml-parse-tag. All callers changed. (xml-parse-tag): Call xml-parse-tag-1. For backward compatibility, this function should not modify buffer contents. (xml-parse-tag-1): Fix opening-tag regexp. (xml-parse-string): Rewrite, handling entity and character references properly. (xml--entity-replacement-text): Signal an error if a parameter entity is undefined. * test/automated/xml-parse-tests.el (xml-parse-tests--data): More testcases.
* | * xml.el (xml-parse-dtd): Use proper regexps for ELEMENT declarations.Chong Yidong2012-07-011-1/+4
| | | | | | | | | | | | * test/automated/xml-parse-tests.el: Update testcase. Fixes: debbugs:7172
* | Improve xml parameter entity parsing, and add a new ERT test.Chong Yidong2012-07-012-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | * test/automated/xml-parse-tests.el: New file. * lisp/xml.el (xml--parse-buffer): New function. Move most of xml-parse-region here. (xml-parse-region): Copy region into a temporary buffer, since parameter entity substitution requires changing buffer contents. Use xml--parse-buffer. (xml-parse-file): Use xml--parse-buffer. (xml-parse-dtd): Make parameter entity substitution work right.
* | * lisp/emacs-lisp/cl.el (flet): Mark obsolete.Stefan Monnier2012-06-272-78/+83
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-flet*): New macro. * lisp/vc/vc-rcs.el (vc-rcs-annotate-command, vc-rcs-parse): * lisp/progmodes/js.el (js-c-fill-paragraph): * lisp/progmodes/ebrowse.el (ebrowse-switch-member-buffer-to-sibling-class) (ebrowse-switch-member-buffer-to-derived-class): * test/automated/ert-x-tests.el (ert-test-run-tests-interactively-2): * lisp/play/5x5.el (5x5-solver): Use cl-flet. Fixes: debbugs:11780
* | icalendar / icalendar-tests: Fix Bug#11473 -- unescape commas in timezone specsUlf Jasper2012-06-082-3/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-06-08 Nick Dokos <nicholas.dokos@hp.com> * calendar/icalendar.el (icalendar--parse-vtimezone): Import TZID string properly, fixes Bug#11473. 2012-06-08 Ulf Jasper <ulf.jasper@web.de> * automated/icalendar-tests.el (icalendar--parse-vtimezone): Test escaped commas in TZID (Bug#11473). (icalendar-import-with-timezone): New. (icalendar-real-world): Add new testcase as found in the bugreport of Bug#11473.
* | icalendar-tests: Fix Bug#11525 -- Add icalendar-import-format-uidUlf Jasper2012-05-292-33/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-05-29 Ulf Jasper <ulf.jasper@web.de> * calendar/icalendar.el (icalendar-export-region): Export UID properly. 2012-05-29 Leo Liu <sdl.web@gmail.com> * calendar/icalendar.el (icalendar-import-format): Add `icalendar-import-format-uid' (Bug#11525). (icalendar-import-format-uid): New. (icalendar--parse-summary-and-rest, icalendar--format-ical-event): Export UID.
* | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):Stefan Monnier2012-05-211-0/+2
| | | | | | | | | | | | Simplify Maven regexp, and make sure the file can't start with a space. Fixes: debbugs:11517
* | Command substitution already runs in a subshellGlenn Morris2012-05-202-1/+5
| | | | | | | | | | | | | | | | | | * Makefile.in (install-arch-indep, install-doc, install-info, uninstall): * leim/Makefile.in (leim-list.el, install): * lib-src/Makefile.in (insrcdir, $(DESTDIR)${archlibdir}): * lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs): * test/automated/Makefile.in (setwins): Scrap superfluous subshells.
* | add url-util.el test fileTed Zlatanov2012-05-152-0/+57
| | | | | | | | | | | | * automated/url-util-tests.el: New file to test lisp/url/url-util.el. Only `url-build-query-string' and `url-parse-query-string' are tested right now.
* | Add some shell indentation test cases.Stefan Monnier2012-04-283-2/+16
| | | | | | | | | | * test/indent/shell.sh: * test/indent/shell.rc: Add some test cases.
* | * lisp/progmodes/ruby-mode.el: Simplify last change, and cleanup code.Stefan Monnier2012-04-242-0/+23
| | | | | | | | | | | | | | (ruby-syntax-propertize-regexp): Remove. (ruby-syntax-propertize-function): Split regexp into chunks. Match following code directly. * test/indent/ruby.rb: New file, to test new syntax-propertize code.
* | Add another vc-bzr testGlenn Morris2012-04-102-1/+32
|/ | | | | | * lisp/vc/vc-bzr.el (vc-bzr-status): Avoid condition-case-unless-debug. * test/automated/vc-bzr.el (vc-bzr-test-faulty-bzr-autoloads): New test.
* Move url-future.el ERT test to test/automated/url-future-tests.el.Ted Zlatanov2012-02-132-0/+62
| | | | | | | * lisp/url/url-future.el (url-future-test): Move to test/automated. * test/automated/url-future-tests.el (url-future-tests): Move from lisp/url/url-future.el and rename.
* Fix typos in ChangeLogs.Juanma Barranquero2012-01-311-13/+13
|
* test/automated/icalendar-tests: Fix broken testUlf Jasper2012-01-292-4/+8
| | | | | | | 2012-01-29 Ulf Jasper <ulf.jasper@web.de> * automated/icalendar-tests.el (icalendar-import-non-recurring): Fix broken test, caused by missing trailing blank.
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-0539-39/+39
|
* Spelling fixes.Paul Eggert2011-12-301-4/+3
|
* Spelling fixes.Paul Eggert2011-12-181-1/+1
|