set-fringe-mode - inconsistent?

2005-08-23 Thread David Reitter
Hi, why does (set-fringe-mode '(1 . 0) ) give me a 4-pixel width of the left fringe, while (set-fringe-mode 1 ) gives me the right width (1 pixel or so)? thanks dave ___ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mail

Newbie: Copy&paste text from native application into emacs?

2005-08-11 Thread David Reitter
I'm very new to emacs and I wonder how I can copy some text from my webbrowser into an emacs buffer? This depends on the distribution you're using. We have put together a distro that lets you use the same keyboard shortcuts that are standard on the Mac: http://aquamacs.org It comes with a

Re: recentf: abbreviate paths? tilde for home folder?

2005-08-04 Thread David Reitter
Reiner, Kevin: (setq recentf-menu-filter 'recentf-show-basenames ) is exactly what I wanted, thanks very much. Now, I've changed that function to produce the same syntax as used for buffer names (or in the buffers menu - don't know which one it is) with the "--" instead of showing the path

recentf: abbreviate paths? tilde for home folder?

2005-08-01 Thread David Reitter
How can I get recentf to show abbreviated paths in the "Open Recent" menu? That is, show paths just like in buffer names, where path names are shown only where necessary in order to distinguish between existing buffers. At least, I'd like to be able to replace my home folder with a tilde wh

unbind frame-local variables?

2005-07-15 Thread David Reitter
I can unbind buffer-local variables with kill-local-variable. How do I do the same for frame-local variables? I can't find an appropriate function, and modify-frame-parameters also doesn't seem to allow me to remove a parameter. Thanks for your help.

Re: byte-compile / cl package / warnings

2005-07-08 Thread David Reitter
Johan BockgÃrd wrote: Read (info "(elisp)Coding Conventions") Thanks very much for the hint. It looks like either the warning is obsolete, or the 'cl' package goes against Emacs naming conventions. But I assume it would do so for a good reason (compatibility with common lisp). For eve

byte-compile / cl package / warnings

2005-07-06 Thread David Reitter
Hi, I often get warnings like "Function `set-difference' from cl package called at runtime" when byte-compiling stuff. Isn't it safe to call stuff from the cl package from byte-compiled code? I looked into the byte-compile source, and I found that the cl package documentation says that it

Re: C-s, then yank / cua-paste

2005-06-16 Thread David Reitter
M-y yanks the last killed item onto the end of the search string. Is that what you're looking for? Thanks, that works indeed. I use cua-mode, however, and I have H-v bound to cua-paste. Cua-paste, however, doesn't paste into the minibuffer. And since I want to use the interapplication clipboa

C-s, then yank / cua-paste

2005-06-15 Thread David Reitter
A lot of times I need to search for a string that I have just moved to the kill-ring (or, in my case, actually just the clipboard). So what I do is C-s, C-y, or C-s, H-v, where H-v is mapped to cua- paste. Neither variant gives me the expected result. Why can I not paste something into the min

Python mode: C-C C-f

2005-06-12 Thread David Reitter
Question about python mode (as in Emacs CVS): Why is the key command for python-describe-symbol C-c C-f, and not C- c f which would an analogous to C-h f ? ___ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinf

Re: Getting display origin

2005-06-10 Thread David Reitter
rgb: > Supplying negative > coordinates to set-frame-parameter causes the position to be > relative to the righthand side of both the frame and screen. Well that's a good hint already. At least I get stuff to appear on the left screen that way. (display-screens) returns 1; I reckon that's co

Re: What determines the available font sizes?

2005-06-08 Thread David Reitter
On 8 Jun 2005, at 16:24, Peter Dyballa wrote: Maybe this way: (create-fontset-from-fontset-spec "-*-monaco-medium-r-*-*-0-*-*-*-*-*-fontset-10pt_monaco, latin-iso8859-1:-*-monaco-medium-r- normal--10-100-75-75-m-100-mac-roman, Sure that'll include the font, but not in

Re: What determines the available font sizes?

2005-06-08 Thread David Reitter
> With create-fontset-from-fontset-spec there certainly is. I think this > function can only retrieve the bitmapped fonts from a font suitcase. Well, I suppose that's my answer, then. There is no bitmap for 11pt Monaco, I don't think. Then again, I'm using Aquamacs, which uses anti-aliased outl

Re: What determines the available font sizes?

2005-06-08 Thread David Reitter
Peter Dyballa: Is there some finite set of sizes it supports? With create-fontset-from-fontset-spec there certainly is. I think this function can only retrieve the bitmapped fonts from a font suitcase. The big question is now: how to include, say, a scalable cyrillic font in a font set

C-x C-f in two frames -> "user minibuffer while in minibuffer": Bug?

2005-06-08 Thread David Reitter
I don't know if this is a bug or not, so I'll post it here: If I open a second frame, then do C-x C-f in one of them and press tab so that the window is split and I get a *Completions* buffer in one frame, and when I then select the second frame and do a C-x C-f there, I don't get another *

Getting display origin

2005-06-08 Thread David Reitter
Hi, could someone tell me how to get the origin of the display? I'm asking because on the Mac port (Carbon, not X11), the x-ordinates can easily become negative. I've checked for some display-pixel-* function, and I've tried Google. What I need to know is what the available range of coordinat

Following links from help buffers - how to modify?

2005-06-02 Thread David Reitter
Hi, I've advised my switch-to-buffer to open buffers in new frames in order to take advantage of my native window manager. Turns out that this doesn't work at all for links to source code in help mode. When a link to a source definition is clicked in a help buffer (suppose you have done C

RE: char-width of a font? pixel-width of a future frame? NOT SOLVED

2005-05-30 Thread David Reitter
How do I find out either - what the (average) width of characters of a given font/ fontset is? or `frame-char-width' or height gives the pixel width or height of the frame's default font. Yes, but they only work with an existing frame as parameter. I only have a font/fontset or some f

char-width of a font? pixel-width of a future frame?

2005-05-29 Thread David Reitter
How do I find out either - what the (average) width of characters of a given font/fontset is? or - what, given a set of frame-parameters (including font and width and height), what the pixel-width and pixel-height of a frame are going to be once it is created? I'm trying to put together a f

Create an invisible frame -?

2005-05-28 Thread David Reitter
Hi - can someone tell me how to create an invisible frame? I tried setting visibility to nil in default-frame-alist, but that doesn't do the job. The reason why I want to do that is to create the frame, resize it (and change other frame parameters depending on the buffer that is to be disp

easy-menu / remove dividers from menu -> fails...

2005-05-26 Thread David Reitter
How do I delete divider bars from a menu? Deleting normal items works, deleting the divider bar doesn't: (easy-menu-remove-item global-map '("menu-bar" "file") 'exit- emacs); works (easy-menu-remove-item global-map '("menu-bar" "file") 'separator- exit) ; doesn't work The latter just do

Re: Setting (site) defaults for customization options?

2005-05-19 Thread David Reitter
I wrote: how do I set different defaults in a site init file for things like blink-cursor-mode? I want the end-user to be able to change the setting and use "Save Options" to save them to .emacs. The solution is similar to what I've tried earlier, and it is not documented as far as I could s

Setting (site) defaults for customization options?

2005-05-17 Thread David Reitter
Hi, how do I set different defaults in a site init file for things like blink-cursor-mode? I want the end-user to be able to change the setting and use "Save Options" to save them to .emacs. Right now, I can set blink-cursor-mode, but it isn't saved to .emacs because it is not different from

Re: setting default value

2005-05-12 Thread David Reitter
Stefan Monnier wrote: > In a site init file, I'm trying to set different default values for stuff > like 'blink-cursor-mode'. > (setq-default blink-cursor-mode t) > (blink-cursor-mode blink-cursor-mode) Now this piece of code is bizarre. Are you trying to check for corner-case bugs or was there

setting default value

2005-05-11 Thread David Reitter
In a site init file, I'm trying to set different default values for stuff like 'blink-cursor-mode'. (setq-default blink-cursor-mode t) (blink-cursor-mode blink-cursor-mode) However, if I then select a different setting (i.e. blink-cursor mode nil) and save the customizations (Options/Save Option

Re: Intercepting windowClosed (OS X or in general)

2005-05-04 Thread David Reitter
Stefan Monnier writes: > > how would one intercept handling of windowClosed events, that is, when > > a user clicks the closer button to delete a frame. I would ideally like to > > advise a function to do something special or use a hook. > > delete-frame-hook, maybe? Thanks, but I assume this w

Intercepting windowClosed (OS X or in general)

2005-05-02 Thread David Reitter
Hi, how would one intercept handling of windowClosed events, that is, when a user clicks the closer button to delete a frame. I would ideally like to advise a function to do something special or use a hook. This would be on the OS X port (but a generic solution would do, too, of course). Thank

Re: Mode-specific font setting?

2005-04-25 Thread David Reitter
How do I set a mode-specific font? To elaborate on this, I want a generic solution that allows me to assign special fonts to all major modes. Another thing I have tried is to find the frame for the current buffer (see code below). This doesn't work either, because although the current buffer exi

Mode-specific font setting?

2005-04-25 Thread David Reitter
How do I set a mode-specific font? I've tried this hack: (add-hook 'after-change-major-mode-hook (lambda () (case major-mode ('text-mode (set-frame-font "fontset-lucida14") ))) ) Unfortunately it doesn't work, obviously because the selected fra

Re: font for dired mode?

2005-04-24 Thread David Reitter
Hi Kevin, problem solved! Why is the Dired buffer opened in a new frame? Is it because you're using `C-x 5 d', or is some other customization coming into play (e.g. special-display-buffer-names)? Yes, some other customizations are used; it's an option the user has. (defvar dired-other-frame-alist

Re: font for dired mode?

2005-04-22 Thread David Reitter
On 22 Apr 2005, at 10:23, Peter Dyballa wrote: Have you tried M-x customize-group RET dired RET? This will show a few dired-faces without settings special fonts or fontsets for the items. If you set them then they'll be fixed to these values ... Thanks, yes I've tried that but the problem remain

Re: font for dired mode?

2005-04-21 Thread David Reitter
Joe Corneli math.utexas.edu> writes: >I'm trying to set a different font for the dired mode. I would like to >make everything appear in "fontset-monaco12". I've tried setting the >faces (like dired-header), but that didn't work at all. > > Hm... Did you customize the faces, or just

font for dired mode?

2005-04-21 Thread David Reitter
Hi, I'm trying to set a different font for the dired mode. I would like to make everything appear in "fontset-monaco12". I've tried setting the faces (like dired-header), but that didn't work at all. Then I've tried this: (add-hook 'dired-mode-hook (lambda () (set-frame-font "fontset-mona

Scrolling affects region... what to do?

2005-04-18 Thread David Reitter
When a region (with several lines) is marked first and then the shown part of the buffer is changed via the scrollbar or for example with M-v, one boundary of the region will change to remain next to the point, which moves to a new place when scrolling. Sometimes, the region is heavily modified

Re: Unicode -> string? Invalid code point! // Adding a menu itemwith unicode characters

2005-04-18 Thread David Reitter
David Kastrup gnu.org> writes: > > Why not just (decode-char 'ucs #X2318) ? > Why not? It works! Danke! ___ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Unicode -> string? Invalid code point! // Adding a menu item with unicode characters

2005-04-18 Thread David Reitter
How can I specify strings for a menu item that have unicode-range characters in them? To be concrete, I'd like to specify the 'command sign' character (to show a keyboard shortcut with the command key). The unicode ID of this character is 0x2318, and I assume I'll have to convert this to the in

Re: Carbon Font Size

2005-04-11 Thread David Reitter
Shug - ? still appears as an empty box OK, I suggest you try the AquaMacs distribution, which comes preconfigured. Official site is http://www.wordtech-software.com/Aquamacs.html (but this is offline right now) Description is here: http://www.davids-world.com/archives/2005/04/aquamacs_an_ema.htm

Re: Carbon Font Size

2005-04-10 Thread David Reitter
Shug Boabby wrote: i wish to use a slightly larger font in the cvs OS X Carbon build, create a font set first: (create-fontset-from-fontset-spec "-apple-monaco-medium-r-normalx-14-*-*-*-*-*-fontset-monaco14, ascii:-apple-monaco-medium-r-normal--14-140-75-75-m-140-mac-*, latin-iso8859-1:-apple-monac

Re: Assigning keymaps / menu shorts / changing menu items

2005-04-10 Thread David Reitter
Many thanks for your hints. > Lastly: how do I change a menu item? > I know how to add submenus to a menu with easychange.el, but I couldn't > figure out how to actually change the text of an arbitrary item. Is > that possible? Find the key-sequence corresponding to it with C-h k, then (define-ke

Assigning keymaps / menu shorts / changing menu items

2005-04-09 Thread David Reitter
I would like to do a couple of global-set-keys for a few basic functions that appear in the menu bar. However, the new shortcuts don't appear in the menu items, since they are still assigned (and should be). I understand the menu item shortcuts show what's defined first. Is there a command lik