Re: read-abbrev-file (2)
Richard Stallman wrote: > I mean `quietly-read-abbrev-file' is a good idea in the > case, the user keeps just one abbrev-file (as I do). So > why get prompted for the name? > > Why go to the trouble to type `quietly-' just > to avoid having a prompt and typing RET at it? > > Probably a command which starts with `quietly' might be as troublesome as any other command. To avoid trouble, I see just one way: To do the unthinkable, never conceived before... Following the troublesome path it seems useful to look for the problem at stake: The question why `read-abbrev-file' fails in certain circumstances. (Assume, because the C-function inserts the DIR as default if it receives "".) __ Andreas Roehler ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: read-abbrev-file (2)
I mean `quietly-read-abbrev-file' is a good idea in the case, the user keeps just one abbrev-file (as I do). So why get prompted for the name? Why go to the trouble to type `quietly-' just to avoid having a prompt and typing RET at it? ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: read-abbrev-file (2)
Richard Stallman wrote: > For instance you couldn't call > `quietly-read-abbrev-file' interactively at the moment, > > Why would you want to? Given that you're typing a command, > how does it hurt you to use read-abbrev-file instead? > The reason, why I care for this kind of - tiny or basic - matters - is, as explained already: an essay to meet the - naturally partly unrealistic - expectations of beginners, avoid bewildering and so on. I mean `quietly-read-abbrev-file' is a good idea in the case, the user keeps just one abbrev-file (as I do). So why get prompted for the name? All the best __ Andreas Roehler ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: read-abbrev-file (2)
For instance you couldn't call `quietly-read-abbrev-file' interactively at the moment, Why would you want to? Given that you're typing a command, how does it hurt you to use read-abbrev-file instead? ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: read-abbrev-file (2)
Richard Stallman wrote: > What about to use this until then?: > > ;(defalias 'read-abbrev-file 'ar-read-abbrev-file) > ;(defalias 'quietly-read-abbrev-file 'ar-quietly-read-abbrev-file) > > (defun ar-read-abbrev-file (&optional file) > > I do not understand. Who are you suggesting this to? > What purpose is this code meant to serve? > For instance you couldn't call `quietly-read-abbrev-file' interactively at the moment, because `interactive' is commented out in the function presently in abbrev.el. With the constructs given it's available. __ Andreas Roehler ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: read-abbrev-file (2)
What about to use this until then?: ;(defalias 'read-abbrev-file 'ar-read-abbrev-file) ;(defalias 'quietly-read-abbrev-file 'ar-quietly-read-abbrev-file) (defun ar-read-abbrev-file (&optional file) I do not understand. Who are you suggesting this to? What purpose is this code meant to serve? ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: read-abbrev-file (2)
Richard Stallman wrote: > > I cannot reproduce the problem. It only occurs at the very beginning, after starting Emacs. > > Maybe it has been fixed since February. > > Does it fail in the latest sources? Yes, noticed the change. > > If so, can you try to debug it by running under GDB and putting > > a breakpoint at Fsignal? > > Will try that, but it would take some time. I'm not familiar with. __ Andreas Roehler What about to use this until then?: ;(defalias 'read-abbrev-file 'ar-read-abbrev-file) ;(defalias 'quietly-read-abbrev-file 'ar-quietly-read-abbrev-file) (defun ar-read-abbrev-file (&optional file) "Read abbrev definitions from file written with `write-abbrev-file'. Optional argument FILE is the name of the file to read; it defaults to the value of `abbrev-file-name'" (interactive (list (read-from-minibuffer (concat "default: " abbrev-file-name ": " (if (or (string-match "[ \t]+" file) (string= "" file)) (setq file abbrev-file-name)) (load file nil) (setq abbrevs-changed nil)) (defun ar-quietly-read-abbrev-file (&optional file) "Read abbrev definitions from file written with `write-abbrev-file'. Optional argument FILE is the name of the file to read; it defaults to the value of `abbrev-file-name'. Does not display any message." (interactive) (let ((file file)) (unless (stringp file) (setq file abbrev-file-name)) (load file nil t) (setq abbrevs-changed nil))) ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug