]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agoSynchronize cedet/semantic with Emacs.
xscript [Sun, 15 May 2011 20:16:47 +0000 (22:16 +0200)]
Synchronize cedet/semantic with Emacs.

7 years agoTest files contributed by Barry OReilly
Eric Ludlam [Thu, 2 Jan 2014 01:44:55 +0000 (20:44 -0500)]
Test files contributed by Barry OReilly

* test/manual/cedet/integ_src/globalref/test/ManagerTest.hh: These
 test files contributed by Barry OReilly, modified for use in the
 automated tests for CEDET, and with additional comments.
 inc/Util.hh, src/Util.cc: Search symbol both in and outside of
 namespaces.

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agoRemove compatibility function `cedet-called-interactively-p'.
David Engster [Sun, 28 Jul 2013 11:24:40 +0000 (13:24 +0200)]
Remove compatibility function `cedet-called-interactively-p'.

* lisp/cedet/cedet-compat.el (cedet-called-interactively-p): Remove.
  It is no longer needed since our minimum version is now 23.2, which
  has `called-interactively-p'.  Also, remove corresponding unit
  tests.

* tests/cedet-utests.el (cedet-utest-test-alist): Remove cedet-compat
  unit tests.

* All files: Replace `cedet-called-interactively-p' with
  `called-interactively-p', providing 'any as argument where it was
  still missing.

7 years agoFix interactive unit tests.
David Engster [Sun, 27 Nov 2011 19:04:01 +0000 (20:04 +0100)]
Fix interactive unit tests.

* pulse-utest.el (pulse-test): Use normal overlay functions.

* cedet-utests.el (chart): Require.

7 years agoAdd header comments and provide.
Eric Ludlam [Sat, 20 Aug 2011 17:04:00 +0000 (13:04 -0400)]
Add header comments and provide.

7 years agoDon't check contents after initial fil
Eric Ludlam [Sun, 31 Mar 2013 16:02:26 +0000 (12:02 -0400)]
Don't check contents after initial fil

* test/manual/cedet/cit-texi.el: (cit-srecode-fill-texi): Do not check
 contents after initial fill.  See comment for why.

7 years agoRemove obsolete cvs-auto-updated 'X-RCS' line.
xscript [Wed, 15 Sep 2010 14:27:53 +0000 (16:27 +0200)]
Remove obsolete cvs-auto-updated 'X-RCS' line.

7 years agoTexinfo support for cedet integration tests.
zappo [Sun, 24 Feb 2008 02:58:59 +0000 (02:58 +0000)]
Texinfo support for cedet integration tests.

7 years agoTest files contributed by Barry OReilly
Eric Ludlam [Thu, 2 Jan 2014 01:44:55 +0000 (20:44 -0500)]
Test files contributed by Barry OReilly

* test/manual/cedet/integ_src/globalref/test/ManagerTest.cc: These
 test files contributed by Barry OReilly, modified for use in the
 automated tests for CEDET, and with additional comments.
 inc/Util.hh, src/Util.cc: Search symbol both in and outside of
 namespaces.

7 years agoTests for polymorphism
Eric Ludlam [Sun, 18 Oct 2015 14:15:30 +0000 (10:15 -0400)]
Tests for polymorphism

* test/manual/cedet/cedet/semantic/tests/testpoly.cpp
 Tests for polymorphism with a couple examples where we could try to
 disambiguate.

7 years agoNew include for cpproot test that is in a subdirectory.
Eric Ludlam [Sun, 31 Mar 2013 19:24:06 +0000 (15:24 -0400)]
New include for cpproot test that is in a subdirectory.

7 years agoUse random temporary directory for integration tests
David Engster [Mon, 4 Nov 2013 21:31:41 +0000 (22:31 +0100)]
Use random temporary directory for integration tests

* tests/cedet-integ-test.el (cedet-integ-base): Use `make-temp-name'
  so that integrations tests can run in parallel.
  (cedet-integ-test-proj): Delete it after usage.
  (cit-check-compilation-for-error): Show compilation output in
  batch-mode.
* tests/cit-test.sh: Do not remove temporary directory.

7 years agoAccept any potential project directory during testing
David Engster [Mon, 9 Jan 2012 19:45:49 +0000 (20:45 +0100)]
Accept any potential project directory during testing

* tests/cit-test.sh: Set `ede-project-directories' to t during
 integration tests.

7 years ago* tests/cit-test.sh: Fix filename for integration test.
David Engster [Tue, 15 Nov 2011 20:29:00 +0000 (21:29 +0100)]
* tests/cit-test.sh: Fix filename for integration test.

7 years ago* cedet-load.el: Load cogre autoloads.
David Engster [Mon, 7 Nov 2011 19:34:04 +0000 (21:34 +0200)]
* cedet-load.el: Load cogre autoloads.

* tests/cedet-integ-test.el: Remove gnustep require.

* tests/cit-android.el: Fix require.

* tests/cit-test.sh: Fix paths when calling integration test.

7 years ago* cit-test.sh: Add support for running in batch mode.
David Engster [Tue, 19 Oct 2010 15:04:31 +0000 (17:04 +0200)]
* cit-test.sh: Add support for running in batch mode.

7 years agoReverse the exist status of Emacs.
zappo [Sat, 8 Aug 2009 22:15:31 +0000 (22:15 +0000)]
Reverse the exist status of Emacs.

7 years agoDetermine the STYLE of test to run. If none passed in, use Make.
zappo [Sat, 8 Aug 2009 21:52:40 +0000 (21:52 +0000)]
Determine the STYLE of test to run. If none passed in, use Make.

7 years agoAdd -f toggle-debug-on-quit flag
zappo [Sat, 30 May 2009 14:26:58 +0000 (14:26 +0000)]
Add -f toggle-debug-on-quit flag

7 years agoPatch from Marcus Harnisch
zappo [Tue, 24 Feb 2009 01:41:14 +0000 (01:41 +0000)]
Patch from Marcus Harnisch

* test/manual/cedet/cit-test.sh: (EMACS): Use conditional value from
 the environment.

7 years agoRemove more temporary directories
safanaj [Thu, 28 Aug 2008 23:10:25 +0000 (23:10 +0000)]
Remove more temporary directories

* test/manual/cedet/cit-test.sh: remove more dirs because to test
 ede-gnustep we need another dir, this is because `ede-new' check the
 :class-sym that don't match in /tmp/CEDET_INTEG (that contain a
 ede-proj-project).

7 years agoRun the tests.
zappo [Sun, 23 Mar 2008 00:15:47 +0000 (00:15 +0000)]
Run the tests.

7 years agoTest files contributed by Barry OReilly
Eric Ludlam [Thu, 2 Jan 2014 01:44:55 +0000 (20:44 -0500)]
Test files contributed by Barry OReilly

These test files contributed by Barry OReilly, modified for use in the
automated tests for CEDET, and with additional comments.  inc/Util.hh,
src/Util.cc: Search symbol both in and outside of namespaces.

7 years agoUniquafy names from last example from Martin to include ms_ prefix.
Eric Ludlam [Wed, 8 Apr 2015 00:53:45 +0000 (20:53 -0400)]
Uniquafy names from last example from Martin to include ms_ prefix.

7 years ago(ms_structs, fun): New test example from Marting Stein.
Eric Ludlam [Sun, 22 Mar 2015 21:36:44 +0000 (17:36 -0400)]
(ms_structs, fun): New test example from Marting Stein.

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years ago(cpprootsys.h, projincmacros.h): New includes (projmacro_a): New fcn.
Eric Ludlam [Sun, 31 Mar 2013 19:25:24 +0000 (15:25 -0400)]
(cpprootsys.h, projincmacros.h): New includes (projmacro_a): New fcn.

7 years agoNew test file.
Eric Ludlam [Tue, 1 Jan 2013 03:19:00 +0000 (22:19 -0500)]
New test file.

7 years agoRemove obsolete cvs-auto-updated 'X-RCS' line.
xscript [Wed, 15 Sep 2010 14:27:53 +0000 (16:27 +0200)]
Remove obsolete cvs-auto-updated 'X-RCS' line.

7 years ago(cit-symref-quick-find-test): New. (cit-symref-count): Add a small wait of .1.
zappo [Sun, 13 Jun 2010 01:12:27 +0000 (01:12 +0000)]
(cit-symref-quick-find-test): New. (cit-symref-count): Add a small wait of .1.

7 years agoSemantic Symref testing.
zappo [Sun, 18 Apr 2010 00:33:36 +0000 (00:33 +0000)]
Semantic Symref testing.

7 years agoAdd test files
Eric Ludlam [Thu, 2 Jan 2014 01:44:55 +0000 (20:44 -0500)]
Add test files

