rcardena@hqpyr1.oracle.com (Ricardo A. Cardenas) (11/26/88)
Hi folks. I'm a novice lisp hacker, and I'm trying to write my own customized mode. The mode is invoked via auto-mode-alist if the filename in question matches a certain regexp. One of the things I want my mode to do is move the (point) to a certain place in the file: (defun my-mode-func () ... (goto-char (point-max))) But even though I successfully move the (point) within my mode function, it gets moved back to (point-min) after the func exits. I traced this down to a save-excursion in find-file-noselect (which eventually calls (set-auto-mode) which is where my func is looked up). Question - any way to move the point from within my-mode-func? It can be done with a find-file-hook (which is called after my-mode-func is called), except this isn't very clean (cause the hook would again have to string-match the filename). Maybe somebody on the net will have a better idea. While I'm here, is there a noop func in Emacs-lisp? Is there a way to "disassemble" byte-code? Thanks Ricky p.s. by the way, I did write that rmail-summary-sort-by-date I was asking about a while back although it ain't that clean either. Mail me if you'd like to look it over. -- Ricardo Cardenas || Internet: rcardena%oracle.uucp@HPLABS.HP.COM Oracle International || also, mail forwarded by: cardenas%dagmar@Athena.MIT.EDU Belmont, California ||{hplabs,uunet,mit-eddie,harvard,rutgers}!oracle!rcardena USA - near Canada ||