Re: cannot activate font-lock-mode

2007-06-06 Thread Francesco Potorti`
Why didn't you try the very first solution I proposed? You have to activate font-lock-mode _after_ setting the defaults, like this # Local Variables: # font-lock-defaults: ((^\\s-*:0 ##+)) # mode: font-lock # End: I had not understood this suggestion. As soon as I build emacs 22 I'll try again

old web page

2007-06-06 Thread Francesco Potorti`
At http://directory.fsf.org/GNU/emacs.html a link is provided to the source tarball of Emacs 21.4a, rather than 22.1. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: cannot activate font-lock-mode

2007-06-01 Thread Francesco Potorti`
I had this in my local variables section: mode: font-lock font-lock-keywords: (^\\S-.*:$) which worked in Emacs 21, but does not work any more in Emacs 22. I solved the problem by writing instead: mode: font-lock font-lock-defaults: ((^\\S-.*:$)) I must say that I don't know why

Re: cannot activate font-lock-mode

2007-05-31 Thread Francesco Potorti`
Should this fix be installed in Emacs 22.1? Or is it safer for us to leave that bug unfixed? I have no idea of the reasons or the implications of this change, nor if the correct behaviour was the previous or the current one. Only thing I say, if it is left as it is, maybe it should be mentioned

Re: cannot activate font-lock-mode

2007-05-31 Thread Francesco Potorti`
I had this in my local variables section: mode: font-lock font-lock-keywords: (^\\S-.*:$) which worked in Emacs 21, but does not work any more in Emacs 22. I solved the problem by writing instead: mode: font-lock font-lock-defaults: ((^\\S-.*:$)) I must say that I don't know why

Re: cannot activate font-lock-mode

2007-05-28 Thread Francesco Potorti`
I forgot to answer this previously, sorry. I summarise. I had this in my local variables section: mode: font-lock font-lock-keywords: (^\\S-.*:$) which worked in Emacs 21, but does not work any more in Emacs 22. I solved the problem by writing instead: mode: font-lock font-lock-defaults:

Re: undo gone in dired buffers

