<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/src, branch scratch/dbusbind-type-tests</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>dbusbind: Check required args following :type</title>
<updated>2015-09-03T09:20:31+00:00</updated>
<author>
<name>Daiki Ueno</name>
</author>
<published>2015-09-03T09:19:12+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=def5829c0769b142b3cc0d69a9ad58935a9f237f'/>
<id>def5829c0769b142b3cc0d69a9ad58935a9f237f</id>
<content type='text'>
* src/dbusbind.c (xd_build_message): If no argument follows a type
specification, pass Qnil as OBJECT argument of
xd_append_arg_with_type_spec.
* test/automated/dbus-tests.el
(dbus-test04-create-message-parameters): Remove a temporary
comment.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dbusbind.c (xd_build_message): If no argument follows a type
specification, pass Qnil as OBJECT argument of
xd_append_arg_with_type_spec.
* test/automated/dbus-tests.el
(dbus-test04-create-message-parameters): Remove a temporary
comment.
</pre>
</div>
</content>
</entry>
<entry>
<title>dbusbind: Avoid redefinition of :signature symbol</title>
<updated>2015-09-03T08:58:54+00:00</updated>
<author>
<name>Daiki Ueno</name>
</author>
<published>2015-09-03T08:53:58+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=777848833cc9ff40411b78ad107e755172a881b8'/>
<id>777848833cc9ff40411b78ad107e755172a881b8</id>
<content type='text'>
* src/dbusbind.c (syms_of_dbusbind): Don't redefine `:signature'
symbol.
(xd_dbus_message_to_lisp): Temporarily map
QCdbus_message_signature to QCdbus_type_signature.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dbusbind.c (syms_of_dbusbind): Don't redefine `:signature'
symbol.
(xd_dbus_message_to_lisp): Temporarily map
QCdbus_message_signature to QCdbus_type_signature.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix minor glitches in D-Bus code.</title>
<updated>2015-09-02T13:54:00+00:00</updated>
<author>
<name>Michael Albinus</name>
</author>
<published>2015-09-02T13:54:00+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=8987263eb638e916b14b68e45d4b037f480f80e1'/>
<id>8987263eb638e916b14b68e45d4b037f480f80e1</id>
<content type='text'>
* src/dbusbind.c (xd_build_message): New arg CALLER.
(Fdbus_message_internal, Fdbus_message_internal_to_lisp): Use it.
(XD_ADD_HEADER): Rename from ADD_HEADER.
(syms_of_dbusbind): Declare Qdbus_message_internal_to_lisp.

* test/automated/dbus-tests.el
(dbus--test-create-message-with-args): Add docstring.  Use Emacs
namespace for interface and path.
(dbus-test04-create-message-parameters): Add tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dbusbind.c (xd_build_message): New arg CALLER.
(Fdbus_message_internal, Fdbus_message_internal_to_lisp): Use it.
(XD_ADD_HEADER): Rename from ADD_HEADER.
(syms_of_dbusbind): Declare Qdbus_message_internal_to_lisp.

