home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / elisp / patches / kill-fix < prev    next >
Encoding:
Text File  |  1991-05-03  |  1.3 KB  |  38 lines

  1. ; From: montnaro@sprite.crd.ge.com (Skip Montanaro)
  2. ; Newsgroups: gnu.emacs.gnus
  3. ; Subject: Going back to the front of the group after C-k
  4. ; Date: 17 Oct 89 13:10:52 GMT
  5. ; I recently wrote asking why 'k' in the Subject buffer set the cursor to the
  6. ; first unread message in the newsgroup, but 'C-k' just set the cursor to the
  7. ; next unread message. I didn't get any good answers, so in typical GNU-ist
  8. ; fashion decided to hack the sources a bit. Below are the trivial diffs to
  9. ; get the behavior I desired. As you can see, I added a new variable, which
  10. ; defaults to nil (preserving the old behavior).
  11. ; *** gnus.el~    Tue Jun 27 14:01:42 1989
  12. ; --- gnus.el    Mon Oct 16 21:43:03 1989
  13. ; ***************
  14. ; *** 468,471 ****
  15. ; --- 468,474 ----
  16. ;     "*A directory placing an Info file of GNUS.")
  17. ;   
  18. ; + (defvar gnus-Subject-rewind-group-after-kill nil
  19. ; +   "*If t, go to beginning of group before searching for next unread article.")
  20. ; + 
  21. ;   
  22.   ;; Internal variables.
  23. ***************
  24. *** 2666,2669 ****
  25. --- 2669,2674 ----
  26.        (gnus-Subject-mark-same-subject
  27.         (gnus-Subject-subject-string) unmark)))
  28. +     (if gnus-Subject-rewind-group-after-kill
  29. +     (goto-char (point-min)))
  30.       (gnus-Subject-next-subject 1 (not unmark))
  31.       (message "%d articles are marked as %s"
  32. --
  33. Skip Montanaro (montanaro@crdgw1.ge.com)
  34.  
  35.