From 20191810d1fea7c2f49b65ffee3e4d5e2bc0bac3 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 29 Jan 2013 20:19:36 +0900 Subject: [PATCH] Bug 23757 - Add mode="delete" to Add two edit mode, "delete" and "delete_all". what values are being deleted depends on as documented. if the target object is same to what is tested, matching value there will be deleted. otherwise all of values in the object will be deleted. so this would means both edit mode will not take any expressions. e.g. Given that the testing is always true here, the following rules: bar will removes "bar" string from "foo" object. and: foo will removes all of values in "bar" object. --- doc/fontconfig-user.sgml | 2 ++ fonts.dtd | 2 +- src/fccfg.c | 10 ++++++++++ src/fcdbg.c | 6 ++++-- src/fcint.h | 1 + src/fcxml.c | 11 +++++++++++ 6 files changed, 29 insertions(+), 3 deletions(-) diff --git a/doc/fontconfig-user.sgml b/doc/fontconfig-user.sgml index 90e246b..eeff69a 100644 --- a/doc/fontconfig-user.sgml +++ b/doc/fontconfig-user.sgml @@ -425,6 +425,8 @@ with "same" binding using the value from the matched pattern element. "prepend_first" Insert at head of list Insert at head of list "append" Append after matching Append at end of list "append_last" Append at end of list Append at end of list + "delete" Delete matching value Delete all values + "delete_all" Delete all values Delete all values <literal><int></literal>, <literal><double></literal>, <literal><string></literal>, <literal><bool></literal> diff --git a/fonts.dtd b/fonts.dtd index 664467d..4c38e77 100644 --- a/fonts.dtd +++ b/fonts.dtd @@ -189,7 +189,7 @@