* test/automated/dbus-tests.el
(dbus--test-create-message-with-args): Add docstring.  Use Emacs
namespace for interface and path.
(dbus-test04-create-message-parameters): Add tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>dbusbind: Fix typo in cd77eaeb</title>
<updated>2015-09-02T07:47:45+00:00</updated>
<author>
<name>Daiki Ueno</name>
</author>
<published>2015-09-02T07:45:14+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=88ef2317725a4597a37f9f1094feecbb3cf33971'/>
<id>88ef2317725a4597a37f9f1094feecbb3cf33971</id>
<content type='text'>
* src/dbusbind.c (xd_dbus_type_to_symbol): Return Qnil instead of
DBUS_TYPE_INVALID, if the type is unknown.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dbusbind.c (xd_dbus_type_to_symbol): Return Qnil instead of
DBUS_TYPE_INVALID, if the type is unknown.
</pre>
</div>
</content>
</entry>
<entry>
<title>dbusbind: Add function to expose D-Bus message</title>
<updated>2015-09-02T06:46:21+00:00</updated>
<author>
<name>Daiki Ueno</name>
</author>
<published>2015-09-02T06:46:21+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=cd77eaeb5e9891a46ff349a6fa76f02220f11d28'/>
<id>cd77eaeb5e9891a46ff349a6fa76f02220f11d28</id>
<content type='text'>
* src/dbusbind.c (xd_dbus_type_to_symbol): New function.
(xd_arg_type_to_lisp): New function.
(struct xd_message): New struct.
(xd_build_message): New function, split from Fdbus_message_internal.
(Fdbus_message_internal): Use xd_build_message.
(xd_dbus_message_to_lisp): New function.
(Fdbus_message_internal_to_lisp): New function.
(syms_of_dbusbind): Register Sdbus_message_internal_to_lisp,
QCdbus_message_path, QCdbus_message_interface,
QCdbus_message_member, QCdbus_message_destination,
QCdbus_message_sender, QCdbus_message_signature,
and QCdbus_message_args.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dbusbind.c (xd_dbus_type_to_symbol): New function.
(xd_arg_type_to_lisp): New function.
(struct xd_message): New struct.
(xd_build_message): New function, split from Fdbus_message_internal.
(Fdbus_message_internal): Use xd_build_message.
(xd_dbus_message_to_lisp): New function.
(Fdbus_message_internal_to_lisp): New function.
(syms_of_dbusbind): Register Sdbus_message_internal_to_lisp,
QCdbus_message_path, QCdbus_message_interface,
QCdbus_message_member, QCdbus_message_destination,
QCdbus_message_sender, QCdbus_message_signature,
and QCdbus_message_args.
</pre>
</div>
</content>
</entry>
<entry>
<title>* doc/misc/dbus.texi (Type Conversion): Check for subfeature.</title>
<updated>2015-08-30T13:51:36+00:00</updated>
<author>
<name>Michael Albinus</name>
</author>
<published>2015-08-30T13:51:36+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=47b70267213517f95283fd6b71e51ab0fef7454e'/>
<id>47b70267213517f95283fd6b71e51ab0fef7454e</id>
<content type='text'>
* src/dbusbind.c (syms_of_dbusbind):
* lisp/net/dbus.el (top): Provide proper subfeature.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dbusbind.c (syms_of_dbusbind):
* lisp/net/dbus.el (top): Provide proper subfeature.
</pre>
</div>
</content>
</entry>
<entry>
<title>dbusbind: Add alternative form of compound argument</title>
<updated>2015-08-28T07:25:01+00:00</updated>
<author>
<name>Daiki Ueno</name>
</author>
<published>2015-08-28T01:53:35+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f2749ce71a82be28a4035d2aae41180f39ce23b5'/>
<id>f2749ce71a82be28a4035d2aae41180f39ce23b5</id>
<content type='text'>
* src/dbusbind.c (xd_append_basic_arg): New function, split from
xd_append_arg.
(xd_append_arg): Use xd_append_arg.
(xd_type_spec_to_signature): New function.
(xd_append_arg_with_type_spec): New function.
(Fdbus_message_internal): Use xd_append_arg_with_type_spec,
instead of xd_append_arg.
(syms_of_dbusbind): Provide subfeature `:type'.
* doc/misc/dbus.texi (Type Conversion): Mention `:type' keyword.

Fixes: debbugs:20193
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dbusbind.c (xd_append_basic_arg): New function, split from
xd_append_arg.
(xd_append_arg): Use xd_append_arg.
(xd_type_spec_to_signature): New function.
(xd_append_arg_with_type_spec): New function.
(Fdbus_message_internal): Use xd_append_arg_with_type_spec,
instead of xd_append_arg.
(syms_of_dbusbind): Provide subfeature `:type'.
* doc/misc/dbus.texi (Type Conversion): Mention `:type' keyword.

