Gnus development mailing list
 help / color / mirror / Atom feed
* # # # A P
@ 1997-12-20 20:29 Michael R Cook
  1997-12-20 23:13 ` Lars Balker Rasmussen
  0 siblings, 1 reply; 8+ messages in thread
From: Michael R Cook @ 1997-12-20 20:29 UTC (permalink / raw)


If I mark multiple articles (# # #), and then try to print them (A
P), gnus-summary-print-article prints only one article--the one
point is on.  Is this a bug?  Or am I misunderstanding how # is
supposed to work?

Michael.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: # # # A P
  1997-12-20 20:29 # # # A P Michael R Cook
@ 1997-12-20 23:13 ` Lars Balker Rasmussen
  1997-12-21 11:58   ` Lars Balker Rasmussen
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Lars Balker Rasmussen @ 1997-12-20 23:13 UTC (permalink / raw)


Michael R Cook <mcook@cognex.com> writes:
> If I mark multiple articles (# # #), and then try to print them (A
> P), gnus-summary-print-article prints only one article--the one
> point is on.  Is this a bug?  Or am I misunderstanding how # is
> supposed to work?

Gnus doesn't currently use the process mark for all functions.

Maybe you just need to tell Lars about it when you spot a place you
think it's missing :-)
-- 
Lars Balker Rasmussen                                                 "No."


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: # # # A P
  1997-12-20 23:13 ` Lars Balker Rasmussen
@ 1997-12-21 11:58   ` Lars Balker Rasmussen
  1998-01-04  9:28     ` Lars Magne Ingebrigtsen
  1997-12-21 21:35   ` Michael R Cook
  1997-12-22 14:49   ` Justin Sheehy
  2 siblings, 1 reply; 8+ messages in thread
From: Lars Balker Rasmussen @ 1997-12-21 11:58 UTC (permalink / raw)


Lars Balker Rasmussen <lbr@image.dk> writes:
> Gnus doesn't currently use the process mark for all functions.
> 
> Maybe you just need to tell Lars about it when you spot a place you
> think it's missing :-)

Like `J u' for instance.
-- 
Lars Balker Rasmussen                                                 "No."


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: # # # A P
  1997-12-20 23:13 ` Lars Balker Rasmussen
  1997-12-21 11:58   ` Lars Balker Rasmussen
@ 1997-12-21 21:35   ` Michael R Cook
  1997-12-22  8:42     ` jari.aalto
  1997-12-22 14:49   ` Justin Sheehy
  2 siblings, 1 reply; 8+ messages in thread
From: Michael R Cook @ 1997-12-21 21:35 UTC (permalink / raw)


>>>>> "LBR" == Lars Balker Rasmussen <lbr@image.dk> writes:

 >> If I mark multiple articles (# # #), and then try to print them (A
 >> P), gnus-summary-print-article prints only one article--the one
 >> point is on.  Is this a bug?  Or am I misunderstanding how # is
 >> supposed to work?

 LBR> Gnus doesn't currently use the process mark for all functions.

 LBR> Maybe you just need to tell Lars about it when you spot a place you
 LBR> think it's missing :-)

If someone could give us a quick tutorial on how to convert a
typical #-oblivious function to be #-aware, we could send
patches, rather than just asking Lars to do the work.

