Re: Is there any way to have a string literal that is read "raw"

2005-07-08 Thread Sean O'Rourke
"Richard M. Stallman" <[EMAIL PROTECTED]> writes: > I would not dream of changing something as fundamental as string > syntax for something as specific as filename handling, even if it were > meant to be used on the GNU system. Some sort of literal string syntax would also be very useful for regul

Re: Emacs and Squiggles as filenames

2005-07-08 Thread Richard M. Stallman
If there exists a file named "~" in my ~/tmp/, I see funny things: (expand-file-name (file-name-nondirectory "~/tmp/~") "~/tmp"), returns =>/home/deego instead of /home/deego/tmp/~ That is a painful one. I am not sure what we could do to fix it, other than make expand-file-name not

Re: Constant symbol :help error when loading igrep.el into July 7 CVS snapshot

2005-07-08 Thread Richard M. Stallman
I get the error: Debugger entered--Lisp error: (error "Constant symbol `:help' specified in defvar") (defvar :help (quote :help)) We used to defvar keyword symbols that way for compatibility with old Emacs versions that did not have keywords as a feature. Since packages continue d

Re: obsolete comment in tool-bar.el

2005-07-08 Thread Luc Teirlinck
The following patch to tooltip.el simplifies the standard value of the tooltip-mode defcustom further than my original version. The remaining `(fboundp 'x-show-tip)' is really necessary, even after startup. ===File ~/tooltip.el-diff=== *** tooltip.el 04 Jul 2005 1

Re: eval-buffer with debug-on-error t

2005-07-08 Thread Richard M. Stallman
I have debug-on-error set to t. When I do an eval-buffer and there is an undefined function: (this-is-no-fun) I get the error "Wrong type argument: stringp, nul Does this fix it? (I installed a more elaborate patch.) *** debug.el05 Jul 2005 00:45:47 -0400 1.90 ---

Re: grep.el regexp

2005-07-08 Thread Richard M. Stallman
[I sent this message a few weeks ago but did not get a response. Could we get the discussion moving again?] > I am not sure whether that relates to the suggestion I made: >> I think that if we wrote a separate regexp for each kind of grep, >> all together they would match a lot fewer

Re: obsolete comment in tool-bar.el

2005-07-08 Thread Richard M. Stallman
Question: How will users see/detect/understand this behavior? What will they see in "Show initial Lisp expression"? They will see an expression that recomputes the standard value based on whatever conditions are relevant. My approach, like the one Luc's original one, avoids the need to co

Re: Emacs and Squiggles as filenames

2005-07-08 Thread Richard M. Stallman
(file-truename "~/tmp/~") => "/home/deego/tmp/~" That is correct. Yet, "~/tmp/~" is apparently the correct representation, as returned by (directory-files "~/tmp" t) They are both correct representations. However, I am surprised that directory-files returns names using ~/. It

Re: Carbon port: setting the creator code (patch)

2005-07-08 Thread Steven Tamm
Sorry for the delay in reply, but it seems to me that using SetFile would be easier, and more flexible. (defun mac-set-creator-code-for-file () (call-process shell-file-name nil nil t shell-command-switch (concat "/Developer/Tools/SetFile -c EMAx " buffer-file-name)) ) (add-hook 'after-sav

Re: obsolete comment in tool-bar.el

2005-07-08 Thread Luc Teirlinck
Doing this work is the only way to get the benefit, so let's do it. If the solution below looks OK I will document it in the Elisp manual. Other people will need to help with this, since I do not fancy handling all 20-30 options, some of which I know nothing about, all by myself. I actually us

C-x C-w trouble

2005-07-08 Thread Luc Teirlinck
The following change: * files.el (set-visited-file-name): Report the error for "empty filename" earlier. has problems. Do `emacs -q -nbc' C-x C-w Call your new file "test", or whatever. Result: set-visited-file-name: Wrong type argument: stringp, nil The small patch below fixes the proble

Re: obsolete comment in tool-bar.el

