| 
					
				 | 
			
			
				@@ -488,9 +488,22 @@ to be run from that hook to function properly." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		  (or (cdr org-remember-previous-location) "???") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		  (if org-remember-store-without-prompt "C-1 C-c C-c" "        C-c C-c")))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(insert tpl) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	(goto-char (point-min)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	;; %[] Insert contents of a file. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	(goto-char (point-min)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	(while (re-search-forward "%\\[\\(.+\\)\\]" nil t) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	  (unless (org-remember-escaped-%) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	    (let ((start (match-beginning 0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		  (end (match-end 0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		  (filename (expand-file-name (match-string 1)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	      (goto-char start) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	      (delete-region start end) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	      (condition-case error 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		  (insert-file-contents filename) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		(error (insert (format "%%![Couldn't insert %s: %s]" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				       filename error))))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	;; Simple %-escapes 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	(goto-char (point-min)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(while (re-search-forward "%\\([tTuUaiAcxkKI]\\)" nil t) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	  (unless (org-remember-escaped-%) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	    (when (and initial (equal (match-string 0) "%i")) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -504,19 +517,6 @@ to be run from that hook to function properly." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	     (or (eval (intern (concat "v-" (match-string 1)))) "") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	     t t))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	;; %[] Insert contents of a file. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	(goto-char (point-min)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	(while (re-search-forward "%\\[\\(.+\\)\\]" nil t) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	  (unless (org-remember-escaped-%) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	    (let ((start (match-beginning 0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		  (end (match-end 0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		  (filename (expand-file-name (match-string 1)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	      (goto-char start) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	      (delete-region start end) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	      (condition-case error 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		  (insert-file-contents filename) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		(error (insert (format "%%![Couldn't insert %s: %s]" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				       filename error))))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	;; %() embedded elisp 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(goto-char (point-min)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(while (re-search-forward "%\\((.+)\\)" nil t) 
			 |