From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Wrong comment character when adding file local variables? Date: Fri, 07 Jun 2013 15:12:58 +0200 Message-ID: <87wqq6gj39.fsf@krugs.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkwTo-0000k2-8L for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:13:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkwTj-0004Pj-Ui for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:13:20 -0400 Received: from plane.gmane.org ([80.91.229.3]:55349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkwTj-0004PA-Lp for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:13:15 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UkwTh-00015w-Nh for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 15:13:13 +0200 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 15:13:13 +0200 Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 15:13:13 +0200 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@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi when tangling the following file ,---- | * Package Files | ** DESCRIPTION File | :PROPERTIES: | :tangle: ./DESCRIPTION | :shebang:=20=20 | :padline: no | :no-expand: TRUE | :comments: no | :END: | #+begin_src R | Package: asmDrak | #+end_src |=20 | ** NAMESPACE File | :PROPERTIES: | :tangle: ./NAMESPACE | :shebang:=20=20 | :padline: no | :no-expand: TRUE | :comments: no | :END: | #+begin_src R | this is a test | #+end_src |=20 |=20 | ** DESC2 File | :PROPERTIES: | :tangle: ./DESC2 | :shebang:=20=20 | :padline: no | :no-expand: TRUE | :comments: yes | :END: | #+begin_src R | this is a test | #+end_src `---- I get the following tangled files: DESCRIPTION: ,---- | Package: asmDrak |=20 | ;; Local Variables: | ;; org-babel-tangled-file: t | ;; buffer-read-only: t | ;; End: `---- which has the wrong comment character (should have #) NAMESPACE: ,---- | this is a test |=20 | ## Local Variables: | ## org-babel-tangled-file: t | ## buffer-read-only: t | ## End: `---- which has the correct comment characters, and=20 DESC2 ,---- | ## [[file:~/tmp/tangle.org::*DESC2%20File][DESC2\ File:1]] | this is a test | ## DESC2\ File:1 ends here |=20 | ;; Local Variables: | ;; org-babel-tangled-file: t | ;; buffer-read-only: t | ;; End: `---- which has the correct comment characters for the comments, but the wrong ones for the file local variables. I use the following in my .emacs file to set the post-tangle-hook to add the local file variables: ,---- | (defvar org-babel-tangled-file nil | "If non-nill, current file was tangled with org-babel-tangle") | (put 'org-babel-tangled-file 'safe-local-variable 'booleanp) |=20=20=20=20=20 | (defun org-babel-mark-file-as-tangled () | (add-file-local-variable 'org-babel-tangled-file t) | (add-file-local-variable 'buffer-read-only t) | ;; (add-file-local-variable 'eval: (auto-revert-mode)) | (basic-save-buffer)) |=20=20=20 | (add-hook 'org-babel-post-tangle-hook 'org-babel-mark-file-as-tangled) `---- I assume this is a bug somewhere? Org-mode version 8.0.3 (release_8.0.3-211-gf16b53 @ /home/rkrug/.emacs.d/org-mode/lisp/) GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.6.4) of 2013-04-14 on actinium, modified by Debian Cheers, Rainer =2D-=20 Rainer M. Krug email: RMKruggmailcom --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJRsdxaAAoJENvXNx4PUvmCslsH+gLCPmvKp2FKuPYwlhieOI7w BMsjmwb3QQCUilaIvtn4WJVAGskH2yzeqA/rXeejnzZu45BApBsiPycc3jvcRN7t yqBIfSbbiLHEdyDW0Y2Zo7JvBzXRLy/Y+/KlSH9+DL3UBUv+QhJDDy46wk+3g3MU uDq+dZDGP4TPT+BpHr4XBLP/mtMWx2+0xGSyYaTeAM2AGoLLpYVHZiA1pYKIYZlZ n37Z+02VUGgsx+ARDcS/REbzDAmoKLGthyghPGh2w+rmmN1qXXAUL0Xwn04Cbm8O 7gs8Hh4zAzHlPz0WTjIenpbb3Z6PJBPf7V8kSI/ELAsk50ZdstC+ax9KqNfO5cc= =R+Iv -----END PGP SIGNATURE----- --=-=-=--