* test/manual/cedet/integ_src/globalref/src/Manager.cc: These test
 files contributed by Barry OReilly, modified for use in the automated
 tests for CEDET, and with additional comments.  inc/Util.hh,
 src/Util.cc: Search symbol both in and outside of namespaces.

7 years ago(func): Add local8 with a ternary conditional.
Eric Ludlam [Sat, 19 Apr 2014 02:04:42 +0000 (22:04 -0400)]
(func): Add local8 with a ternary conditional.

7 years agoFix typo in last commit.
David Engster [Sun, 2 Feb 2014 19:35:23 +0000 (20:35 +0100)]
Fix typo in last commit.

7 years agoAdd test for parsing local variables
David Engster [Sun, 2 Feb 2014 19:31:32 +0000 (20:31 +0100)]
Add test for parsing local variables

* tests/cedet/semantic/test/manual/cedet/testlocalvars.cpp: New file.
* tests/cedet/semantic/test/manual/cedet/Project.ede: Add above.
* tests/cedet/semantic/test/manual/cedet/Makefile: Regenerate.
* tests/cedet/semantic/ia-utest.el (semantic-ia-utest-file-list): Add
  new test file.

7 years agoSynchronize base 'cedet/ede' with Emacs
xscript [Tue, 26 Apr 2011 00:32:46 +0000 (02:32 +0200)]
Synchronize base 'cedet/ede' with Emacs

7 years agoValidate project overrides
Eric Ludlam [Thu, 28 Mar 2013 02:25:00 +0000 (22:25 -0400)]
Validate project overrides

* test/manual/cedet/cit-srec.el: (cit-srecode-map-test): Expand tests
 to validate that project settings correctly override system level
 templates.

7 years agoRemove obsolete cvs-auto-updated 'X-RCS' line.
xscript [Wed, 15 Sep 2010 14:27:53 +0000 (16:27 +0200)]
Remove obsolete cvs-auto-updated 'X-RCS' line.

7 years agoSRecoder feature testing.
zappo [Sun, 24 Feb 2008 18:21:56 +0000 (18:21 +0000)]
SRecoder feature testing.

7 years agoFix paths to current code location.
xscript [Wed, 15 Sep 2010 13:45:26 +0000 (15:45 +0200)]
Fix paths to current code location.

* Makefile (CEDET_ELISP_PACKAGES, CEDET_VERSION, recompile)
(utest): Fix paths to current code location.

* cedet-build.el: Idem.

* tests/Makefile (LOADPATH): Idem.

7 years ago(Lisp_LISP): Add cit-externaldb.el
zappo [Sun, 13 Jun 2010 01:13:42 +0000 (01:13 +0000)]
(Lisp_LISP): Add cit-externaldb.el

7 years ago(Lisp_LISP): Add cit-symref.el
zappo [Sun, 18 Apr 2010 00:39:03 +0000 (00:39 +0000)]
(Lisp_LISP): Add cit-symref.el

7 years ago(Lisp_LISP): Add cit-dist.el
zappo [Sat, 26 Dec 2009 22:43:22 +0000 (22:43 +0000)]
(Lisp_LISP): Add cit-dist.el

7 years ago(ELISPPRELOAD): New (Lisp): Use preloads.
zappo [Fri, 16 Oct 2009 20:20:04 +0000 (20:20 +0000)]
(ELISPPRELOAD): New (Lisp): Use preloads.

7 years ago(LOADPATH): Add cogre to the load path.
zappo [Sat, 30 May 2009 14:35:28 +0000 (14:35 +0000)]
(LOADPATH): Add cogre to the load path.

7 years ago(Lisp_LISP): Add cit-uml.el (Misc_MISC): Add cit-uml.cgr
zappo [Sat, 30 May 2009 14:28:20 +0000 (14:28 +0000)]
(Lisp_LISP): Add cit-uml.el (Misc_MISC): Add cit-uml.cgr

7 years agoMerge from 1.0pre6 branch
zappo [Sun, 1 Mar 2009 04:39:11 +0000 (04:39 +0000)]
Merge from 1.0pre6 branch

7 years ago(LOADPATH): Add speedbar. (EMACSFLAGS): New variable (Lisp): Use above.
zappo [Tue, 24 Feb 2009 01:36:35 +0000 (01:36 +0000)]
(LOADPATH): Add speedbar. (EMACSFLAGS): New variable (Lisp): Use above.