Michael.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: # # # A P
  1997-12-21 21:35   ` Michael R Cook
@ 1997-12-22  8:42     ` jari.aalto
  1997-12-24 19:54       ` Michael R Cook
  0 siblings, 1 reply; 8+ messages in thread
From: jari.aalto @ 1997-12-22  8:42 UTC (permalink / raw)


 97-12-21 Michael R Cook <mcook@cognex.com> list.ding
| >>>>> "LBR" == Lars Balker Rasmussen <lbr@image.dk> writes:
|
| If someone could give us a quick tutorial on how to convert a
| typical #-oblivious function to be #-aware, we could send
| patches, rather than just asking Lars to do the work.

The framework goes something like this, this is excerpt from my TinyGnus.el
package. Notice that I reset some hooks in #-processing functions.

jari

(put 'tign-summary-map-articles-macro 'lisp-indent-function 0)
(defmacro tign-summary-map-articles-macro (&rest body)
  "Map through marked articles in Summary buffer.
The variable `nbr' has the current article number. Use command
 (return) to stop the loop."
  (`
   (let* ((articles (gnus-summary-work-articles nil))
          gnus-article-display-hook     ;Do not run this
          gnus-article-prepare-hook
          gnus-select-article-hook
          gnus-article-mode-hook
          gnus-visual-mark-article-hook
          )
     ;; (gnus-summary-save-process-mark)
     (dolist (nbr articles)
       (,@ body)
       ))))


    (tign-summary-map-articles-macro
      (gnus-summary-select-article 'all nil 'pseudo nbr)
      ...Do action...
      )


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: # # # A P
  1997-12-20 23:13 ` Lars Balker Rasmussen
  1997-12-21 11:58   ` Lars Balker Rasmussen
  1997-12-21 21:35   ` Michael R Cook
@ 1997-12-22 14:49   ` Justin Sheehy
  2 siblings, 0 replies; 8+ messages in thread
From: Justin Sheehy @ 1997-12-22 14:49 UTC (permalink / raw)


Lars Balker Rasmussen <lbr@image.dk> writes:

> Gnus doesn't currently use the process mark for all functions.
> 
> Maybe you just need to tell Lars about it when you spot a place you
> think it's missing :-)

Of course, until your function of choice does support
process/prefix, you can always just make it act like it with M-&...

-- 
Justin Sheehy

In a cloud bones of steel.
  




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: # # # A P
  1997-12-22  8:42     ` jari.aalto
@ 1997-12-24 19:54       ` Michael R Cook
  0 siblings, 0 replies; 8+ messages in thread
From: Michael R Cook @ 1997-12-24 19:54 UTC (permalink / raw)
  Cc: ding

>>>>> "J" ==   <jari.aalto@poboxes.com> writes:

 J> The framework goes something like this, this is excerpt from my
 J> TinyGnus.el package.

Okay, this patch makes `gnus-summary-print-article' #-aware.  This
patch includes an interface change (`gnus-summary-print-article' was
a 1-option arg function, now it's a 2-optional arg function).

*** gnus-sum.el.~1~	Sat Dec  6 11:45:19 1997
--- gnus-sum.el	Wed Dec 24 14:36:48 1997
***************
*** 6676,6700 ****
      (when gnus-page-broken
        (gnus-narrow-to-page))))
  
! (defun gnus-summary-print-article (&optional filename)
!   "Generate and print a PostScript image of the article buffer.
  
! If the optional argument FILENAME is nil, send the image to the printer.
! If FILENAME is a string, save the PostScript image in a file with that
! name.  If FILENAME is a number, prompt the user for the name of the file
  to save in."
!   (interactive (list (ps-print-preprint current-prefix-arg)))
!   (gnus-summary-select-article)
!   (gnus-eval-in-buffer-window gnus-article-buffer
!     (let ((buffer (generate-new-buffer " *print*")))
!       (unwind-protect
! 	  (progn
! 	    (copy-to-buffer buffer (point-min) (point-max))
! 	    (set-buffer buffer)
! 	    (gnus-article-delete-invisible-text)
! 	    (run-hooks 'gnus-ps-print-hook)
! 	    (ps-print-buffer-with-faces filename))
! 	(kill-buffer buffer)))))
  
  (defun gnus-summary-show-article (&optional arg)
    "Force re-fetching of the current article.
--- 6676,6706 ----
      (when gnus-page-broken
        (gnus-narrow-to-page))))
  
! (defun gnus-summary-print-article (&optional n filename)
!   "Generate and print a PostScript image of the N next (mail) articles.
  
! If N is negative, print the N previous articles.  If N is nil and articles
! have been marked with the process mark, print these instead.
! 
! If the optional second argument FILENAME is nil, send the image to the
! printer.  If FILENAME is a string, save the PostScript image in a file with
! that name.  If FILENAME is a number, prompt the user for the name of the file
  to save in."
!   (interactive (list current-prefix-arg
! 		     (ps-print-preprint current-prefix-arg)))
!   (let ((articles (gnus-summary-work-articles n)))
!     (dolist (nbr articles)
!       (gnus-summary-select-article 'all nil 'pseudo nbr)
!       (gnus-eval-in-buffer-window gnus-article-buffer
! 	(let ((buffer (generate-new-buffer " *print*")))
! 	  (unwind-protect
! 	      (progn
! 		(copy-to-buffer buffer (point-min) (point-max))
! 		(set-buffer buffer)
! 		(gnus-article-delete-invisible-text)
! 		(run-hooks 'gnus-ps-print-hook)
! 		(ps-print-buffer-with-faces filename))
! 	    (kill-buffer buffer)))))))
  
  (defun gnus-summary-show-article (&optional arg)
    "Force re-fetching of the current article.

Michael.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: # # # A P
  1997-12-21 11:58   ` Lars Balker Rasmussen
@ 1998-01-04  9:28     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-01-04  9:28 UTC (permalink / raw)


Lars Balker Rasmussen <lbr@image.dk> writes:

> > Maybe you just need to tell Lars about it when you spot a place you
> > think it's missing :-)
> 
> Like `J u' for instance.

Yup.  Fix in Quassia Gnus v0.19.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1998-01-04  9:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-20 20:29 # # # A P Michael R Cook
1997-12-20 23:13 ` Lars Balker Rasmussen
1997-12-21 11:58   ` Lars Balker Rasmussen
1998-01-04  9:28     ` Lars Magne Ingebrigtsen
1997-12-21 21:35   ` Michael R Cook
1997-12-22  8:42     ` jari.aalto
1997-12-24 19:54       ` Michael R Cook
1997-12-22 14:49   ` Justin Sheehy

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 NNTP newsgroup(s).