2005-07-08 Thread Luc Teirlinck
Drew Adams wrote: Or what about just reusing keyword :initialize, perhaps redefining its behavior to recognize this special case? After all, this is about initializing the value. The case could be distinguished by supplying :initialize with an argument `custom-initialize-set-runtime' (

Re: Patch to fix frame positioning with negative top/left values on Windows

2005-07-08 Thread Francis Litterio
I wrote: > This patch to the CVS Emacs sources fixes the way that function > x_calc_absolute_position() accounts for the Windows-drawn borders around > a frame when converting a negative 'top or 'left parameter into the > equivalent positive value. I should have said what the symptom of the malfu

Re: Updating copyright years .... any progress?

2005-07-08 Thread Richard M. Stallman
Some time ago, copyright years in a number of files were messed up due to a misunderstanding of the policy. Work was started to write a policy document, but it seems to have halted. I am still waiting for Eben Moglen to respond to my repeated queries. Until a clear policy is docu

Re: turning on global-font-lock-mode by default?

2005-07-08 Thread Richard M. Stallman
Does setting gc-cons-threshold to a small value like 4000 increase the likelihood of the crash? It's one of the things I try on sporadic problems. Remember that these crashes usually happen days or weeks apart. I don't want to run in such a slow mode all the time, sorry. _

Re: Is there any way to have a string literal that is read "raw"

2005-07-08 Thread Richard M. Stallman
Is it possible to tell Emacs not to interpret escape character in a certain string? If I have something like this: (setq str "some\thing\escaped") Can this be changed without changing the literal so that Emacs takes exactly what is in the string, without escaping any char

Re: theming

2005-07-08 Thread Richard M. Stallman
> However, as long as the (IMHO sensible) patches that Seiji Zenitani and > I have provided (which only pertain to the OS X version) don't find their > way into the core or get formally rejected with reasons given, Mac-only patches are looked at only by the people that are interested i

Re: Is there any way to have a string literal that is read "raw"

2005-07-08 Thread Lennart Borgman
Richard M. Stallman wrote: I would not dream of changing something as fundamental as string syntax for something as specific as filename handling, even if it were meant to be used on the GNU system. And since it is merely for the sake of Windows, an unethical system that we aim to replace, the

Re: Sorting of directories in dired

2005-07-08 Thread Johan Bockgård
Edward O'Connor <[EMAIL PROTECTED]> writes: > A related issue that I *did* find disturbing: on recent versions of > Fedora Core, the default Dired ordering interleaved dot-files with > ordinary files, because of some DWIMish behavior of the underlying > `ls' implementation. I added "setenv LC_ALL

Re: Updating copyright years .... any progress?

2005-07-08 Thread Bill Wohler
[EMAIL PROTECTED] (Kim F. Storm) writes: > Until a clear policy is documented, I would suggest that instead of > the current _very incorrect_ copyright years, the previous list of > (mostly correct) years is restored in the affected files. ... > lisp/mh-e working Thien-Thi Nguy

RE: obsolete comment in tool-bar.el

