Browse Source

Avoid text properties on elements in custom variables

Carsten Dominik 16 years ago
parent
commit
8c177dc832
3 changed files with 11 additions and 2 deletions
  1. 8 0
      lisp/ChangeLog
  2. 2 1
      lisp/org-agenda.el
  3. 1 1
      lisp/org.el

+ 8 - 0
lisp/ChangeLog

@@ -1,3 +1,11 @@
+2009-08-14  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org.el (org-fast-tag-selection): Avoid text properties on tags
+	in the alist.
+
+	* org-agenda.el (org-agenda-get-restriction-and-command): Avoid
+	text properties on the match element.
+
 2009-08-12  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org.el (org-set-regexps-and-options): Make sure the list of done

+ 2 - 1
lisp/org-agenda.el

@@ -1806,7 +1806,8 @@ s   Search for keywords                 C   Configure custom agenda commands
 	  (delete-region (point) (point-max))
 	  (while (setq entry (pop custom1))
 	    (setq key (car entry) desc (nth 1 entry)
-		  type (nth 2 entry) match (nth 3 entry))
+		  type (nth 2 entry)
+		  match (org-no-properties (copy-sequence (nth 3 entry))))
 	    (if (> (length key) 1)
 		(add-to-list 'prefixes (string-to-char key))
 	      (insert

+ 1 - 1
lisp/org.el

@@ -11241,7 +11241,7 @@ Returns the new tags string, or nil to not change the current settings."
 	      (insert "\n")
 	      (setq tbl (cdr tbl)))))
 	 (t
-	  (setq tg (car e) c2 nil)
+	  (setq tg (copy-sequence (car e)) c2 nil)
 	  (if (cdr e)
 	      (setq c (cdr e))
 	    ;; automatically assign a character.