From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?TWFydGluIEvDvGhs?= Subject: [PATCH] Improve symlink handling in `org-babel-load-file' Date: Thu, 4 Feb 2010 12:29:01 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0016e6dab6fb720191047ec4a57b Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nczto-0000yD-NA for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 06:29:28 -0500 Received: from [199.232.76.173] (port=33498 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncztn-0000xy-Fs for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 06:29:27 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ncztl-0005xe-I1 for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 06:29:26 -0500 Received: from mail-ew0-f228.google.com ([209.85.219.228]:57154) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ncztj-0005xS-J9 for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 06:29:24 -0500 Received: by ewy28 with SMTP id 28so2586877ewy.8 for ; Thu, 04 Feb 2010 03:29:21 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-Orgmode --0016e6dab6fb720191047ec4a57b Content-Type: text/plain; charset=UTF-8 Hi, when `org-babel-load-file' is called on a symlink, its timestamp code checks the modification date of the symlink instead of the file it points to, leading it to skip tangling the source file although its contents have been modified. The attached patch fixes this by resolving paths with `file-truename' before calling `file-attributes'. Thanks, Martin --0016e6dab6fb720191047ec4a57b Content-Type: application/octet-stream; name="org-babel-load-file--symlinks.patch" Content-Disposition: attachment; filename="org-babel-load-file--symlinks.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g59gl0sd0 ZGlmZiAtLWdpdCBhL2NvbnRyaWIvYmFiZWwvbGlzcC9vcmctYmFiZWwtdGFuZ2xlLmVsIGIvY29u dHJpYi9iYWJlbC9saXNwL29yZy1iYWJlbC10YW5nbGUuZWwKaW5kZXggNjZlMmMyNi4uNGVkYWI5 YyAxMDA2NDQKLS0tIGEvY29udHJpYi9iYWJlbC9saXNwL29yZy1iYWJlbC10YW5nbGUuZWwKKysr IGIvY29udHJpYi9iYWJlbC9saXNwL29yZy1iYWJlbC10YW5nbGUuZWwKQEAgLTQ4LDcgKzQ4LDgg QEAgZmlsZSB1c2luZyBgbG9hZC1maWxlJy4iCiAgIChmbGV0ICgoYWdlIChmaWxlKQogICAgICAg ICAgICAgICAodGltZS10by1zZWNvbmRzCiAgICAgICAgICAgICAgICAodGltZS1zdWJ0cmFjdCAo Y3VycmVudC10aW1lKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHNpeHRoIChmaWxl LWF0dHJpYnV0ZXMgZmlsZSkpKSkpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHNp eHRoIChmaWxlLWF0dHJpYnV0ZXMKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgKGZpbGUtdHJ1ZW5hbWUgZmlsZSkpKSkpKSkKICAgICAobGV0KiAoKGJhc2UtbmFtZSAoZmls ZS1uYW1lLXNhbnMtZXh0ZW5zaW9uIGZpbGUpKQogICAgICAgICAgICAoZXhwb3J0ZWQtZmlsZSAo Y29uY2F0IGJhc2UtbmFtZSAiLmVsIikpKQogICAgICAgOzsgdGFuZ2xlIGlmIHRoZSBvcmctbW9k ZSBmaWxlIGlzIG5ld2VyIHRoYW4gdGhlIGVsaXNwIGZpbGUK --0016e6dab6fb720191047ec4a57b Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --0016e6dab6fb720191047ec4a57b--