Fixes: debbugs:20193
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test case for ‘format’ bug and refactor</title>
<updated>2015-08-27T15:52:02+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2015-08-27T15:50:22+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=6dbe056b9beec0b9ff6c84331a49c568408dbbaa'/>
<id>6dbe056b9beec0b9ff6c84331a49c568408dbbaa</id>
<content type='text'>
* src/editfns.c (styled_format): Refactor internally, mostly by
moving declarations closer to uses.  This should not affect behavior.
* test/automated/textprop-tests.el (textprop-tests-format): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/editfns.c (styled_format): Refactor internally, mostly by
moving declarations closer to uses.  This should not affect behavior.
* test/automated/textprop-tests.el (textprop-tests-format): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix ‘format’ bug with property offsets</title>
<updated>2015-08-27T11:09:30+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2015-08-27T11:09:11+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f33c164123e2bc46c4d06853b1a32130126d54c8'/>
<id>f33c164123e2bc46c4d06853b1a32130126d54c8</id>
<content type='text'>
* src/editfns.c (styled_format): Fix recently-introduced ‘format’
bug in calculating string property offsets (Bug#21351).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/editfns.c (styled_format): Fix recently-introduced ‘format’
bug in calculating string property offsets (Bug#21351).
</pre>
</div>
</content>
</entry>
<entry>
<title>Assume GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS</title>
<updated>2015-08-27T02:24:58+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2015-08-27T02:24:28+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=60d1b18734fff144f1608da6228d60e4bda7b24c'/>
<id>60d1b18734fff144f1608da6228d60e4bda7b24c</id>
<content type='text'>
This removes the need for GCPRO1 etc.  Suggested by Stefan Monnier in:
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00918.html
* doc/lispref/internals.texi (Writing Emacs Primitives):
* etc/NEWS:
Document the change.
* src/alloc.c (gcprolist, dump_zombies, MAX_ZOMBIES, zombies)
(nzombies, ngcs, avg_zombies, max_live, max_zombies, avg_live)
(Fgc_status, check_gcpros, relocatable_string_data_p, gc-precise):
* src/bytecode.c (mark_byte_stack) [BYTE_MARK_STACK]:
* src/eval.c (gcpro_level) [DEBUG_GCPRO]:
* src/lisp.h (struct handler.gcpro, struct gcpro, GC_MARK_STACK)
(GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
(GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
(BYTE_MARK_STACK, GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6)
(GCPRO7, UNGCPRO, RETURN_UNGCPRO):
Remove.  All uses removed.  The code now assumes
GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS.
* src/bytecode.c (relocate_byte_stack):
Rename from unmark_byte_stack, since it now only relocates.
All callers changed.
* src/frame.c (make_frame): Add an IF_LINT to pacify GCC 5.2
with GCPROs removed.
* src/systime.h: Use EMACS_LISP_H as the canary instead of GCPRO1.
* test/automated/finalizer-tests.el (finalizer-basic)
(finalizer-circular-reference, finalizer-cross-reference)
(finalizer-error):
* test/automated/generator-tests.el (cps-test-iter-close-finalizer):
Remove tests, as they depend on gc-precise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This removes the need for GCPRO1 etc.  Suggested by Stefan Monnier in:
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00918.html
* doc/lispref/internals.texi (Writing Emacs Primitives):
* etc/NEWS:
Document the change.
* src/alloc.c (gcprolist, dump_zombies, MAX_ZOMBIES, zombies)
(nzombies, ngcs, avg_zombies, max_live, max_zombies, avg_live)
(Fgc_status, check_gcpros, relocatable_string_data_p, gc-precise):
* src/bytecode.c (mark_byte_stack) [BYTE_MARK_STACK]:
* src/eval.c (gcpro_level) [DEBUG_GCPRO]:
* src/lisp.h (struct handler.gcpro, struct gcpro, GC_MARK_STACK)
(GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
(GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
(BYTE_MARK_STACK, GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6)
(GCPRO7, UNGCPRO, RETURN_UNGCPRO):
Remove.  All uses removed.  The code now assumes
GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS.
* src/bytecode.c (relocate_byte_stack):
Rename from unmark_byte_stack, since it now only relocates.
All callers changed.
* src/frame.c (make_frame): Add an IF_LINT to pacify GCC 5.2
with GCPROs removed.
* src/systime.h: Use EMACS_LISP_H as the canary instead of GCPRO1.
* test/automated/finalizer-tests.el (finalizer-basic)
(finalizer-circular-reference, finalizer-cross-reference)
(finalizer-error):
* test/automated/generator-tests.el (cps-test-iter-close-finalizer):
Remove tests, as they depend on gc-precise.
</pre>
</div>
</content>
</entry>
</feed>
