gnu.emacs.help
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
December 2008
motuwethfrsasuw
1234567 49
891011121314 50
15161718192021 51
22232425262728 52
293031     1
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
gnu.emacs.help Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  GUI version of Emacs doesn't display all glyphs available in font         


Author: Teemu Likonen
Date: Dec 26, 2008 07:49

My problems is that the GUI Emacs doesn't render all glyphs correctly.
In some situations certain characters are rendered as squares while
XTerm renders them correctly. I use exactly the same font in XTerm and
Emacs (GUI). The font is:

-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1

Here's an example: With the mentioned font and with Emacs inside XTerm
the command

C-h C-\ ipa RET ; (describe-input-method 'ipa)

displays correctly all except five characters. The glyphs of those five
characters are most likely missing from the font. But inside GUI Emacs
every single one of those IPA characters are rendered as squares. If I
use ipa input method to actually insert those characters to a buffer,
they show just fine.

Sometimes I see squares in Gnus *Article* buffer in other people's
messages, but those characters show just fine if I copy&paste them from
GUI Emacs to XTerm window. At least U+6EC1 is one of them.
Show full article (1.18Kb)
no comments
  rexexp help needed         


Author: henry atting
Date: Dec 26, 2008 06:18

Hi,

I am trying to build a rexexp that does the following:
I have a text file where I want to replace

Medicine:One:Two €12.00

With

Medicine €12.00

Because I have more than one entry `Medicine' (and they
differ slightly, something like `Medicine:Three:Four' and
so on) I have to do it with `quere-replace-regexp'.
With regexp-builder I found this:

Medicine:.*[^€.0-9]

This works both in regexp-builder and a scratch buffer, but
unfortunately not in a file. If applied on a file replace-regexp
strips everything from the first `:'.

Kind regards
henry
6 Comments
  function needed (to simplify diff output)         


Author: Samuel Wales
Date: Dec 25, 2008 16:38

I need a function and hope that somebody can help implement
it.

The purpose is to simplify diff -u for human viewing by
eliminating trivial changes, including line moves.

My algorithm is very simple:

1. Process the text after the + or - with PROCESSOR.
Default: no processing.
2. Of the + and - lines, show only those with unique
text.
3. Replace lines like "@@ -1,3 +1,6 @@" with "...".

The unique lines step detects line moves. It will also
eliminate duplicated lines, but that's OK.

The processing step lets you specify what else is trivial
besides line moves. For example, if you don't need to see
changes that involve commenting and uncommenting, you pass a
function that deletes "^#". This makes both sides of the
diff uncommented.
Show full article (3.22Kb)
2 Comments
  Re: Using multiple modes in org-mode to highlight source-code         


Author: Lennart Borgman
Date: Dec 25, 2008 15:59

On Thu, Nov 20, 2008 at 11:40 AM, Nordlöw gmail.com> wrote:
> Has anyone succeeded in using multiple modes (using either mumamo.el,
> mmm-mode or two-mode-mode.el) to enable font-locking of code-snippets
> in org-mode? Currently only emacs lisp is supported by org-mode. But I
> believe more languages will be added in the future.
>
> Example snippet that should be highlighted in org-mode:
>
> [[elisp:(setq x 1)]]
>
> sub-mode begin pattern: "[[elisp:"
> sub-mode end pattern: "]]"
>
> I guess we could trigger on the pattern "[[LANG:" and activate LANG-
> mode in that region.
>
> We could make this work
Show full article (0.79Kb)
no comments
  Re: Chinese characters missing in .ps output file         


Author: Rodolfo Medina
Date: Dec 24, 2008 10:14

Rodolfo Medina gmail.com> writes:
> With Emacs, I correctly open a file including chinese characters. The
> characters are correctly displayed in the text file, but when I try to create
> the ps file, with `C-u M-x pr-ps-print-buffer-preview' or `C-u M-x
> pr-ps-print-buffer-print', they are not displayed.
>
> What am I missing, how can I work it out?

James Cloos jhcloos.com> writes:
> The real answer for how to obtain ps or pdf from text supporting all of
> unicode is to use libraries like cairo and pango. Cairo knows how to
> embed all of the typical outline fonts in both ps and...
Show full article (1.93Kb)
no comments
  Unwanted highlighting after cross-buffer paste         


Author: kj
Date: Dec 24, 2008 09:46

When I do a cross-buffer cut-and-paste from a buffer with syntax
highlighting to one that doesn't have any highlighting I find that
the highlighting from the source buffer is preserved, which I don't
want.

I have not been able to find a way to get rid of this "imported"
highlighting, other than killing the buffer and revisiting the
file, which is pretty annoying. E.g. "M-x fundamental-mode" won't
do it.

Is there a simpler way of getting rid of this unwanted highlighting
(or of avoiding it in the first place)?

TIA!

Kynn
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
4 Comments
  Re: how do I have a mode where '#' is a comment but '.#.' isn't?         


Author: rgb
Date: Dec 24, 2008 09:42

I've had similar problems with several major modes I've written.

Cobol for example doesn't even have a comment character, anything
after a particular column is a comment
TAL uses ! as both begin and end and eol is also an implicit end....

So ! this is a comment!but this isn't! and this is
but this isn't

Anyway, the only really good way to get useful results is by
specifying
font-lock-syntactic-keywords in your font-lock-defaults statement.

It's not a terribly simple process.
Some years ago, when I was writing all those modes, I was pretty
fluent and could spout off just exactly how to do it. Fortunately I
answered several how-to questions in several Emacs NGs so my notes are
available.

Try this thread. I think it's pretty complete in covering what you
need to know.

http://groups.google.com/group/comp.emacs/browse_thread/thread/c1b7de4489be181

stuart wrote:
> I have been working on a mode for a program where a hash mark by
> itself is a comment character (#) whereas a hash mark surrounded by
> dots (.#.) is not. Currently, I'm using this:
>...
Show full article (1.78Kb)
no comments
  Accessibility: fill-column for man pages and docstring help         


Author: Samuel Wales
Date: Dec 23, 2008 21:21

I use very large fonts. This causes many things in emacs to be
unreadable. The biggest ones are:

1. C-h f, C-h v, etc.: in order to read, I have to manually adjust
fill-column and reformat paragraphs. Difficult.

2. Man pages. I don't know how to adjust the fill column.

Is there a fix for both of these?

Notes:

Note that readability also improves when fill-column is
short. This is why magazines and newspapers and some
science papers have short columns.

Also note that some people are likely to start using
org-mode on small devices.

Is it possible to use a shorter fill-column, say 60, in
docstrings?

I realize that this might be difficult, if the code
itself uses a long fill-column, unless there is a way
to make fill-paragraph work differently on docstrings.
I also realize that it might be hard to automate the
fixing of existing docstrings.
Show full article (1.33Kb)
1 Comment
  Creating new major mode         


Author: Paulo Jorge Matos
Date: Sep 23, 2008 02:27

Hello,

I have been working on a new major mode and it is striking me that, for
example, lisp-mode doesn't use generic-mode or derived-mode. It seems to
define just a couple of functions which set specific parameters. When
should generic-modes or derived-modes be created?

Any tutorial on creating new major modes around?

Cheers,
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
no comments
  Re: server dir unsafe on windows         


Author: anhnmncb
Date: Sep 22, 2008 22:48

Daniel Pittman rimspace.net> writes:
Show full article (0.93Kb)
no comments
1 2 3 4 5 6 7 8 9