2007-05-18 Thread Francesco Potorti`
In my local Emacs hacks, I've fixed the inconsistency the other way: revert doesn't throw away undo info any more. That seems bizarre, but I guess we should consider it. However, Emacs 22.0.990 still throws away undo when reverting dired buffers :-( This is a change with respect to

(setq sgml-transformation 'upcase) has no effect

2007-05-16 Thread Francesco Potorti`
From textmodes/sgml-mode.el: If you like upcased tags, put (setq sgml-transformation-function 'upcase) in your `.emacs' file. To reproduce the problem: emacs -Q C-x C-f a.html RET M-x set-variable RET sgml-transformation-function RET upcase RET C-c C-t small

Re: automatic base64 conversion for rmail?

2007-05-15 Thread Francesco Potorti`
This problem was due to a very stupid bug of mine, sorry. It should be fixed now, please try again. Tried, and the problem has disappeared for the test cases I tried. Thanks. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org

Re: automatic base64 conversion for rmail?

2007-05-14 Thread Francesco Potorti`
- download http://fly.isti.cnr.it/tmp/base54.mbox (I am appending it to Should have been http://fly.isti.cnr.it/tmp/base64.mbox, sorry. the end of this mail, but I am not sure it will arrive intact) Here it is, sorry again: ===File ~/www/tmp/base64.mbox=== From

Re: mail-abbrev-end-of-buffer apparently does nothing

2007-05-07 Thread Francesco Potorti`
Does this patch make it work in both cases? Yes, this one works in both cases. *** mailabbrev.el 21 Jan 2007 01:36:15 -0500 1.82 --- mailabbrev.el 04 May 2007 22:59:43 -0400 *** *** 494,499 --- 494,502 ;; the usual syntax table.

Re: mail-abbrev-end-of-buffer apparently does nothing

2007-05-07 Thread Francesco Potorti`
+ ;; Do let Ctl and Meta chars expand if they try. + (not (event-modifiers last-command-char)) + (equal this-command 'self-insert) Why check (not (event-modifiers last-command-char)), then? Maybe it isn't necessary

Re: mail-abbrev-end-of-buffer apparently does nothing

2007-05-04 Thread Francesco Potorti`
Does this fix it? *** mailabbrev.el 21 Jan 2007 01:36:15 -0500 1.82 --- mailabbrev.el 28 Apr 2007 21:05:27 -0400 *** *** 494,499 --- 494,501 ;; the usual syntax table. (or (and (integerp last-command-char) +

Re: undo gone in dired buffers

2007-04-27 Thread Francesco Potorti`
It used to work in dired buffers. That seems incredible. Deleting the whole text of a directory listing and reading it again is an operation that cannot preserve undo data. Yet, this is easy to reproduce. Invoke emacs 21 with -q, then C-x d /tmp RET M-! touch 00a RET g -- Now yu should

Re: mail-abbrev-end-of-buffer apparently does nothing

2007-04-27 Thread Francesco Potorti`
Apparently mail-abbrev-end-of-buffer does nothing special: it jumps to the end of buffer but does not expand the abbreviation. The code tries to expand: ... Why doesn't it work for you? The problem is in mailabbrev.el, in sendmail-pre-abbrev-expand-hook, where it does: ;; If the

Re: undo gone in dired buffers

2007-04-27 Thread Francesco Potorti`
it was useful when I updated a dired buffer with 'g' without looking at it first, and wanted to look at its old status. Very handy in some situations. Handy if you know what you are doing, but potentially very confusing and dangerous for the average/naive user. The user had to toggle the

mail-abbrev-end-of-buffer apparently does nothing

2007-04-26 Thread Francesco Potorti`
Apparently mail-abbrev-end-of-buffer does nothing special: it jumps to the end of buffer but does not expand the abbreviation. On the other hand, mail-abbrev-next-line works normally. In GNU Emacs 22.0.96.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.8.20) of 2007-04-02 on tucano.isti.cnr.it

undo gone in dired buffers

2007-04-24 Thread Francesco Potorti`
Apparently, Emacs 22 does not allow to undo in dired buffers. This is a pity, because it sometimes occurred to me to revert a dired buffer (using 'g') and then wanting to see the differences using undo. If this change is the result of a meditated choice, maybe it has some reason. But if it has

cannot activate font-lock-mode

2007-04-20 Thread Francesco Potorti`
I have a ~/.procmailrc file that has these lines at the end: # Local Variables: # mode: indented-text # fill-column: 95 # mode: font-lock # font-lock-keywords: (^\\s-*:0 ##+) # End: Now, when desktop.el loads it, it asks if I want to apply the font-lock-keywords customisation, because it is

Re: cannot activate font-lock-mode

2007-04-20 Thread Francesco Potorti`
# font-lock-keywords : (^\\s-*:0 ##+) # End: Now, when desktop.el loads it, it asks if I want to apply the font-lock-keywords customisation, because it is risky (is it?). The question is asked by `hack-local-variables-confirm'. Fine. I answer y, but I get the message: Toggling

patch for locate.el when called with prefix arg

2007-04-20 Thread Francesco Potorti`
Calling C-u M-x locate RET gives no results, whatever the command line. A bug was apparently introduced in locate.el, but I did not check when and why. I found the problem in 22.0.96, but, by looking at the source, it is still there in 22.0.98. Here is a patch and Changelog entry: 2007-04-20

Re: warnings compiling Emacs 22 on amd64

2007-01-14 Thread Francesco Potorti`
editfns.c: In function 'Fuser_uid': editfns.c:1317: warning: comparison is always false due to limited range of data type process.c: In function 'Fdelete_process': process.c:820: warning: comparison is always false due to limited range of data type I think I fixed these now in the CVS,

Re: warnings compiling Emacs 22 on amd64

2006-12-12 Thread Francesco Potorti`
If the argument i is of type int (32bit), then the compiler is sufficiently clever to infer that the comparisons will always return the same value (even though we cast that value to EMACS_INT (64bit) in between). Is it really that smart? Apparently, yes. But also enough stupid that it

Re: warnings compiling Emacs 22 on amd64

2006-12-12 Thread Francesco Potorti`
Will it also be that smart if we do some arithmetics, like `(EMACS_INT)i + 0L' or `(EMACS_INT)i*1L'? Will try that and see if it is useful to make the warning go away. No, it changes nothing: the compiler is too clever, but not enough :-) But, rereading it: #define

Re: warnings compiling Emacs 22 on amd64

2006-12-12 Thread Francesco Potorti`
But since this warning is about something which is not itself a bug, either gcc provides a way to annotate the code to indicate that this is not a bug (like the use of double-parens to turn off the warning about assignment in an `if'), or there's not much we can do about it (other than try to work

Re: warnings compiling Emacs 22 on amd64

2006-12-11 Thread Francesco Potorti`
/home/pot/gnu/emacs-22.0.91/src/prefix-args.c: In function 'main': /home/pot/gnu/emacs-22.0.91/src/prefix-args.c:64: warning: incompatible implicit declaration of built-in function 'exit' /home/pot/gnu/emacs-22.0.91/src/prefix-args.c:73: warning: incompatible implicit declaration of

Re: warnings compiling Emacs 22 on amd64

2006-12-11 Thread Francesco Potorti`
process.c: In function 'Fsignal_process': process.c:6114: warning: cast from pointer to integer of different size I think this is a real bug. Please try this patch: 2006-12-09 Eli Zaretskii [EMAIL PROTECTED] * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to extract

Re: warnings compiling Emacs 22 on amd64

2006-12-11 Thread Francesco Potorti`
I get these warnings during compilation on x86_64-unknown-linux-gnu with Debian testing with gcc (GCC) 4.1.2 20061028 (prerelease) (Debian 4.1.1-19) [...] gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -I. -I/home/pot/gnu/emacs-22.0.91/src -D_BSD_SOURCE -g -O2 -Wno-pointer-sign

warnings compiling Emacs 22 on amd64

2006-12-04 Thread Francesco Potorti`
I get these warnings during compilation on x86_64-unknown-linux-gnu with Debian testing with gcc (GCC) 4.1.2 20061028 (prerelease) (Debian 4.1.1-19) I identified the reason for the first one and posted it on emacs-devel, where I am going to follow up the answer I got. I plan to consider the