Re: font-lock-defaults-alist is obsolete but used
Lennart Borgman (gmail) wrote: The variable is marked obsolete in the same file where it is used. I would expect that the new name where used in that file instead of the old. I would even expect the new name to be used everywhere in Emacs, leaving the old obsolete name only to external packages to use. I'm sorry, but your expectation is just wrong. Under your scheme, things would go from working in one release to not working in the next. Instead, it's working, working with an obsolete warning, then at some point not working. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: font-lock-defaults-alist is obsolete but used
The variable above is marked as obsolete but used in font-core.el. Should it be that way? Obviously even obsolete variables have to be used _somewhere_, else they are not just obsolete but totally useless. Can you elaborate on your question? The variable is marked obsolete in the same file where it is used. I would expect that the new name where used in that file instead of the old. To clear the misunderstanding, let me put it differently: font-lock-defaults-alist is still *obeyed* by the current code (which is why it's obsolete and not removed), but it is not *used* by the current code. Stefan ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: font-lock-defaults-alist is obsolete but used
On 3/28/07, Stefan Monnier [EMAIL PROTECTED] wrote: To clear the misunderstanding, let me put it differently: font-lock-defaults-alist is still *obeyed* by the current code (which is why it's obsolete and not removed), but it is not *used* by the current code. Perhaps the trouble is that font-lock-mode's docstring doesn't stress its obsolete status: See the variable `font-lock-defaults-alist' for the Font Lock mode default settings. You can set your own default settings for some mode, by setting a buffer local value for `font-lock-defaults', via its mode hook. and neither does font-lock-set-defaults': Sets various variables using `font-lock-defaults' (or, if nil, using `font-lock-defaults-alist') and `font-lock-maximum-decoration'. Juanma ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: font-lock-defaults-alist is obsolete but used
Stefan Monnier wrote: The variable above is marked as obsolete but used in font-core.el. Should it be that way? Obviously even obsolete variables have to be used _somewhere_, else they are not just obsolete but totally useless. Can you elaborate on your question? The variable is marked obsolete in the same file where it is used. I would expect that the new name where used in that file instead of the old. To clear the misunderstanding, let me put it differently: font-lock-defaults-alist is still *obeyed* by the current code (which is why it's obsolete and not removed), but it is not *used* by the current code. It is used on line 204 in font-core.el. Or do I misunderstand you? ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: font-lock-defaults-alist is obsolete but used
Glenn Morris wrote: Lennart Borgman (gmail) wrote: The variable is marked obsolete in the same file where it is used. I would expect that the new name where used in that file instead of the old. I would even expect the new name to be used everywhere in Emacs, leaving the old obsolete name only to external packages to use. I'm sorry, but your expectation is just wrong. Under your scheme, things would go from working in one release to not working in the next. Instead, it's working, working with an obsolete warning, then at some point not working. There must be some misunderstanding. I do not expect the variable to be removed. I just expect that the Emacs code uses the new name for the variable. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
font-lock-defaults-alist is obsolete but used
The variable above is marked as obsolete but used in font-core.el. Should it be that way? In GNU Emacs 22.0.96.1 (i386-mingw-nt5.1.2600) of 2007-03-21 ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: font-lock-defaults-alist is obsolete but used
Lennart Borgman (gmail) wrote: The variable above is marked as obsolete but used in font-core.el. Should it be that way? Obviously even obsolete variables have to be used _somewhere_, else they are not just obsolete but totally useless. Can you elaborate on your question? ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: font-lock-defaults-alist is obsolete but used
The variable above is marked as obsolete but used in font-core.el. Should it be that way? Of course. If it wasn't used at all, it wouldn't be obsolete but removed. Stefan ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug