Changeset 8a5b5a1 for functions.c


Ignore:
Timestamp:
Apr 2, 2010, 10:40:39 PM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
e2cbbbe
Parents:
66e409c
git-author:
Nelson Elhage <nelhage@mit.edu> (04/02/10 21:02:30)
git-committer:
Nelson Elhage <nelhage@mit.edu> (04/02/10 22:40:39)
Message:
Add option to smartnarrow to temporarily invert narrow-related.

Bind this to M-n and M-M.

Signed-off-by: Geoffrey Thomas <geofft@mit.edu>
[nelhage@mit.edu: Rename modnarrow → narrow-related]
Signed-off-by: Nelson Elhage <nelhage@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r66e409c r8a5b5a1  
    25112511 *    name to the AIM conversation with that user
    25122512 */
    2513 char *owl_function_smartfilter(int type)
     2513char *owl_function_smartfilter(int type, int invert_related)
    25142514{
    25152515  const owl_view *v;
     
    25172517  char *zperson, *filtname=NULL;
    25182518  const char *argv[2];
    2519   int related = owl_global_is_narrow_related(&g);
    2520  
     2519  int related = owl_global_is_narrow_related(&g) ^ invert_related;
     2520
    25212521  v=owl_global_get_current_view(&g);
    25222522  m=owl_view_get_element(v, owl_global_get_curmsg(&g));
Note: See TracChangeset for help on using the changeset viewer.