7 years ago(LOADPATH): Add contrib. (Misc): New (dist): Add Misc
zappo [Wed, 28 Jan 2009 16:10:29 +0000 (16:10 +0000)]
(LOADPATH): Add contrib. (Misc): New (dist): Add Misc

7 years ago(LOADPATH): Added
zappo [Sat, 24 Jan 2009 04:55:16 +0000 (04:55 +0000)]
(LOADPATH): Added

7 years ago(Lisp_LISP): Add cit-gnustep.el
zappo [Thu, 4 Sep 2008 01:53:48 +0000 (01:53 +0000)]
(Lisp_LISP): Add cit-gnustep.el

7 years ago(all, dist): Add scripts (scripts): New
zappo [Sat, 23 Aug 2008 00:20:13 +0000 (00:20 +0000)]
(all, dist): Add scripts (scripts): New

7 years ago(templates_MISC, tempaltes): New (all, dist): add templates
zappo [Sun, 24 Feb 2008 18:26:50 +0000 (18:26 +0000)]
(templates_MISC, tempaltes): New (all, dist): add templates

7 years ago(Lisp_LISP): Add cit-srec.el
zappo [Sun, 24 Feb 2008 18:24:57 +0000 (18:24 +0000)]
(Lisp_LISP): Add cit-srec.el

7 years ago(Lisp_LISP): Add cit-cpp, cit-el, cit-texi, cit-load
zappo [Sun, 24 Feb 2008 03:00:27 +0000 (03:00 +0000)]
(Lisp_LISP): Add cit-cpp, cit-el, cit-texi, cit-load

7 years agoNew Makefile.
zappo [Tue, 19 Feb 2008 03:42:01 +0000 (03:42 +0000)]
New Makefile.

7 years agoTest friends
Eric Ludlam [Wed, 26 Nov 2014 19:27:10 +0000 (14:27 -0500)]
Test friends

* test/manual/cedet/cedet/semantic/tests/testfriends.cpp:
 (Af): Add a friend of C w/out the CLASS token. (C): New.  (scA, scB,
 scC, scD): New test classes. (main): New (scA::PublicMethod,
 scB::b_pub_method, scC::c_pub_method) (scD::d_pub_method): New.

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agoFake lisp.h for project detection purposes.
Eric Ludlam [Sun, 20 Apr 2014 18:05:50 +0000 (14:05 -0400)]
Fake lisp.h for project detection purposes.

7 years agoNew test for project variables.
Eric Ludlam [Mon, 12 Mar 2012 22:59:36 +0000 (18:59 -0400)]
New test for project variables.

7 years agoTest Makefile.am for subdir in project-am detector.
Eric Ludlam [Sun, 18 May 2014 22:55:12 +0000 (18:55 -0400)]
Test Makefile.am for subdir in project-am detector.

7 years agoNew test files combining macros and EDE
Eric Ludlam [Sun, 12 Apr 2015 01:13:02 +0000 (21:13 -0400)]
New test files combining macros and EDE

7 years agoAdd header comments and provide.
Eric Ludlam [Sat, 20 Aug 2011 17:07:44 +0000 (13:07 -0400)]
Add header comments and provide.

7 years agoNew template file testing the PROJECT variable setting.
Eric Ludlam [Thu, 28 Mar 2013 02:24:19 +0000 (22:24 -0400)]
New template file testing the PROJECT variable setting.

7 years agoTest project configuration file.
Eric Ludlam [Sun, 1 Jun 2014 02:01:52 +0000 (22:01 -0400)]
Test project configuration file.

7 years agoNew test files combining macros and EDE
Eric Ludlam [Sun, 12 Apr 2015 01:13:02 +0000 (21:13 -0400)]
New test files combining macros and EDE

7 years agoFix unit testing for several tests and do better error checking.
David Engster [Thu, 1 Dec 2011 19:13:55 +0000 (20:13 +0100)]
Fix unit testing for several tests and do better error checking.

* semantic/lex-spp-utests.el (semantic-lex-spp-write-utest):
* tests/cedet-utests.el (cedet-utest-eieio-classloader): Throw
  error if we cannot locate test files.

* semantic/utest-c.el (semantic-utest-c-compare)
  (semantic-utest-c-conditionals):
* semantic/lex-spp-utest.el (semantic-lex-spp-write-utest): Adapt
  to new directory structure and do better error checking to avoid
  silent failures in the future.

