From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Chaganti Subject: Bug: header-args:C++ doesn't work Date: Fri, 5 Dec 2014 00:10:54 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7bd9058e1c7b970509684edc Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwbL3-0004ss-W2 for emacs-orgmode@gnu.org; Thu, 04 Dec 2014 13:41:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwbL2-0004Iv-SI for emacs-orgmode@gnu.org; Thu, 04 Dec 2014 13:41:17 -0500 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:36447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwbL2-0004IS-KM for emacs-orgmode@gnu.org; Thu, 04 Dec 2014 13:41:16 -0500 Received: by mail-wg0-f45.google.com with SMTP id b13so23506617wgh.4 for ; Thu, 04 Dec 2014 10:41:15 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --047d7bd9058e1c7b970509684edc Content-Type: text/plain; charset=UTF-8 Hello, I was helping out "ablephar`" on IRC and they found that setting a file property `header-args:C++` does not work. After some edebug magic, I discovered that org has a feature that lets you append property values! (Not the best way to discover a great feature, I must say! :-) The fix could either be a documentation fix. (I would've tried using cpp instead of C++, if I knew that was supported). But, this would still have some users seeing things broken and then looking up docs or trying out the alternative. OR a "hacky" fix, (better for the users ?), could be to consider KEY+ to be indicating appending, but KEY++ to not. Thoughts? Thanks, Puneeth --047d7bd9058e1c7b970509684edc Content-Type: text/x-patch; charset=US-ASCII; name="C++-header-args.patch" Content-Disposition: attachment; filename="C++-header-args.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i3agygt10 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLmVsIGIvbGlzcC9vcmcuZWwKaW5kZXggZTgwNjQ0MC4uZmM4 NTBiOCAxMDA3NTUKLS0tIGEvbGlzcC9vcmcuZWwKKysrIGIvbGlzcC9vcmcuZWwKQEAgLTE1NDE1 LDcgKzE1NDE1LDggQEAgQmVpbmcgaW4gdGhpcyBsaXN0IG1ha2VzIHN1cmUgdGhhdCB0aGV5IGFy ZSBvZmZlcmVkIGZvciBjb21wbGV0aW9uLiIpCiAoZGVmdW4gb3JnLS11cGRhdGUtcHJvcGVydHkt cGxpc3QgKGtleSB2YWwgcHJvcHMpCiAgICJBc3NvY2lhdGUgS0VZIHRvIFZBTCBpbiBhbGlzdCBQ Uk9QUy4KIE1vZGlmaWNhdGlvbnMgYXJlIG1hZGUgYnkgc2lkZS1lZmZlY3QuICBSZXR1cm4gbmV3 IGFsaXN0LiIKLSAgKGxldCogKChhcHBlbmRpbmcgKHN0cmluZz0gKHN1YnN0cmluZyBrZXkgLTEp ICIrIikpCisgIChsZXQqICgoYXBwZW5kaW5nIChhbmQgKHN0cmluZz0gKHN1YnN0cmluZyBrZXkg LTEpICIrIikKKyAgICAgICAgICAgICAgICAgICAgICAgICAobm90IChzdHJpbmc9IChzdWJzdHJp bmcga2V5IC0yKSAiKysiKSkpKQogCSAoa2V5IChpZiBhcHBlbmRpbmcgKHN1YnN0cmluZyBrZXkg MCAtMSkga2V5KSkKIAkgKG9sZCAoYXNzb2Mtc3RyaW5nIGtleSBwcm9wcyB0KSkpCiAgICAgKGlm IChub3Qgb2xkKSAoY29ucyAoY29ucyBrZXkgdmFsKSBwcm9wcykK --047d7bd9058e1c7b970509684edc--