2005-07-08 Thread Drew Adams
(defvar rogue-var) ;; to silence the compiler for the next line. (unless (default-boundp rogue-var) (setq rogue-var nil)) (defcustom rogue-var ... ... :initialize 'custom-initialize-set ...) Suppose we implement a keyword in defcustom that caus

Re: obsolete comment in tool-bar.el

2005-07-08 Thread Richard M. Stallman
(defvar rogue-var) ;; to silence the compiler for the next line. (unless (default-boundp rogue-var) (setq rogue-var nil)) (defcustom rogue-var ... ... :initialize 'custom-initialize-set ...) Suppose we implement a keyword in defcustom that causes it to generate all that.

Re: Sorting of directories in dired

2005-07-08 Thread Richard M. Stallman
Could those who are interested in Windows please discuss this among themselves, not here? ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: Is there any way to have a string literal that is read "raw"

2005-07-08 Thread David Kastrup
Lennart Borgman <[EMAIL PROTECTED]> writes: > In that example there are paths in MSYS format (ie unix > format). However you can replace `pwd` with `pwd -W` and get those in > w32 format. Then you get the problem I am thinking of. But thinking > about it again this could perhaps be solved (worked

Re: Is there any way to have a string literal that is read "raw"

2005-07-08 Thread Lennart Borgman
David Kastrup wrote: I was thinking of an easier way of handling w32 file names. When trying to build with MSYS it fails just because of the file name Emacs got from somewhere is in w32 format. What does "got from somewhere" mean? Could you provide an example? Look under why you sh

Re: Is there any way to have a string literal that is read "raw"

2005-07-08 Thread Lennart Borgman
I was wrong about MSYS "pwd -W". It actually gives the output in Emacs w32 style. I can not remember what happened now then. I will have to try again. Coming back. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo

Re: obsolete comment in tool-bar.el

2005-07-08 Thread Luc Teirlinck
What about my "real" question, about the tool-bar being "useless" on MS Windows? I do not use MS Windows, so I do not know. If you use MS Windows and you actually can use the tool-bar, that part of the remark _must_ be obsolete I guess. Maybe it still would turn on the tool-bar in other si

Re: Is there any way to have a string literal that is read "raw"

2005-07-08 Thread David Kastrup
Lennart Borgman <[EMAIL PROTECTED]> writes: > David Kastrup wrote: > >>>Is it possible to tell Emacs not to interpret escape character in a >>>certain string? If I have something like this: >>> >>> (setq str "some\thing\escaped") >>> >>>Can this be changed without changing the literal so that Em

Re: Is there any way to have a string literal that is read "raw"

2005-07-08 Thread Lennart Borgman
David Kastrup wrote: Is it possible to tell Emacs not to interpret escape character in a certain string? If I have something like this: (setq str "some\thing\escaped") Can this be changed without changing the literal so that Emacs takes exactly what is in the string, without escaping any cha

Re: loading the lisp/term/*.el files

2005-07-08 Thread Károly Lőrentey
[[Cc-ed on emacs-devel]] I understand this is really not the right time for discussing new feature development, but just a quickie: Would anyone object if, for the multi-tty feature branch, we would move towards autoloading/executing stuff in lisp/term/*.el in the standard way instead of loading

Re: Is there any way to have a string literal that is read "raw"

2005-07-08 Thread David Kastrup
Lennart Borgman <[EMAIL PROTECTED]> writes: > Is it possible to tell Emacs not to interpret escape character in a > certain string? If I have something like this: > >(setq str "some\thing\escaped") > > Can this be changed without changing the literal so that Emacs takes > exactly what is in th

Re: theming

2005-07-08 Thread Stefan Monnier
>> Those customization variables can have a default value that lets them >> cause different behavior only when under the Aquamacs theme. >> >> So I don't see this as a principal problem once themes work properly. > Yes, but what about re-definitions of existing functions? > Defadvice them and put

Is there any way to have a string literal that is read "raw"

2005-07-08 Thread Lennart Borgman
Is it possible to tell Emacs not to interpret escape character in a certain string? If I have something like this: (setq str "some\thing\escaped") Can this be changed without changing the literal so that Emacs takes exactly what is in the string, without escaping any characters? _

Re: SPC in custom-mode

2005-07-08 Thread Lennart Borgman
Kim F. Storm wrote: joakim <[EMAIL PROTECTED]> writes: Im no expert on Cua mode, but I suppose the problem ought to be solveable by adding mode specific hooks to change the keymaps of other modes within the startup code of cua.el. If you have specific suggestions, I can consider the

Re: theming

2005-07-08 Thread David Reitter
On 7 Jul 2005, at 15:20, David Kastrup wrote: Making this process a bit easier, making it easier for the user to undo some of these new 'defaults' by defining groups of customizations in themes would certainly be desirable. In Aquamacs, this is already the case for many customizations. For so

Re: Sorting of directories in dired

2005-07-08 Thread David Kastrup
Juanma Barranquero <[EMAIL PROTECTED]> writes: > On 7/7/05, Edward O'Connor <[EMAIL PROTECTED]> wrote: > >> I love how Emacs is a consistent environment across the various >> operating systems it runs on, and would much prefer it for the >> default Dired behavior to continue to be the same across

Re: theming

2005-07-08 Thread David Kastrup
David Reitter <[EMAIL PROTECTED]> writes: > I have implemented the single frame behavior (it takes more than > OneonOne to do that), for example. > And if I understand correctly what themes are supposed to do, I > cannot but agree with you that the currently planned collections of > customization

Re: turning on global-font-lock-mode by default?

2005-07-08 Thread David Kastrup
"Richard M. Stallman" <[EMAIL PROTECTED]> writes: > Is there anything left to do in order to turn on global-font-lock-mode > by default? As far as I know it should be possible to do now. > > I have occasionally had crashes in Emacs that have been running for a > while. I think there is st

Re: SPC in custom-mode

2005-07-08 Thread Kim F. Storm
joakim <[EMAIL PROTECTED]> writes: > Im no expert on Cua mode, but I suppose the problem ought to be solveable > by adding mode specific hooks to change the keymaps of other modes > within the startup code of cua.el. > If you have specific suggestions, I can consider them. -- Kim F. Storm <[EMA

Re: theming

2005-07-08 Thread John S. Yates, Jr.
On Thu, 07 Jul 2005 14:17:52 +0200, Lennart Borgman wrote: >I agree to whole message. I have written EmacsW32 just for this above. >It would be better if this idea was merged into Emacs. I think however >that it has to coexist with themes in some way and perhaps themes can be >the underlying st

Re: SPC in custom-mode

2005-07-08 Thread joakim
Im no expert on Cua mode, but I suppose the problem ought to be solveable by adding mode specific hooks to change the keymaps of other modes within the startup code of cua.el. /Joakim LENNART BORGMAN wrote: From: Joakim Verona <[EMAIL PROTECTED]> If some windows users want emacs to be m

Re: SPC in custom-mode

2005-07-08 Thread Per Abrahamsen
Lennart Borgman <[EMAIL PROTECTED]> writes: > Per Abrahamsen wrote: > Thanks, but there are no buttons to push in Info? There are plenty. All the cross references and menu buttons. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.or

Re: Sorting of directories in dired

2005-07-08 Thread Alex Schroeder
LENNART BORGMAN schrieb: > Interesting. I can see your point. However do you use w32? Do you not find it > disturbing then that the ordering of files are different in Emacs than > outside Emacs on w32? > Maybe you never leave Emacs? But for newbies who are used to other apps under > w32, would i

Re: Sorting of directories in dired

2005-07-08 Thread Eli Zaretskii
> From: "Drew Adams" <[EMAIL PROTECTED]> > Date: Thu, 7 Jul 2005 15:53:58 -0700 > Cc: > > I don't think uid and gid will be too useful on Windows. IMHO, they will be as useful as they are on Posix platforms; I don't see any difference. > Most Windows users will be on one-user (standalone, perso

Updating copyright years .... any progress?

2005-07-08 Thread Kim F. Storm
Some time ago, copyright years in a number of files were messed up due to a misunderstanding of the policy. Work was started to write a policy document, but it seems to have halted. Until a clear policy is documented, I would suggest that instead of the current _very incorrect_ copyright years,

Re: Sorting of directories in dired

2005-07-08 Thread Eli Zaretskii
> Date: Fri, 08 Jul 2005 00:06:49 +0200 > From: Lennart Borgman <[EMAIL PROTECTED]> > CC: [EMAIL PROTECTED], emacs-devel@gnu.org > > >>Since Emacs started its route much have changed. The users on different > >>platforms now tend to request that applications adhere to what they are > >>used to.

Re: SPC in custom-mode

2005-07-08 Thread LENNART BORGMAN
From: Joakim Verona <[EMAIL PROTECTED]> > If some windows users want emacs to be more windows-gui consistent on > their plattform, cant these changes go into Cua mode or something? Yes, it is a good suggestion to use a global minor mode, but how should that be done? Can the global minor mode key

Re: SPC in custom-mode

2005-07-08 Thread Joakim Verona
Lennart Borgman <[EMAIL PROTECTED]> writes: > Peter Whaite wrote: > >>Why not just keep it simple. SPC scrolls. ENTER activates. >> I think its much more important that Emacs is consistent within itself than that Emacs is consistent with some random gui. So I think: - Custom and Info should

Re: obsolete comment in tool-bar.el

2005-07-08 Thread Mathias Dahl
Luc Teirlinck <[EMAIL PROTECTED]> writes: > This is one of between 20 and 30 (I forgot the exact number) options > with a similar problem. Start `emacs -Q', do `M-x customize-rogue' > and you get the list. If you choose "Erase Customization" for them in > a Custom buffer, very unexpected things

Re: SPC in custom-mode

2005-07-08 Thread Mathias Dahl
Lennart Borgman <[EMAIL PROTECTED]> writes: >>Why not just keep it simple. SPC scrolls. ENTER activates. >> >> > Because I have several times pressed SPC instead of ENTER. I guess I > will not be the only one - or I hope I will not be the only one. It is > quite confusing and unexpected that t