emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: David Maus <dmaus@ictsoc.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Rename temporary buffer to remove dependency of `flet' macro
Date: Wed, 18 Aug 2010 10:43:54 +0200	[thread overview]
Message-ID: <AC179B98-F4D4-46B3-B139-D9FEB83DA218@gmail.com> (raw)
In-Reply-To: <1281630669-6565-2-git-send-email-dmaus@ictsoc.de>

Hi David,

I trust that you will apply this patch once you are satisfied with it.

Best wishes

- Carsten

On Aug 12, 2010, at 6:31 PM, David Maus wrote:

> * org-agenda.el (org-write-agenda): Rename temporary buffer to remove
> dependency of `flet' macro.
> ---
> lisp/org-agenda.el |   12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index 61b867b..f2592ad 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -2454,12 +2454,14 @@ higher priority settings."
>    ((string-match "\\.html?\\'" file) (require 'htmlize))
>    ((string-match "\\.ps\\'" file) (require 'ps-print)))
>   (org-let (if nosettings nil org-agenda-exporter-settings)
> -    `(save-excursion
> +    '(save-excursion
>        (save-window-excursion
> 	 (org-agenda-mark-filtered-text)
> 	 (let ((bs (copy-sequence (buffer-string))) beg)
> 	   (org-agenda-unmark-filtered-text)
> 	   (with-temp-buffer
> +	     (rename-buffer "Agenda View" t)
> +	     (set-buffer-modified-p nil)
> 	     (insert bs)
> 	     (org-agenda-remove-marked-text 'org-filtered)
> 	     (while (setq beg (text-property-any (point-min) (point-max)
> @@ -2486,14 +2488,12 @@ higher priority settings."
> 	       (message "HTML written to %s" file))
> 	      ((string-match "\\.ps\\'" file)
> 	       (require 'ps-print)
> -	       ,(flet ((ps-get-buffer-name () "Agenda View"))
> -		  (ps-print-buffer-with-faces file))
> +	       (ps-print-buffer-with-faces file)
> 	       (message "Postscript written to %s" file))
> 	      ((string-match "\\.pdf\\'" file)
> 	       (require 'ps-print)
> -	       ,(flet ((ps-get-buffer-name () "Agenda View"))
> -		  (ps-print-buffer-with-faces
> -		   (concat (file-name-sans-extension file) ".ps")))
> +	       (ps-print-buffer-with-faces
> +		(concat (file-name-sans-extension file) ".ps"))
> 	       (call-process "ps2pdf" nil nil nil
> 			     (expand-file-name
> 			      (concat (file-name-sans-extension file) ".ps"))
> -- 
> 1.7.1
>
>
> _______________________________________________
> 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

- Carsten

  reply	other threads:[~2010-08-19 18:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-29 23:21 PATCH: Fix for agenda problems Robert Goldman
2010-08-01 18:28 ` David Maus
2010-08-02  1:42   ` Robert Goldman
2010-08-02 16:53     ` David Maus
2010-08-12 16:31       ` [PATCH] Remove dependency of flet in org-write-agenda David Maus
2010-08-12 16:31       ` [PATCH] Rename temporary buffer to remove dependency of `flet' macro David Maus
2010-08-18  8:43         ` Carsten Dominik [this message]
2010-08-01 18:28 ` PATCH: Fix for agenda problems David Maus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AC179B98-F4D4-46B3-B139-D9FEB83DA218@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=dmaus@ictsoc.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).