2 Aug 2005 18:54

### Re: Problems with LaTeX-mode bold font in Xemacs

Alexander Beck-Ratzka <abr-d <at> betasystems.com> writes:

> Hello list,
>
> I have running Xemacs 21.4.15 on SuSE Linux 9.2. Because from since version
> 19.15 AucTeX is integrated in Xemacs, my problem is an xemacs problem.

Why do you think it is an XEmacs problem?

> My problem can be descriebed quite short. I've the selcted a separate font
> for LaTeX bold fonts, and usually, this font shall be displayed if I am in
> \bf{} environment. Unfortunately, this feature doesn't work. I see the same
> font, independent of being in the \bf{} environment or not.
>

> How can I get rid of this problem?

What is your AucTeX version? I will suggest you to get the latest AucTeX
package, the feature which you are looking for is already present in it.
You can update your packages from the Tool -> Packages -> .... menu options or
you can do it directly from the XEmacs website.

HTH.
--

--
Surendra Singhi

http://www.spikesource.com

http://www.public.asu.edu/~sksinghi/index.html



8 Aug 2005 15:21

### OT ? How to solve sokoban level 8

Hello,

during a break I tried to solve sokoban level 8 - no way.
Can someone help ?

TIA,

Markus Grunwald
Softwareentwicklung

PRÜFTECHNIK Condition Monitoring GmbH
Oskar-Messter-Straße 19-21
85737 Ismaning
www.pruftechnik.com
Tel: +49 (0)89 99616177
Fax: +49 (0)89 99616200


8 Aug 2005 21:07

### Re: OT ? How to solve sokoban level 8


Markus.Grunwald <at> pruftechnik.com wrote:

> during a break I tried to solve sokoban level 8 - no way.
> Can someone help ?

It's definitely soluble.

I found the tricky part to be getting to a state where you can push
blocks away from the top-left corner.

The following sequence of moves (where * indicates a push):

down
down
right
up
right
right
* right
down
right
right
right
* up
* up
right
up
up
left


8 Aug 2005 13:23

### highline.el and XEmacs

Hello, I use highline.el[1] to highlight alternative lines or
alternative N-lines.  Unfortunately under XEmacs there is a missing
feature: it can't highlight a line till the window border, only till the
last character of the line, as it is written inside the elisp file:

The .el file on my system
(/usr/share/xemacs21/xemacs-packages/lisp/edit-utils/highline.el.gz) says:

,----
| (defcustom highline-line nil
|   "*Specify which part of line should be highlighted.
|
| Valid values are:
|
|    t                  mark up to end of line.
|
|    nil                mark up to window border.  On XEmacs, it behaves as t.
|                       NOTE: Let me know, if you find a way to mark up to
|                             window border on XEmacs.
| (...)
----

>From the code it seems to me that under GNU Emacs
(move-overlay overlay foo (1+ (line-end-position))
makes this "till window border" stuff.

How can I make it work in XEmacs?

Footnotes:
[1]  http://www.cpqd.com.br/~vinicius/emacs/highline.el.gz


9 Aug 2005 07:54

### Re: highline.el and XEmacs

>>>>> "ignotus" == ignotus  <ignotus <at> hixsplit.hu> writes:

ignotus> Unfortunately under XEmacs there is a missing feature: it
ignotus> can't highlight a line till the window border,

ignotus> How can I make it work in XEmacs?

As far as I know, to make it work generally you have to patch the
redisplay engine.  It's probably only a couple of lines of C code, but
I can't really promise that.  It's also unobvious what the API to
control the feature should be.

If you have a monospace font, the LISP code could temporarily stuff
whitespace into the end of the highlighted lines.

--

--
School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN


16 Aug 2005 16:04

### Screwed up my fontifying

Hello,

I somehow managed to screw up my fontifying: Sometimes, if I open a file,
xemacs starts to fontify all buffers, not just the new opened one... This
can take quite a long time.

I didn't find the correct settings (fontify buffer when it is opened).
Could you give me a quick hint ?

Thanks,

Markus Grunwald
Softwareentwicklung

PRÜFTECHNIK Condition Monitoring GmbH
Oskar-Messter-Straße 19-21
85737 Ismaning
www.pruftechnik.com
Tel: +49 (0)89 99616177
Fax: +49 (0)89 99616200


16 Aug 2005 21:18

### Re: highline.el and XEmacs

>>>>> Regarding 'Re: highline.el and XEmacs'; Stephen J. Turnbull adds:
>>>>> "ignotus" == ignotus  <ignotus <at> hixsplit.hu> writes:

ignotus> Unfortunately under XEmacs there is a missing feature: it
ignotus> can't highlight a line till the window border,

ignotus> How can I make it work in XEmacs?

> As far as I know, to make it work generally you have to patch the
> redisplay engine.  It's probably only a couple of lines of C code,
> but I can't really promise that.  It's also unobvious what the API
> to control the feature should be.

> If you have a monospace font, the LISP code could temporarily stuff
> whitespace into the end of the highlighted lines.

Fortunately I found a usable (but ugly) elisp solution, I put an extent
at the end of the line like this:

(let ((ext (make-extent (line-beginning-position) (line-end-position)))
;; number of whitespaces
(spacing-length (- (window-width (selected-window))
(save-excursion
(goto-char (line-end-position))
(current-column)))))
(when (> spacing-length 0)
(set-extent-property ext 'my-whitespace-extent t)
(set-extent-property ext 'end-glyph
(make-glyph (make-string spacing-length ? )))
(set-extent-property ext 'end-glyph-layout 'whitespace)))


21 Aug 2005 10:38

### How to highlight columns?


I'd like to highlight all text/code that's beyond column 80.
I cannot figure how to set font-lock to do that, not how to write an interactive functions to do that.

Any ideas?

Dan


23 Aug 2005 20:40

### Re: How to highlight columns?


Dan Bar Dov wrote:

> I'd like to highlight all text/code that's beyond column 80.
> I cannot figure how to set font-lock to do that, not how to write an
> interactive functions to do that.

Here's a simple example:

(defun highlight-tail ()
(interactive)
(let ((exp "^.\\{1,80\\}\$$.*\$$$") (face (find-face 'highlight))) (while (re-search-forward exp nil t) (let* ((start (match-beginning 1)) (end (match-end 1)) (extent (make-extent start end))) (set-extent-property extent 'face face) (goto-char end))))) It highlights everything after the 80th character, which may not be the 80th column due to characters spanning multiple columns (primarily tabs, but also control characters using ^M or \015 display forms). -- -- Glynn Clements <glynn <at> gclements.plus.com>  24 Aug 2005 09:25 ### RE: How to highlight columns? Good, except as you noted the tabs. Can it use the "tab-width" to compensate? Dan > -----Original Message----- > From: Glynn Clements [mailto:glynn <at> gclements.plus.com] > Sent: Tuesday, August 23, 2005 9:41 PM > To: Dan Bar Dov > Cc: xemacs-news <at> xemacs.org > Subject: Re: How to highlight columns? > > > Dan Bar Dov wrote: > > > I'd like to highlight all text/code that's beyond column 80. > > I cannot figure how to set font-lock to do that, not how to > write an > > interactive functions to do that. > > Here's a simple example: > > (defun highlight-tail () > (interactive) > (let ((exp "^.\\{1,80\\}\$$.*\$$$")
> 	(face (find-face 'highlight)))
>     (while (re-search-forward exp nil t)
>       (let* ((start (match-beginning 1))
> 	     (end (match-end 1))
> 	     (extent (make-extent start end)))
> 	(set-extent-property extent 'face face)
`