7 years agoAdd header comments and provide.
Eric Ludlam [Sat, 20 Aug 2011 17:07:36 +0000 (13:07 -0400)]
Add header comments and provide.

7 years agoDisable saving EDE's cache file.
Eric Ludlam [Sat, 6 Apr 2013 11:48:10 +0000 (07:48 -0400)]
Disable saving EDE's cache file.

7 years agoDon't init semantic mode at this point
Eric Ludlam [Sun, 16 Sep 2012 16:10:17 +0000 (12:10 -0400)]
Don't init semantic mode at this point

* test/manual/cedet/cit-load.el: cedet-integ-test.el
 (cit-srecode-fill-with-stuff): Stop initializing semantic-mode.

cit-load.el
Turn on semantic-mode.

7 years agoDisable `ede-project-directories' checking during tests.
Eric Ludlam [Mon, 16 Jan 2012 20:02:12 +0000 (15:02 -0500)]
Disable `ede-project-directories' checking during tests.

7 years agoFirst changes to make them work.
David Engster [Tue, 1 Nov 2011 21:11:12 +0000 (23:11 +0200)]
First changes to make them work.

* srecode/filters.el: Remove requires for `srecode/table' and
  `srecode/insert'. Instead, declare variables and functions
  explicitly.

* srecode/insert.el: Add require for `srecode/filters'.

* tests/cedet-integ-test.el: Fix require `ede/make'. Add
  `srecode/find', remove cit/gnustep.
  (cedet-integ-test-GNUStep): Removed for now.
  (cit-srecode-fill-with-stuff): Activate `semantic-mode'.

* tests/cit-gnustep.el: Fix require.

* tests/cit-load.el: Remove Emacs22 compat.

* tests/cit-test.sh: Fix test call.

7 years agoRemove obsolete cvs-auto-updated 'X-RCS' line.
xscript [Wed, 15 Sep 2010 14:27:53 +0000 (16:27 +0200)]
Remove obsolete cvs-auto-updated 'X-RCS' line.

7 years ago(semantic-c): Hack for Emacs 21 to get things running.
zappo [Sun, 18 Oct 2009 16:15:59 +0000 (16:15 +0000)]
(semantic-c): Hack for Emacs 21 to get things running.

7 years agoDisable semanticdb-file saving. Disable srecode map saving.
zappo [Sat, 14 Mar 2009 15:17:28 +0000 (15:17 +0000)]
Disable semanticdb-file saving. Disable srecode map saving.

7 years ago(inhibit-splash-screen): Set this.
zappo [Tue, 11 Mar 2008 02:35:54 +0000 (02:35 +0000)]
(inhibit-splash-screen): Set this.

7 years ago(cit-src-dir): New var.
zappo [Sun, 24 Feb 2008 18:24:42 +0000 (18:24 +0000)]
(cit-src-dir): New var.

7 years agoTest system load file.
zappo [Sun, 24 Feb 2008 02:58:38 +0000 (02:58 +0000)]
Test system load file.

7 years agoNew test file.
Eric Ludlam [Fri, 30 May 2014 23:19:43 +0000 (19:19 -0400)]
New test file.

7 years agoBuild fix for older gnutls versions
Lars Ingebrigtsen [Wed, 25 Jan 2017 13:21:13 +0000 (14:21 +0100)]
Build fix for older gnutls versions

* src/gnutls.c (emacs_gnutls_handle_error):
GNUTLS_E_PREMATURE_TERMINATION is apparently only present in
gnutls-3.

7 years agoediff-difference-vector-alist: Drop duplicated definition
Tino Calancha [Wed, 25 Jan 2017 06:15:16 +0000 (15:15 +0900)]
ediff-difference-vector-alist: Drop duplicated definition

* lisp/vc/ediff-init.el (ediff-difference-vector-alist):
Drop duplicated definition.
(ediff-difference-vector-A, ediff-difference-vector-B)
(ediff-difference-vector-C, ediff-difference-vector-Ancestor):
Move definition before 'ediff-difference-vector-alist'.

7 years agoRevert "nnimap.el: support additional expunge options"
Lars Ingebrigtsen [Wed, 25 Jan 2017 00:18:43 +0000 (01:18 +0100)]
Revert "nnimap.el: support additional expunge options"

This reverts commit 4e9baea6aba1633074889339dcc7cdc9d73880d3.

