Re: fringe buffer-boundary bitmaps

2005-06-21 Thread Miles Bader
Also, here are some alternate versions of the fringe line-wrapping indicator bitmaps: (define-fringe-bitmap 'continued-line [96 16 8 8 72 80 96 120] nil nil 'bottom) (define-fringe-bitmap 'continuation-line [8 16 16 16 18 10 6 30] nil nil 'top) These are lighter-weight than the current defaults,

Re: occur-hook changing the current buffer

2005-06-21 Thread Miles Bader
Juanma Barranquero <[EMAIL PROTECTED]> writes: >> Once your code is fixed this is not needed any more. If the occur-hook is >> expected to set-buffer in most/many cases, it might make sense, but >> otherwise it doesn't. > > Well, I think it makes sense even if occur-hook is not expected to > chang

Re: occur-hook changing the current buffer

2005-06-21 Thread Richard M. Stallman
Now, I can easily change my function to do the right thing, but I still feel that `occur-1' should be fixed by using `save-current-buffer' around the call to "(run-hooks 'occur-hook). The rationale being that setting the modified flag to nil on the wrong buffer can lead to data

Re: occur-hook changing the current buffer

2005-06-21 Thread Stefan Monnier
>> Sounds like a serious bug. Such bugs can lead to loss of data. > Does that mean that you agree that occur mode should run occur-hook via No, it means I agree that your code is buggy and should thus be fixed. > (save-current-buffer > (run-hooks 'occur-hook)) Once your code is fixed this

Re: occur-hook changing the current buffer

2005-06-21 Thread Richard M. Stallman
And BTW, occur-mode is a major mode. Shouldn't it use run-mode-hooks? It already does, to run occur-mode-hook. occur-hook is different. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: Scroll lock

2005-06-21 Thread Richard M. Stallman
It seems like a feature worth adding. However, is it really right to modify next-line? It is not a scroll command. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: vc-cvs-global-switches and -f

2005-06-21 Thread Stefan Monnier
> RET nil RET" *every time* he starts Emacs without loading .emacs. Are you speaking seriously here? The "emacs -Q" scenario is not a normal use scenario, AFAIK, so its convenience doesn't really matter that much. At least not nearly as much as the convenience of the normal situation. S

Re: Threads in emacs implementation

2005-06-21 Thread Richard M. Stallman
As I understand it such an implementation would not take advantage of the new hardware that supports multi-threading, eg: multi-core x86 processors. I am not sure that case is important, or that it would outweigh the slowness of all variable accesses. I don't think that Emacs will oft

Re: debug-on-entry question

2005-06-21 Thread Richard M. Stallman
There are other commands using `a' letter to read function names (like `elp-instrument-function', etc.) where getting the default function name from the current buffer would be useful too. So maybe it's better to implement this in `call-interactively' for all commands using `a'? T

Re: vc-cvs-global-switches and -f

2005-06-21 Thread Juanma Barranquero
> Are you speaking seriously here? > The "emacs -Q" scenario is not a normal use scenario, AFAIK, so its > convenience doesn't really matter that much. At least not nearly as much as > the convenience of the normal situation. Let's put it other way: even on normal situation, it seems safer to mak

Re: occur-hook changing the current buffer

2005-06-21 Thread Juanma Barranquero
> It already does, to run occur-mode-hook. > occur-hook is different. Ah, you're right. Silly me. -- /L/e/k/t/u ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: occur-hook changing the current buffer

2005-06-21 Thread Juanma Barranquero
> No, it means I agree that your code is buggy and should thus be fixed. Why was my function buggy? Where is it documented that occur-hook functions should not change the current buffer? Is that a generic requirement for hook functions? In this particular case, if `occur-1' didn't set the read-on

Re: New dumping problem...

2005-06-21 Thread Katsumi Yamaoka
> In <[EMAIL PROTECTED]> Richard Stallman wrote: > BTW, FC4 eats the C-SPC key for the `iiimx' program which is the > input method for (at least?) Japanese text by default, so I > couldn't use C-SPC for `set-mark-command' in Emacs. Liang Zhao > kindly told me that it can be so

fringe buffer-boundary bitmaps

2005-06-21 Thread Miles Bader
I like to use Kim's fringe "buffer-boundary indicator" bitmap feature (set with the variable `indicate-buffer-boundaries'), but the default bitmaps are rather unpleasant for several reasons -- (1) They're quite "heavy", so tend to draw the eye too much. With the fringe line-wrapping indicat

Re: TTY Vertical divider face?

2005-06-21 Thread Miles Bader
On 6/22/05, Juri Linkov <[EMAIL PROTECTED]> wrote: > > Hmmm on the other hand, there's already a face `border', with a > > different meaning (for setting the X border pixel color). > > Is it possible to reuse the same face for vertical divider with an > additional spec like '(((type tty) :inherit

Re: Gnus not escaping NBSP and soft-hyphen

2005-06-21 Thread Miles Bader
On 6/22/05, Gaëtan LEURENT <[EMAIL PROTECTED]> wrote: > Maybe a more systematic way to proceed would be to disable NBSP-escaping > in read-only buffers (but it could sometimes be confusing, too). Yes, I think that would be a mistake. For better or worse, it really does seem to be something which

Re: TTY Vertical divider face?

2005-06-21 Thread Miles Bader
On 6/22/05, Richard M. Stallman <[EMAIL PROTECTED]> wrote: > Maybe it would be better to keep the face-name as `vertical-divider', > > I like "border" better than "divider". Fair enough. -Miles -- Do not taunt Happy Fun Ball. ___ Emacs-devel mail

$B=w$O#3#0$+$i(B

2005-06-21 Thread info
[EMAIL PROTECTED],A}$($F$-$^$7$?!#(B $B$3$3?t%v7n$G#3#0Be(B, $B#4#0Be(B, $B$=$l0J>[EMAIL PROTECTED],A}$($F$*$j$^$9!#(B $B$$$m$$$mLu$"$j$J$N$+$bCN$l$^$;$s$N$G!"CK$H$7$F<[EMAIL PROTECTED]"$k#3#0Be0J>e$N(B [EMAIL PROTECTED];W$$!"$3$N%a!<%k$rAw$j$^$7$?!#(B $B#P#C=i?4%a(B, $BD>EE8r49$b;

Re: TTY Vertical divider face?

2005-06-21 Thread Richard M. Stallman
Maybe it would be better to keep the face-name as `vertical-divider', and also change the name of the display-table slot to match (it's easy to provide a backward-compatibility alias for that). What do other people think? I like "border" better than "divider". _

Re: Gnus not escaping NBSP and soft-hyphen

2005-06-21 Thread Gaëtan LEURENT
Stefan Monnier wrote on 21 Jun 2005 23:30:07 +0200: > It's a feature. I couldn't stand reading the NBSP-escaping in some French > articles where half the spaces are NBSP. NBSP-escaping is good in > prog-lang buffers, not in Gnus's artcle buffer. That makes sense, but I'd rather have the NBSP e

Re: enriched-mode problems

2005-06-21 Thread Richard M. Stallman
Anyway, it seems pretty natural to offer minor modes with a customizable default setting, and not all minor modes might be 100% user-preference. Minor modes are supposed to be used for user preferences. Things which are not user preferences should be handled with variables that are no

Scroll lock

2005-06-21 Thread Ralf Angeli
Hi everybody, in a German newsgroup somebody asked if it would be possible to keep the position of point fixed while doing vertical motion, i.e. to have a behavior commonly referred to as scroll lock. Such a behavior can be useful when you are primarily reading (in contrast to editing) a file and

Re: vc-cvs-global-switches and -f

2005-06-21 Thread Juanma Barranquero
On 6/21/05, Stefan Monnier <[EMAIL PROTECTED]> wrote: > I for one would be annoyed to have to re-specify in Emacs the options I've > already set globally in my ~/.cvsrc. You can always set `vc-cvs-global-switches' to nil in your .emacs. The situation I'm trying to fix is precisely the one where t

Re: occur-hook changing the current buffer

2005-06-21 Thread Juanma Barranquero
> Sounds like a serious bug. Such bugs can lead to loss of data. Does that mean that you agree that occur mode should run occur-hook via (save-current-buffer (run-hooks 'occur-hook)) ? And BTW, occur-mode is a major mode. Shouldn't it use run-mode-hooks? -- /L/e/k/t

Re: lists.texi

2005-06-21 Thread Thien-Thi Nguyen
Luc Teirlinck <[EMAIL PROTECTED]> writes: > Apparently these timings are not very fixed. In a freshly started > Emacs, my proposed version took 12 seconds (instead of earlier 23) and > the abstract versions 40 seconds (instead of 51). This gives a > mysterious gain of 11 seconds for both. But n

We invite you to visit our Internet-stock exchange of the criminal goods and services!

2005-06-21 Thread mazafaka
Dear Internet-user, The Internet-stock exchange " Mazafaka. CC " in partnership with " FDCservers. Net " call attention to you the huge list of the criminal goods and services on our joint the Internet-resource. The introduction. How it was. In the beginning of 2004 we Le Ministre and Render, fo

Re: lists.texi

2005-06-21 Thread Thien-Thi Nguyen
Luc Teirlinck <[EMAIL PROTECTED]> writes: > ring-ref does not rotate the ring, nor does it "exhaust" it. Maybe > you mean `ring-remove', but that would force me to copy the ring first. you're right. i was thinking destructively (been reading Il Signore Degli Annelli, that's my excuse :-)... so

Re: occur-hook changing the current buffer

2005-06-21 Thread Stefan Monnier
> In my `occur-hook' I have a custom function which does not save the > current buffer, Sounds like a serious bug. Such bugs can lead to loss of data. Stefan ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listi

Re: Gnus not escaping NBSP and soft-hyphen

2005-06-21 Thread Stefan Monnier
>> I don't know if it is a bug or a feature, It's a feature. I couldn't stand reading the NBSP-escaping in some French articles where half the spaces are NBSP. NBSP-escaping is good in prog-lang buffers, not in Gnus's artcle buffer. >> I'd say it makes perfect sense to not escape special charac

Re: lists.texi

2005-06-21 Thread Luc Teirlinck
Apparently these timings are not very fixed. In a freshly started Emacs, my proposed version took 12 seconds (instead of earlier 23) and the abstract versions 40 seconds (instead of 51). This gives a mysterious gain of 11 seconds for both. But now my proposed version runs 3.33 times faster than

Re: vc-cvs-global-switches and -f

2005-06-21 Thread Stefan Monnier
> I was running "emacs.exe -Q" today and was puzzled to see that the > output of `vc-diff' talked about "conflicting specifications of output > style", until I remembered that I have an entry on ~/.cvsrc which > says: "diff -u2", and the default style for VC is "-c". > So the question is: why does

Re: lists.texi

2005-06-21 Thread Luc Teirlinck
After thinking a bit more, the algorithm I propose to install (took 23 seconds in the test case) seems clearly superior over the one that took 20 seconds. The reason is that my proposed algorithm is linear in the _length_ of the ring, the 20 second algorithm is linear in the _size_ of the ring. T

Re: Gnus not escaping NBSP and soft-hyphen

2005-06-21 Thread Gaëtan LEURENT
Paul Pogonyshev wrote on 21 Jun 2005 20:38:47 +0200: > I don't know if it is a bug or a feature, but why would you possibly want > to see non-breaking spaces in your messages? I sort of want to read my > mail, not investigate the typographic peculiarities in it. Well, I guess it's not a common

Re: lists.texi

2005-06-21 Thread Luc Teirlinck
Thien-Thi Nguyen wrote: an index of -1 returns the "oldest" element. so you could just `(ring-ref ring -1)' until the ring is exhausted, obviating both `nreverse' and `var' reference, while keeping the abstraction. ring-ref does not rotate the ring, nor does it "exhaust" it. Maybe yo

Re: Gnus not escaping NBSP and soft-hyphen

2005-06-21 Thread Paul Pogonyshev
Gaëtan LEURENT wrote: > Hi, > > I noticed that when displaying messages in Gnus, the NBSP and soft-hypen > are just displayed as normal space and hyphen instead of being prefixed > with an escape character (or NBSP being displayed as underlined as in > the recent CVS). I don't know if it is a bug

Re: Threads in emacs implementation

2005-06-21 Thread Nic Ferrier
"Richard M. Stallman" <[EMAIL PROTECTED]> writes: > That would make the usual case much slower. > I prefer the idea of swapping bindings on thread switches. As I understand it such an implementation would not take advantage of the new hardware that supports multi-threading, eg: multi-core x86 pro

Re: TTY Vertical divider face?

2005-06-21 Thread Juri Linkov
> Hmmm on the other hand, there's already a face `border', with a > different meaning (for setting the X border pixel color). Is it possible to reuse the same face for vertical divider with an additional spec like '(((type tty) :inherit mode-line-inactive))? > The name `vertical-border' seems sli

Gnus not escaping NBSP and soft-hyphen

2005-06-21 Thread Gaëtan LEURENT
Hi, I noticed that when displaying messages in Gnus, the NBSP and soft-hypen are just displayed as normal space and hyphen instead of being prefixed with an escape character (or NBSP being displayed as underlined as in the recent CVS). Step to reproduce: - Start emacs CVS with: emacs -Q -f gnus

Background mode (was: Diff mode faces)

2005-06-21 Thread Juri Linkov
>> I see there is a bug not caused by my patch: >> >> emacs -q -nw -rv >> >> sets the background mode to light on xterm. But since -rv switches >> foreground and background, it should switch the background mode too >> from light to dark on xterm. > > I think this is a bug. There are also othe

Re: debug-on-entry question

2005-06-21 Thread Juri Linkov
>> A better way to do this is to change the interactive specification of >> `debug-on-entry' to call `function-called-at-point'. > > How about this? There are other commands using `a' letter to read function names (like `elp-instrument-function', etc.) where getting the default function name from

Re: [Mac OS X] [Win32] Frame-transparency patch

2005-06-21 Thread Kevin Rodgers
Juanma Barranquero wrote: > - Also, capitalize the interactive messages "active alpha: " and > "inactive alpha: " to "Active alpha: " and "Inactive alpha: " (it's > customary on interactive prompt). Why not an actual alpha character? :-) -- Kevin Rodgers

Re: minibuffer and scroll-conservatively

2005-06-21 Thread Gaëtan LEURENT
Lars Hansen wrote on 21 Jun 2005 17:47:08 +0200: > Start todays emacs with -Q and set scroll-conservatively to some > non-zero number, say 1. > Then type eg. M-x ABC. Now the minibuffer shows "M-x ABC" as expected. > But if you type the Danish character A-ring (a capital A with a ring > above) e

Re: lists.texi

2005-06-21 Thread Thien-Thi Nguyen
Luc Teirlinck <[EMAIL PROTECTED]> writes: > (defun ring-elements (ring) > "Return a list of the elements of RING in order, newest first." > (let (lst) > (dotimes (var (ring-length ring)) > (push (ring-ref ring var) lst)) > (nreverse lst))) an index of -1 returns the "oldest" ele

RE: File menu changes (suggestions) / Options menu

2005-06-21 Thread David Reitter
Drew Adams wrote: 1. "Save Buffer As" runs command `write-file'. Where's the beef - er - "buffer"? 2. "Save (current buffer)" runs command `save-buffer'. 3. "Close (current buffer)" runs command `kill-this-buffer'. 4. "Revert Buffer" runs command `revert-buffer'. It doesn't matter what command

minibuffer and scroll-conservatively

2005-06-21 Thread Lars Hansen
Start todays emacs with -Q and set scroll-conservatively to some non-zero number, say 1. Then type eg. M-x ABC. Now the minibuffer shows "M-x ABC" as expected. But if you type the Danish character A-ring (a capital A with a ring above) everything seems to disappear from the minibuffer. I am sorry

Re: Threads in emacs implementation

2005-06-21 Thread Richard M. Stallman
If the secondary thread modifies a global, make the copy then (Copy On Write). This would be difficult to implement, considering that a symbol's value is normally kept in its value cell. The interpreter would just have to keep a hashtable of hashtables; primary key is the secondar

Re: enriched-mode problems

2005-06-21 Thread Gaëtan LEURENT
David Kastrup wrote on 21 Jun 2005 07:29:49 +0200: > TeX-PDF-mode does not go through DVI. A different executable "pdftex" > is employed that has its own set of primitive commands. The most obvious difference is that when using TeX you can include ps graphics but not pdf, and when using PDFTeX

Re: TTY Vertical divider face?

2005-06-21 Thread Richard M. Stallman
Maybe it would be better to keep the face-name as `vertical-divider', and also change the name of the display-table slot to match (it's easy to provide a backward-compatibility alias for that). What do other people think? I don't like "divider" much.

Re: lists.texi

2005-06-21 Thread Richard M. Stallman
was quadratic. It essentially does ring-length times an aref in _vector_, which unlike checking the element at an average position in a _list_, would not appear to be linear in the size of the vector. If it is a vector, you're right, it isn't quadratic. _

Re: scroll-margin has no effect when show-trailing-whitespace is true

2005-06-21 Thread Johan Bockgård
Richard Stallman <[EMAIL PROTECTED]> writes: > `scroll-margin' has no effect when `show-trailing-whitespace' is true. > > Would you please send a self-contained test case? Start emacs -Q Visit a file that is larger than a screenful (say etc/NEWS). M-x set-variable RET scroll-margin RET 3 RE

Re: [Mac OS X] [Win32] Frame-transparency patch

2005-06-21 Thread Juanma Barranquero
> > Perhaps the easiest fix is just define the constants yourself. > I've done. I'm not sure whether it would be better to protect these with #ifndef, i.e. #ifndef LWA_ALPHA #define LWA_ALPHA 2 #endif Take a look at other potential redefinition on the sources to see what's usually done. A

Re: [PCL-CVS] Menu entry for `cvs-mode-mark' missing

2005-06-21 Thread Reiner Steib
On Fri, May 20 2005, Stefan Monnier wrote: >> Do you find _this_ menu completely unusable, or menus in general? If >> the former, then maybe it can be improved. > > This menu in particular. > But I have no idea how to improve it, so AFAIC no change can make > it worse: feel free to change it. Ad

Re: [Mac OS X] [Win32] Frame-transparency patch

2005-06-21 Thread Takashi Hiromatsu
Thank you for your kindly advices. At Mon, 20 Jun 2005 23:58:35 +0200, Juanma Barranquero wrote: > I'm using Visual Studio .NET 2003 and I'm getting "undefined > identifier" errors for LWA_ALPHA and WS_EX_LAYERED. They are on > WinUser.h, of course; I suppose it's a _WIN32_WINNT >= 0x0500 thing. >

Re: File menu changes (suggestions)

2005-06-21 Thread Miles Bader
On 6/21/05, Mathias Dahl <[EMAIL PROTECTED]> wrote: > > Another possible renaming I forgot to mention is "Split Window". The > > window is not split to result in a single window with a > > divider. > > I do not agree. "Split Window" is in my opinion a very good > description of what that command d

Re: foreground menu bug

2005-06-21 Thread Mathias Dahl
Richard Stallman <[EMAIL PROTECTED]> writes: > I tested this the other day too and was confuzzled (confused + > puzzled). After a while I realized that it had to do woth > font-lock-mode overriding my coloring. > > Perhaps those menu items should be disabled when Font Lock is enabled.

Re: File menu changes (suggestions)

2005-06-21 Thread Mathias Dahl
"Drew Adams" <[EMAIL PROTECTED]> writes: > Another possible renaming I forgot to mention is "Split Window". The > window is not split to result in a single window with a > divider. "New Window" would be a better name for this menu item. I do not agree. "Split Window" is in my opinion a very good