Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: reverse-menu-complete



(Please pardon lengthy context for very short comment below.)

On Jun 27,  8:52am, Oliver Kiddle wrote:
}
} - As a further complication, there is a "reverse_menu" hook which does
} the backwards movement. That becomes superfluous but I'm not sure how
} much of the hook would need to stay. Is the hook in theory an interface
} to third-party modules?
} 
} diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
} index 9f383f4..7fec7c8 100644
} --- a/Src/Zle/compresult.c
} +++ b/Src/Zle/compresult.c
} @@ -1246,43 +1260,6 @@ do_menucmp(int lst)
}  	unmetafy_line();
}  }
}  
} -/**/
} -int
} -reverse_menu(UNUSED(Hookdef dummy), UNUSED(void *dummy2))
} -{
[...]
} diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
} index f18ad17..81a2395 100644
} --- a/Src/Zle/zle_tricky.c
} +++ b/Src/Zle/zle_tricky.c
} @@ -345,14 +345,8 @@ mod_export int
}  reversemenucomplete(char **args)
}  {
}      wouldinstab = 0;
} +    zmult = -zmult;
} +    menucomplete(args);
}  
}      runhookdef(REVERSEMENUHOOK, NULL);
}      return 0;


So what does the REVERSEMENUHOOK do, now that the reverse_menu function
is gone?



Messages sorted by: Reverse Date, Date, Thread, Author