Re: editing of .gz files does not gunzip them

2006-02-10 Thread Stefan Monnier
I previously was using emcas-21.3 and if I edited a .gz file it would uncompress and edit properly. In this emacs-22.0.50 version using the same .emacs file the files will not uncompress and come up with the binary junk. My crystal ball tells me you have (auto-compression-mode) in your

Boxes not boxed in the header-line

2006-02-23 Thread Stefan Monnier
I just noticed this inelegant behavior: in the header-line, when two pieces of text have different box settings (but they're both 3d boxes), the top and bottom part of the two texts are correctly drawn (with their respective 3D effect), but there is not vertical line between the two to mark the

Re: Boxes not boxed in the header-line

2006-02-25 Thread Stefan Monnier
I just noticed this inelegant behavior: in the header-line, when two pieces of text have different box settings (but they're both 3d boxes), the top and bottom part of the two texts are correctly drawn (with their respective 3D effect), but there is not vertical line

Re: Boxes not boxed in the header-line

2006-02-26 Thread Stefan Monnier
Notice that in my example, every box is indeed separated from the next one by a space, but the whole header line is itself marked as boxed by the header-line face so the separating space is boxed as well, tho differently (e.g. different thickness). Is that really a reasonable

Re: Boxes not boxed in the header-line

2006-02-28 Thread Stefan Monnier
What's non-sensical about my example? Have you tried it? I have not tried it because trying it (and seeing that the display looks bad) would not answer the question of whether this makes sense. The 3d effect used for the buttons in SES mode makes sense in isolation. The 3d effect

Re: Boxes not boxed in the header-line

2006-02-28 Thread Stefan Monnier
What's non-sensical about my example? Have you tried it? I have not tried it because trying it (and seeing that the display looks bad) would not answer the question of whether this makes sense. The reason it seems nonsensical to me is that it seems to involve 3-d boxes inside 3-d

Re: Boxes not boxed in the header-line

2006-03-01 Thread Stefan Monnier
That is a subtle distinction, and I am not sure it changes anything. Does it make sense to have a box with a 3d effect inside a line with a 3d effect? Yes: at least my original example makes perfect sense to me. The 3d effect used for the buttons in SES mode makes sense in isolation.

Missing right-hand side of space boxes

2006-03-06 Thread Stefan Monnier
So I reverted my header-line to a non-3d look for SES's sake, but it's still not shown correctly. This time, there is no box-within-a-box (and no header-line either): src/emacs -bg grey80 -q --eval (progn (fundamental-mode) (apply 'insert (list \hello \ (propertize (concat \there\

Re: php-bug, multi- and single-line comment switches

2006-03-09 Thread Stefan Monnier
Not clear where is the bug: you're presumably editing this buffer using html-mode, which tells Emacs that what you're writing is HTML text, ... Please try to use one of the various multi-mode packages (mmm-mode for example) There are always ways with Emacs to do it, sure. My suggestion

Re: Fwd: fill-region eats white-space after sentence end

2006-03-10 Thread Stefan Monnier
- sentence-end: [.?!] This is normally nil. If you could figure out where it is set to this value, it would help. PS.: After start I always get: Error in post-command-hook: (void-variable self-insert-command) You have a bug somewhere in a post-command-hook where `self-insert-command' should

Re: Multi- and single-line comment default

2006-03-10 Thread Stefan Monnier
Presently commenting of single lines in C-Mode and others per default uses multiline comment signs as shown below /* Example code */ Seems no way to change this via customization, also after changing comment-style-Var to `plain' or `aligned', same result. Better default would be //

Re: self-insert-command advice is not called when command is run

2006-03-19 Thread Stefan Monnier
self-insert-command is handled specially by the command loop. Is it actually useful nowadays? Couldn't we get rid of this optimization? Stefan ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org

Re: Scrolling completions with Eshell on terminal.

2006-03-20 Thread Stefan Monnier
-((event-matches-key-specifier-p event 'tab) +((or (event-matches-key-specifier-p event 'tab) +;; Needed on a terminal +(event-matches-key-specifier-p event 9)) Maybe you could use something like last-nonmenu-event instead so it

Re: tooltip-mode = nil only displays first line of multi-line text-properties or overlays

2006-03-20 Thread Stefan Monnier
I think this is intentional. Changing the height of the echo area as you move the mouse would be rather unpleasant. It could combine the tooltip string lines, and display as much text as will fit in the echo area. Would that be better? If this is intentional, the documentation for

Re: self-insert-command advice is not called when command is run

2006-03-21 Thread Stefan Monnier
self-insert-command is handled specially by the command loop. Is it actually useful nowadays? Couldn't we get rid of this optimization? I am not sure. Yes, computers are faster. But this is the most common command in Emacs--most of the keystrokes are this command. Yes, but AFAIK it

Re: File name completion in mini-buffer cannot expand Cé

2006-03-21 Thread Stefan Monnier
In Mac OS X file names are saved as de-composed UTF-8, the name C�cile becomes Ce�cile. The *Completions* buffer indeed shows Ceboxcile, and the box itself is: From Emacs's point of view (which currently doesn't include any unicode canonicalization or other equivalence between different

balance-windows causes core dump

2006-03-27 Thread Stefan Monnier
On my GNU/Linux system here, I can crash Emacs as follows: emacs -Q C-x 2 M-x balance-windows RET Emacs fatal error: window.c:4292: assertion failed: GC_WINDOWP(parent) Fatal error (6)zsh: abort (core dumped) ../../trunk/src/emacs -Q I don't have time to look into it right now,

Re: cygwin compilation problem

2006-03-30 Thread Stefan Monnier
starting two days ago or so, compilation fails under cygwin. Oops, I forget to delete superfluous UNGCPRO. I've just installed a fix. BTW, why doesn't the cygwin port use the conservative stack marking? Stefan ___ emacs-pretest-bug

Re: shouldn't Fsignal be marked NORETURN?

2006-04-07 Thread Stefan Monnier
Any reason not to? The `quit' signal can be continued. Stefan ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: shouldn't Fsignal be marked NORETURN?

2006-04-07 Thread Stefan Monnier
Any reason not to? The `quit' signal can be continued. OK, thanks. Then report_file_error can be marked as NORETURN, right? Yes, Stefan ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org

Re: balance-windows causes core dump

2006-04-10 Thread Stefan Monnier
Richard == Richard Stallman [EMAIL PROTECTED] writes: On my GNU/Linux system here, I can crash Emacs as follows: emacs -Q C-x 2 M-x balance-windows RET Nobody seems to have investigated this, so I tried it (please forgive the delay), but it did not fail for me.

Re: Strange redisplay problem in minibuffer.

2006-04-10 Thread Stefan Monnier
Kim == Kim F Storm [EMAIL PROTECTED] writes: Try this: Huh? I tried it and it didn't do anything. Stefan ;-) ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: Wrong type argument: arrayp, nil with LANG=C under Windows

2006-04-11 Thread Stefan Monnier
now as soon as I'll find the time. At least cvs status tells me that some sample files I've looked at are up-to-date. `cvs status' checks the actual contents of the file (sending the local file to the server, if needed), so it's not a good predictor for whether or not the file will be sent

Re: void-variable c-subword-mode with debug-on-error

2006-04-13 Thread Stefan Monnier
With the above recipe, namely: emacs -Q -f toggle-debug-on-error test.c this doesn't happen for me on Windows as well. Only if I touch the menu bar, I see the error message. Either way, the error shoud be fixed (e.g. by checking boundp in the menubar entry's expression). Stefan

Re: void-variable c-subword-mode with debug-on-error

2006-04-13 Thread Stefan Monnier
Eli == Eli Zaretskii [EMAIL PROTECTED] writes: Cc: [EMAIL PROTECTED], emacs-pretest-bug@gnu.org From: Stefan Monnier [EMAIL PROTECTED] Date: Thu, 13 Apr 2006 12:29:04 -0400 The menu item in question toggles a minor mode whose symbol is autoloaded (or at least it's supposed to). How

Re: void-variable c-subword-mode with debug-on-error

2006-04-14 Thread Stefan Monnier
Stefan had a different suggestion, but I couldn't parse it. Hard to believe. Here's the patch I installed. Stefan --- lisp/progmodes/cc-langs.el 24 Feb 2006 15:33:02 - 1.37 +++ lisp/progmodes/cc-langs.el 14 Apr 2006 11:29:32 - @@ -267,7 +267,8 @@ [Hungry

Re: void-variable c-subword-mode with debug-on-error

2006-04-14 Thread Stefan Monnier
The menu item in question toggles a minor mode whose symbol is autoloaded (or at least it's supposed to). How will testing with boundp help in this situation? I don't see where the variable is autoloaded. Note that I didn't say ``variable'', I said ``symbol''. Check the thread's title:

Re: void-variable c-subword-mode with debug-on-error

2006-04-14 Thread Stefan Monnier
The menu item in question toggles a minor mode whose symbol is autoloaded (or at least it's supposed to). How will testing with boundp help in this situation? I don't see where the variable is autoloaded. Note that I didn't say ``variable'', I said ``symbol''. Check the thread's

Re: [tex-mode.el] Subscript in math not fully matched

2006-04-16 Thread Stefan Monnier
Ralf == Ralf Angeli [EMAIL PROTECTED] writes: An AUCTeX user reported that the last brace in the following expression is not being displayed as subscript by font-lock: $x_{\sqrt{\sqrt{2}}}$ AUCTeX uses the same regular expression as tex-mode.el for matching these things, so this bug is

Re: Esc-d deletes too much in a shell script

2006-04-17 Thread Stefan Monnier
First case here (with leading line numbers): Y cursor position 55 echo 56 fi 57 # 58 echo \$\$\$\$\$\$\$\$\$ $0 \$\$\$\$\$\$\$\$\$ # is not considered as being a

Re: [tex-mode.el] Subscript in math not fully matched

2006-04-17 Thread Stefan Monnier
Matching multiple characters of a complemented character alternative is really more efficient than a call to stuff like `scan-lists'? Okay there is some additional code involved as well, but anyway. Maybe you're right. * textmodes/tex-mode.el (tex-font-lock-match-suscript): New

Re: Esc-d deletes too much in a shell script

2006-04-17 Thread Stefan Monnier
OK. So I am missing a function delete-symbol? Try kill-sexp, Stefan ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: syntax-ppss bug?

2006-04-23 Thread Stefan Monnier
I tracked down the problem below to an infloop in python-beginning-of-statement which occurs because syntax-ppss returns -1 as the depth. I think that is the wrong value. Would you please investigate? It does sound like an incorrect value indeed. Is it ever legitimate for syntax-ppss to

Re: syntax-ppss bug?

2006-04-24 Thread Stefan Monnier
I tracked down the problem below to an infloop in python-beginning-of-statement which occurs because syntax-ppss returns -1 as the depth. I think that is the wrong value. Would you please investigate? Actually, parse-partial-sexp returns the same -1. And if you close more parens, you can

Re: Error in matcher for 'gnu' errors in compile.el

2006-04-24 Thread Stefan Monnier
The gnu error matcher in compile has a bug: it includes a matcher for an optional DOS-style drive specifier as part of the filename pattern: \\([/.]*[a-zA-Z]:?[^ \t\n:]*\\|{standard input}\\) However because only the colon is optional, this imposes a requirement on the filename that its

Re: syntax-ppss bug?

2006-04-24 Thread Stefan Monnier
The job of parse-partial-sexp is to describe the changes from point A to point B. When it scans from a place deep within parens into a place less deep, it should return a negative value. That value is accurate as an answer--to this question. However, syntax-ppss is supposed to describe the

Re: binding for RET in python.el

2006-04-26 Thread Stefan Monnier
IMO in the particular case of python binding RET to newline-and-indent makes sense. I use python, and after a few days of having newline-and-indent bound to RET I can conclude that it feels much better. To me this sounds like you're saying that this default is good for *you*, not that this

Re: add info about safe-local-variable to describe-variable

2006-04-28 Thread Stefan Monnier
AFAIK to find out whether a variable is safe or not one has to read the source code. It would be nice to have describe-variable give this information. Sounds good to me. Just a detail, tho: I'm about to remove support for the special value t. Stefan

Re: Skipping a generic comment backwards

2006-04-30 Thread Stefan Monnier
When skipping a generic comment backwards `forward-comment' doesn't update count1. As a consequence (forward-comment -1) skips all generic comments preceding point. The trivial patch below should resolve this. Thanks. Installed. BTW, your tiny contributions are beginning to accumulate, so

Re: Skipping a generic comment backwards

2006-05-01 Thread Stefan Monnier
The attached patch should fix this by inverting the order of these tests. Thanks installed, Stefan who's gone through the same kind of thing a few years back, but obviously didn't test the generic-comment part of the code

Re: forward-comment, C-M-a and C-M-e problems in bibtex-mode

2006-05-08 Thread Stefan Monnier
Oh, and I forgot another problem: doing C-c C-c inside a comment throws a Wrong type argument: number-or-marker-p error. Give the context, you hiopefully understand that inside a comment is a meaningless description of the circumstance. Please give a concrete example. Stefan

Re: forward-comment, C-M-a and C-M-e problems in bibtex-mode

2006-05-08 Thread Stefan Monnier
Oh, and I forgot another problem: doing C-c C-c inside a comment throws a Wrong type argument: number-or-marker-p error. Give the context, you hiopefully understand that inside a comment is a meaningless description of the circumstance. Please give a concrete example. Translation: Given

Re: add info about safe-local-variable to describe-variable

2006-05-10 Thread Stefan Monnier
;;;###autoload (put 'allout-numbered-bullet 'safe-local-variable (lambda (x) (or (not x) (stringp x ... instead of... ;;;###autoload(put 'allout-numbered-bullet 'safe-local-variable (lambda (x) (or (not x) (stringp x ... (and similar for other many other variables) in

Re: add info about safe-local-variable to describe-variable

2006-05-11 Thread Stefan Monnier
i deliberately chose to use the form that defines the variables in the file's bytecode, as well as in loaddefs, because i want to be able to use the most recent version of allout in versions of emacs that are not built with allout (eg, the old emacs version i'm running on my zaurus). i would

Re: add info about safe-local-variable to describe-variable

2006-05-11 Thread Stefan Monnier
Would you please fix the code in allout.el? I'd rather let Ken take care of it. Stefan ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: Big desktop undo buffer crashes Emacs

2006-05-11 Thread Stefan Monnier
! (when (consp buffer-undo-list) ! (setq buffer-undo-list nil)) ! (let ((buffer-undo-list t)) ! (erase-buffer) Why not just (buffer-disable-undo) ?? Stefan ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org

Re: Big desktop undo buffer crashes Emacs

2006-05-12 Thread Stefan Monnier
! (when (consp buffer-undo-list) !(setq buffer-undo-list nil)) ! (let ((buffer-undo-list t)) !(erase-buffer) Why not just (buffer-disable-undo) ?? Because I want to allow people who visit the buffer to undo any changes they deliberately or inadvertently make to it.

Re: with-temp-buffer and undo

2006-05-12 Thread Stefan Monnier
! `(let ((,temp-buffer (generate-new-buffer *temp*)) !(buffer-undo-list t)) Buffer whose name start with a space have their undo disabled by default. I.e. someone thought of that years ago already, Stefan ___

Re: broken font locking in gdb-script-mode

2006-05-18 Thread Stefan Monnier
AFAICS it never took line continuation into account. I generalised the character set that a keyword can have. It happens to include - / and = (and [0-9]). If you had done: set args --foo --bar= \ baz --xyzzy=/some/path.ext baz would have had a keyword face. Hmm... so keywords like

Re: forward-comment, C-M-a and C-M-e problems in bibtex-mode

2006-05-22 Thread Stefan Monnier
Oh, and I forgot another problem: doing C-c C-c inside a comment throws a Wrong type argument: number-or-marker-p error. Hmmm... wrong type argument, you say? Given the context, you hopefully understand that inside a comment is a meaningless description of the circumstance. Please give a

Re: completing include files with complete.el not working (and also a read-file-name-function issue)

2006-05-22 Thread Stefan Monnier
Do emacs -q M-x partial-completion-mode RET C-x C-f sys/ TAB this will print No Match in emacs-21.4 it used to give as completions the files in /usr/include/sys/ Thanks. It seems the patch below fixes it, Stefan --- complete.el 24 Apr 2006 09:04:07 -0400 1.52 +++

Re: Loading an output from prin1 (savehist bug).

2006-05-25 Thread Stefan Monnier
If some code output command-history with prin1 then try to load it back, the # things will cause parse errors. We can't alter that. I see a few possible solutions: 1. Don't put markers into arguments to interactive commands, except thru the specific functions (point), (mark), etc.,

Re: suggestion in query-replace is messed up after cancelation

2006-05-25 Thread Stefan Monnier
! (let* ((inhibit-quit t) ! (read ! (with-local-quit !(read-from-minibuffer ! (format %s %s with: prompt (query-replace-descr from)) ! nil nil nil ! query-replace-to-history-variable from t t !;; If the user

Re: comint / gdb file name completion with spaces in its path

2006-05-28 Thread Stefan Monnier
I think this case is more difficult because: Run gdb (like this): gdb --annotate=3 /Applications/System Preferences... also uses spaces that aren't part of the filename. Would it be possible to ask for parameters and filenames separately? Maybe, but it's much better if we don't need to.

Re: 1. No doc for `help-mode-setup'. 2. Why do temp-buffer*-hook use help-mode?

2006-05-28 Thread Stefan Monnier
help-mode stuff by default? Is that correct? Why does Emacs assume that with-output-to-temp-buffer is dealing with a help buffer? The doc for with-output-to-temp-buffer says nothing about help-mode or a help buffer - it seems to advertise the special form as being completely general. Agreed.

Re: ACL / Listener - Hang (Carbon port)

2006-07-04 Thread Stefan Monnier
Emacs hangs (no C-g possible) when create new listener from the Allegro Common Lisp package is selected - I can't verify / investigate further as I don't have Allegro Common Lisp. The package seems non-standard, but I don't see how an elisp package can legally bring Emacs to a halt (with

Re: Configure gripes about gnome-config

2006-07-04 Thread Stefan Monnier
if $PKG_CONFIG --exists $2 ; then Changed to redirect stderr from $PKG_CONFIG to /dev/null. I'm not sure if that would have any influence, but I've often found the output of pkg-config to be useful to figure out what I needed to install/upgrade in order to get something working. So if

Re: comint-dynamic-complete-functions keeps getting clobbered

2006-07-07 Thread Stefan Monnier
The point is that M-x shell and M-x run-octave keep stomping over each other's major mode's ideas of what comint-dynamic-complete-functions should be. Shouldn't this variable be buffer-local or something? Indeed, it should all be buffer-local. It should be fixed now, thank you,

Re: fill-paragraph bug

2006-07-07 Thread Stefan Monnier
Insert the following text in a LaTeX buffer, and call M-q: AA A AA AAA AAA AAA AAA AAA

Re: Font-locking and single quotes in shell script mode

2006-07-08 Thread Stefan Monnier
* progmodes/sh-script.el (sh-font-lock-syntactic-keywords): \ doesn't escape single quotes. causes a bug in sh-mode when the file contains something like the following: | $ cat foo.sh | #!/bin/sh | echo Don\'t do that | echo Let's do that instead | $ The single quote on

Re: compile.el change

2006-07-08 Thread Stefan Monnier
After this change: 2006-07-07 Stefan Monnier [EMAIL PROTECTED] * progmodes/compile.el (compilation-error-regexp-alist-alist) gnu: Use shy regexp. Fix incorrect backref to potentially unmatched group. the compilation start/end lines are recognized as compilation errors

Re: compile.el change

2006-07-09 Thread Stefan Monnier
These two can be merged, can't they? No, otherwise ``started'' would be highlighted too, and we don't want that... Why would we not want that? Stefan ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org

Re: should locate-file-completion filter out ./ and ../?

2006-07-10 Thread Stefan Monnier
Thankfully (), duplicates are *not* being removed from the result of `all-completions', because I rely upon that fact to give me an unordered set of completions, with duplicates if they are available. I have code that lets users take advantage of completion candidates that might be

Re: Stack overflow in regexp matcher

2006-07-10 Thread Stefan Monnier
Debugger entered--Lisp error: (error Stack overflow in regexp matcher) re-search-forward(: \\(.+\\): \\(?:Permission denied\\|No such \\(?:file or directory\\|device or address\\)\\)$ 69633 t) The only way for this regexp to cause a stack overflow is if there's a *very* long line. We could

Re: should locate-file-completion filter out ./ and ../?

2006-07-10 Thread Stefan Monnier
It's true that the completion candidates themselves are just strings, but the completion alist passed to completing-read or read-file-name can have key-value pairs, and those values can be exploited. I track which candidate is chosen, so I can tell which of any duplicate candidate strings is

Re: should locate-file-completion filter out ./ and ../?

2006-07-11 Thread Stefan Monnier
As I said, however, the duplicate removal is in `minibuffer-completion-help' Oh yes, sorry that's the function I meant. today (before the call to display_completion_list_1), and I don't care about that, because I don't use `minibuffer-completion-help'. That's OK. All I'm saying is that this

Re: Compile-goto-error can signal wrong-type-argument

2006-07-11 Thread Stefan Monnier
Marshall, == Marshall, Simon [EMAIL PROTECTED] writes: This is a buggette in CVS head as of 2006-06-19. src/emacs -Q Start a compilation which is going to raise some errors. Then mouse-1 on an error to get the popup window Find this error in (default ...) for you to navigate to the file.

Re: should locate-file-completion filter out ./ and ../?

2006-07-11 Thread Stefan Monnier
1. The duplicates are not identical, if you consider the whole key-value pair as an entry, as I do in some situations (but as Emacs does not). I.e. they are not identical. Emacs does support this notion at various places (the key-value pairs in alists and things like that), but indeed it

Re: tumme messages in the echo area

2006-07-13 Thread Stefan Monnier
- (setq ret (shell-command command nil)) + (setq ret (call-process shell-file-name nil nil nil -c command)) (if (not (= 0 ret)) (error Could not resize image))) (copy-file file new-file t)) BTW, I strongly suspect that the above can suffer from quoting problems if

Re: tumme messages in the echo area

2006-07-13 Thread Stefan Monnier
So, you suggest making the option a list of strings instead of one string? I think you will have to give me an example, because I cannot see how that would make any difference to using one string, more than to complicate things for the user (instead of having to configure one option string,

Re: focus-follows-mouse should be nil by default on MS Windows

2006-07-14 Thread Stefan Monnier
Cc: Drew Adams [EMAIL PROTECTED], emacs-pretest-bug@gnu.org From: Stefan Monnier [EMAIL PROTECTED] Date: Fri, 14 Jul 2006 11:09:00 -0400 Eli: this variable is not meant to control the window manager, but to inform Emacs of what is the window manager's behavior. Then someone will have

Re: vertical scroll bar should disappear if everything is displayed

2006-07-16 Thread Stefan Monnier
On most applications, scroll bars appear only when there is text to scroll - that is, they appear only when needed. Emacs should behave normally in this regard. This would be very hard to implement; Actually, I suspect that it can be done with a fairly simple post-command-hook

Re: Compile-goto-error can signal wrong-type-argument

2006-07-17 Thread Stefan Monnier
Hi Stefan, thanks for the response. I had to apply the patch by hand, since I've been away and the patch was against an older revision that the one I now have post-update. I have only used this feature with popup windows, and the patch doesn't make any difference to me with those. I'm using

Re: bad syntax highlighting in shell-script mode

2006-07-17 Thread Stefan Monnier
I saved the following into a file called script.sh and then visited the file. The echo a backquote comment was coloured as if it was a string, as was the rest of the file after the comment: #!/bin/sh echo \`

Re: bad syntax highlighting in shell-script mode

2006-07-18 Thread Stefan Monnier
Since $(...$(...)...) can be nested, does it mean that there's no way of highlighting it correctly using regular expressions? It's not highlighted with regular expressions (only the initial $( is matched with a regexp, the rest is handled with elisp code doing manual parsing). Stefan

Re: C-M-a

2006-07-18 Thread Stefan Monnier
Whereas C-M-e works fine and sends info via C-h k, C-M-a seems dead, just sends nothing, no reaction at all, no keyboard event, even not with C-h k followed by C-M-a. Probably caught by the window manager or something like that, Stefan

Re: bad syntax highlighting in shell-script mode

2006-07-18 Thread Stefan Monnier
Since $(...$(...)...) can be nested, does it mean that there's no way of highlighting it correctly using regular expressions? It's not highlighted with regular expressions (only the initial $( is matched with a regexp, the rest is handled with elisp code doing manual parsing). I'll see

Re: sh-mode font-lock error

2006-07-18 Thread Stefan Monnier
Thanks. I get the impression (catching up on emacs mailing lists) you are trying to fix font-locking of quoted and nested things. FYI, the following (not uncommon, I would have thought) construct currently does not fontify correctly. I'm pretty sure it used to... #!/bin/bash echo the time

Re: Error when applying hunk in Diff buffer

2006-07-20 Thread Stefan Monnier
Hi Andre, it can work on Solaris 8, and has done all the way up to 21.3. The change in Emacs-22 is that the diff can be done locally (with `diff') rather than via `cvs'. If you remove the file foo.~.rev~, then it'll force VC to ask `cvs' to do the diff and you'll get a header just like the one

Re: sh-mode font-lock error

2006-07-20 Thread Stefan Monnier
I believe the patch below (just installed) fixes it, Well, I believe the one I just installed does fix it, this time. Stefan ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org

Re: strange key handling on a terminal

2006-07-21 Thread Stefan Monnier
Then if I try pressing C-. I get the error: C-. is undefined. This happens when using emacs from CVS updated a few minutes ago. Seems completely normal: C-. is also unbound here under X11. The same thing works fine when using emacs-21.4 C-. is also unbound in my copy of Emacs-21.4. What

Re: strange key handling on a terminal

2006-07-21 Thread Stefan Monnier
I am using xterm-215 that emits escape sequences for some key combinations that did not emit any special sequence. For example C-. emits \e[27;5;46~ Now if I do: emacs -q -nw M-: (define-key function-key-map \e[27;5;46~ [(control ?\.)]) RET M-x global-set-key RET C-. RET indent-region

Re: Error in menu-bar-update-hook: (error Point before start of p rope rties)

2006-07-21 Thread Stefan Monnier
(dbx) frame 1 Current function is update_interval (dbx) print pos pos = 30065 (dbx) print i i = 0xb46710 (dbx) print *i *i = { total_length = 357181U position = 144991U (*i).left = 0x110ba4c (*i).right= 0x1113f10 up= {

Re: strange key handling on a terminal

2006-07-21 Thread Stefan Monnier
I wasn't aware that [(control ?\.)] was XEmacs syntax, I just copied it from flyspell.el ... You could lobby to change define-key so it accepts this syntax for the third argument as well. I think it'd make sense. IIRC the third argument can only ever contain things like functions and key

Re: sh-mode font-lock error

2006-07-21 Thread Stefan Monnier
Well, I believe the one I just installed does fix it, this time. It fixes the previously posted example, but now this snippet is messed up: #!/bin/bash gbytes=`echo $bytes_total | gawk '{printf(%5.1f), $1 / (1024^3)}'` echo The time is now `date` This was messed up already a month ago,

Re: Error when applying hunk in Diff buffer

2006-07-22 Thread Stefan Monnier
The change in Emacs-22 is that the diff can be done locally (with `diff') rather than via `cvs'. If you remove the file foo.~.rev~, then it'll force VC to ask `cvs' to do the diff and you'll get a header just like the one we get with -L (this use of -L is specifically to reproduce the

Re: 100% CPU usage for a few minutes when visiting large Unicode file

2006-07-23 Thread Stefan Monnier
* If I hit C-n C-n, Emacs again starts using 100% of the CPU, for perhaps 5 seconds IIUC correctly, the file has some majorly long lines, so it's no wonder C-n takes a long time. Stefan ___ emacs-pretest-bug mailing list

Re: [EMAIL PROTECTED]: Font Lock on-the-fly misfontification in C++]

2006-07-24 Thread Stefan Monnier
Put the following in a fubar.cpp: class Fubar : public Foo, // Foo fontified as a type, at first public Bar// Bar fontified as a type, at first { Foo bar(Snafu snafu, // Types, function, variable fontified, at first Foo foo, Bar bar); Foo bar(Snafu *snafu, // Types, function,

Re: [EMAIL PROTECTED]: Font Lock on-the-fly misfontification in C++]

2006-07-24 Thread Stefan Monnier
3. Append a space to the fourth commented line. Bug: fontification of Foo, bar, Snafu and snafu is removed from that line. The problem is that after a textual change, the changed line gets fontified as an atomic entity, i.e. yanked out of its context. The If you placed a

Re: [EMAIL PROTECTED]: Font Lock on-the-fly misfontification in C++]

2006-07-24 Thread Stefan Monnier
You haven't shown any evidence of inefficiency. I think I have, in our previous discussion. I think it's clear that f-l-multiline properties are erased throughout the change-region, and have to be recalculated througout the change region, at every change. For most C-like languages, this

Re: font-lock confused in sh-script-mode

2006-07-26 Thread Stefan Monnier
Open the following file in emacs (emacs -Q sh-bogus-comment.sh): --8---cut here---start-8--- #!/bin/sh do_untrusted() { : ${squash:=squash_uids=0-149} for host in $pc_untrusted; do # force `ro echo $host($squash,ro,sync)\\ done }

Re: Multiple runs of menu-bar-update-hook

2006-07-28 Thread Stefan Monnier
I notice that the hook is run once whenever I down-mouse-1 on the menu bar (at least with lucid or motif toolkit). This may be a stupid question, but isn't it enough to run at this point? Does emacs need to run the hook during buffer editing, window motion or frame switching? (Obviously it

Re: [EMAIL PROTECTED]: Font Lock on-the-fly misfontification in C++]

2006-07-31 Thread Stefan Monnier
The patch below seems to fix number 2 and 3 for me. Someone who understands cc-fonts.el better than me and thus knows where the two public XXX lines are handled could probably do a similar adjustment for them. At the very least, this isn't suitable for the CC Mode repository, since

Re: [EMAIL PROTECTED]: Font Lock on-the-fly misfontification in C++]

2006-08-01 Thread Stefan Monnier
As a matter of interest, does the f-l-multiline mechanism somehow work with a _first_ fontification? Assume CC Mode has been enhanced to use f-l-multiline. Say we have a buffer of C source in fundamental mode (so there're no f-l-m properties on the buffer), and the top of the screen is in

Re: [EMAIL PROTECTED]: Font Lock on-the-fly misfontification in C++]

2006-08-01 Thread Stefan Monnier
It seems that the identification of the safe place (in a previously unfontified region) needs to be done by a function essentially the same as font-lock-extend-region-function, since f-l-multiline properties haven't yet been applied. In that case, what is the advantage in using f-l-multiline

Re: subst-char-in-region broken when a before-change function reads buffer contents

2006-08-03 Thread Stefan Monnier
When I put a function calling buffer-substring into the before-change-functions hook, then subst-chars-in-region sometimes produces wrong results. Good catch. Does the patch below help? Stefan --- orig/src/editfns.c +++ mod/src/editfns.c @@ -2706,6 +2706,10 @@ Lisp_Object

Re: Error when applying hunk in Diff buffer

2006-08-03 Thread Stefan Monnier
Or maybe diff-mode should be able to cope with a diff like this: [...] And DTRT? Yes, maybe diff-mode could use some heuristic to decide which of the two file names should be used. Maybe if one of the two is a backup files (with the ~ at the end) or if one of the two is read-only,

Re: reproducible cygwin memory problems

2006-08-07 Thread Stefan Monnier
However, comparing to the mingw port, I notice that M-:(clear-image-cache t) has no effect under cygwin, but does result in memory decrease after editing an image in mingw. Sounds like cygwin's implementation of the basic memory management primitives never returns memory to the system. Or at

Re: reproducible cygwin memory problems: SOLVED?

2006-08-07 Thread Stefan Monnier
please ignore my previous report, I didn't do the testing correctly (I ran configure after making the changes to config.h). repeated now: when undefining rel_alloc, memory increases from 14 to 21Mb due to image editing, but does not keep increasing after that due to further image editing.

Re: sh-mode font-lock error

2006-08-08 Thread Stefan Monnier
Well, I believe the one I just installed does fix it, this time. It fixes the previously posted example, but now this snippet is messed up: #!/bin/bash gbytes=`echo $bytes_total | gawk '{printf(%5.1f), $1 / (1024^3)}'` echo The time is now `date` Should be fixed now, Stefan

<    1   2   3   4   5   6   7   8   >