The patch broke fetching new mail:

Debugger entered--Lisp error: (error "Format specifier doesn’t match argument type")
  format("%d .*\n" (t ("OK" ("HIGHESTMODSEQ" "914696") "Expunge" "completed.") ("VANISHED" "1825937") ("0" "RECENT")))
  (looking-at (format "%d .*\n" sequence))
  (not (looking-at (format "%d .*\n" sequence)))
  (progn (while (and (not (bobp)) (progn (forward-line -1) (looking-at "\\*\\|[0-9]+ OK NOOP")))) (not (looking-at (format "%d .*\n" sequence))))

7 years agonnimap.el: support additional expunge options
Nikolaus Rath [Tue, 24 Jan 2017 23:46:13 +0000 (00:46 +0100)]
nnimap.el: support additional expunge options

* lisp/gnus/nnimap.el (nnimap-close-group)
(nnimap-request-expire-articles, nnimap-delete-article)
(nnimap-request-scan): add new 'never, 'immediate, and 'on-exit
settings for nnimap-expunge (bug#20670).

7 years agoDon't tag Gnus bugs with "gnus"
Lars Ingebrigtsen [Tue, 24 Jan 2017 23:29:24 +0000 (00:29 +0100)]
Don't tag Gnus bugs with "gnus"

* lisp/gnus/gnus-msg.el (gnus-bug): Remove the bug package tags.

* lisp/gnus/gnus.el (gnus-bug-package): Removed; Gnus doesn't
have its own package any more in the bug tracker.

7 years agoTweak TLS error messaging on closed connections
Lars Ingebrigtsen [Tue, 24 Jan 2017 23:23:28 +0000 (00:23 +0100)]
Tweak TLS error messaging on closed connections

* src/gnutls.c (emacs_gnutls_handle_error): Demote the normal
peer-closed-connection "The TLS connection was non-properly
terminated" message to a lower level so that it isn't shown to
the user by default.

7 years agoAvoid having eww unexpectedly open external browsers
Lars Ingebrigtsen [Tue, 24 Jan 2017 22:39:05 +0000 (23:39 +0100)]
Avoid having eww unexpectedly open external browsers

* lisp/net/eww.el (eww-render): Instead of opening unsupported
content types like audio/mpeg directly in an external browser
(which can be very confusing especially when something
redirects to a file like that), just display a simple
interstitial that people can choose to click on or not
(bug#22671).

7 years agoWhen opening new eww buffers, use buffer names based on the host name
Lars Ingebrigtsen [Tue, 24 Jan 2017 21:40:57 +0000 (22:40 +0100)]
When opening new eww buffers, use buffer names based on the host name

* lisp/net/eww.el (eww-browse-url): When opening in a new
window, use a buffer name based on the host name (bug#23738).
(eww--dwim-expand-url): Refactored out into its own function
for easier reuse.

7 years agoxml: Fix parsing of default namespace with quoted names
David Engster [Tue, 24 Jan 2017 21:47:53 +0000 (22:47 +0100)]
xml: Fix parsing of default namespace with quoted names

* lisp/xml.el (xml-parse-attlist): Properly extract namespace when
  parsing is done with quoted symbol names (bug#23440).
* test/lisp/xml-tests.el (xml-parse-test--default-namespace-qnames)
  (xml-parse-test-default-namespace-qnames): Test for the above.

7 years agoFix rendering of some complex SVG images
Lars Ingebrigtsen [Tue, 24 Jan 2017 21:21:45 +0000 (22:21 +0100)]
Fix rendering of some complex SVG images

* lisp/net/shr.el (shr-parse-image-data): Don't transform
SVG->DOM->XML unless we're blocking images, as this is apt to
destroy the SVG (bug#24111).

7 years agoClarify the last clarification
Lars Ingebrigtsen [Tue, 24 Jan 2017 20:33:51 +0000 (21:33 +0100)]
Clarify the last clarification

* lisp/net/shr.el (shr-width): Clarify the interaction with
`shr-use-fonts' (bug#24928).

7 years agoshr-width doc clarification
Lars Ingebrigtsen [Tue, 24 Jan 2017 20:31:17 +0000 (21:31 +0100)]
shr-width doc clarification

* lisp/net/shr.el (shr-width): Clarify the interaction with
`shr-use-fonts' (bug#24928).

7 years agoAllow passing in max-width/height
Lars Ingebrigtsen [Tue, 24 Jan 2017 20:17:09 +0000 (21:17 +0100)]
Allow passing in max-width/height

* lisp/net/shr.el (shr-rescale-image): Allow passing in
max-width/height (bug#25287).

7 years ago* lisp/progmodes/vhdl-mode.el: Avoid add-to-list on local vars
Stefan Monnier [Tue, 24 Jan 2017 16:31:11 +0000 (11:31 -0500)]
* lisp/progmodes/vhdl-mode.el: Avoid add-to-list on local vars

Require `cl' for `pushnew'.
(vhdl-scan-project-contents, vhdl-compose-wire-components)
(vhdl-uniquify): Use `pushnew' instead of `add-to-list'.

7 years agoFix comment detection on open parens
Noam Postavsky [Sun, 18 Dec 2016 05:00:30 +0000 (00:00 -0500)]
Fix comment detection on open parens

Characters having both open paren syntax and comment start syntax were
being detected as open parens even when they should have been part a
comment starter (Bug#24870).

* src/syntax.c (in_2char_comment_start): New function, extracted from
`scan_sexps_forward'.
(scan_sexps_forward): Add check for a 2-char comment starter before the
loop.  Inside the loop, do that check after incrementing the 'from'
character index.  Move the single char comment syntax cases into the
switch instead of special casing them before.
* test/src/syntax-tests.el (parse-partial-sexp-paren-comments):
(parse-partial-sexp-continue-over-comment-marker): New tests.

7 years agoGive , and .@ doc strings. Fixes bug #24561.
Alan Mackenzie [Mon, 23 Jan 2017 19:00:49 +0000 (19:00 +0000)]
Give , and .@ doc strings.  Fixes bug #24561.

Also make *Help* links to ``' possible.  Also make usable as such doc strings
on the function-documentation property of a symbol.

* lisp/emacs-lisp/backquote.el (top-level): Give , and '@ doc strings on the
function-documentation property.  Also give these symbols a reader-construct
property.

* lisp/help-fns.el (describe-function): Allow the function-documentation
property to work.  Use princ rather than prin1 to print the function's name
when it has a reader-construct property.
(help-fns-signature): Don't insert `high-usage' for a reader-construct.
(describe-function-1): Adapt to process documentation on the
function-documentation property.  Print "a reader construct" when appropriate.

* lisp/help-mode.el (help-xref-symbol-regexp): Amend this regexp also to match
``'.

7 years ago; Fix previous commit
Mark Oteiza [Sun, 22 Jan 2017 15:18:42 +0000 (10:18 -0500)]
; Fix previous commit

* lisp/play/dunnet.el (dun-drop): Nix assignment of nonexistent binding.

7 years agoImprove uses of CHECK_LIST etc.
Paul Eggert [Sun, 22 Jan 2017 08:18:40 +0000 (00:18 -0800)]
Improve uses of CHECK_LIST etc.

* src/eval.c (FletX): Report an error for invalid constructs like
‘(let* (a . 0))’, so that ‘let*’ is more consistent with ‘let’.
(lambda_arity): Use plain CHECK_CONS.
* src/fns.c (CHECK_LIST_END): Move from here to lisp.h.
(Fcopy_alist): Remove unnecessary CHECK_LIST call, since
concat does that for us.
(Fnthcdr, Fmember, Fmemql, Fdelete, Fnreverse):
Use CHECK_LIST_END, not CHECK_LIST_CONS.  This hoists a
runtime check out of the loop.
(Fmemq): Simplify and use CHECK_LIST_END instead of CHECK_LIST.
(Fassq, Fassoc, Frassq, Frassoc):
Simplify and use CHECK_LIST_END instead of CAR.
(assq_no_quit, assoc_no_quit): Simplify and assume proper list.
(Fnconc): Use plain CHECK_CONS, and do-while instead of while loop.
* src/fontset.c (Fnew_fontset):
* src/frame.c (Fmodify_frame_parameters):
Use CHECK_LIST_END at end, rather than CHECK_LIST at start, for a
more-complete check.
* src/gfilenotify.c (Fgfile_add_watch):
Omit unnecessary CHECK_LIST, since Fmember does that for us.
* src/lisp.h (lisp_h_CHECK_LIST_CONS, CHECK_LIST_CONS):
Remove; no longer used.
(CHECK_LIST_END): New inline function.