Bala | 1 May 02:10 2008
Picon

kannada text on emacs 23

Hello,

I am using GNU Emacs version 23.0.60.1 (i486-pc-linux-gnu, GTK+
Version 2.12.0) (package emacs-snapshot-20080228 from
http://ppa.launchpad.net/avassalotti/ubuntu although M-x version tells
me the snapshot date is 2008-03-07) on Ubuntu Gutsy Gibbon (running on
Thinkpad T41). I have installed font packages emacs-intl-fonts as per
directions in the emacs manual online. I still can't see text written
in the Kannada language. All I see are boxes. Please help.

I can see Kannada text properly in other applications though (kate,
firefox, gvim, gedit etc.).

Thanks.
Bala.

Xah | 1 May 04:47 2008
Picon

ergonomic based emacs keyboard shortcut set

Mid last year, i spend about 3 months desiging a keyboard shortcuts
set for emacs based on ergonomic principles, with my 18+ years of
experiences using qwerty and dovrak keyboard layout and various
software based keymappings, macros, on different OSes.

The result is here:

A Ergonomic Keyboard Shortcut Layout For Emacs
 http://xahlee.org/emacs/ergonomic_emacs_keybinding.html

I've been using this keybinding for over a year now, and am very happy
with it. I've been using emacs since 1998, on a daily basis, and have
started to code elisp few hours a week since 2005. Of all emacs tricks
and tips for enhancing productivity i've learned or adopted over the
past decade, may it be a extra mode, learning a new emacs command, a
new shortcut, a new emacs customization, or anything, i think i'd say
that this ergonomic keybinding ranks first on my list.

For those of you emacs developers, may I suggest that you give this
shortcut a try for at least 2 weeks. I think you may like it. (for a
stronger expression, I think any emacs user if forced to use this
shortcut set for 1 month, 95% will never go back.)

Feedback appreciated. Thanks. (in particular, i'm looking for more
emacs keyboard shortcut usage data. Pls see: http://xahlee.org/emacs/command-frequency.html
)

  Xah
  xah <at> xahlee.org
∑ http://xahlee.org/
(Continue reading)

reader | 1 May 06:23 2008

Re: init file help

DeSoya <nathan.doyle26 <at> gmail.com> writes:

> I can't open the program using the command line for some reason. I
> tried the "emacs -q" command in both cygwin and dos and get the
> following error:
>
> ndoyle <at> CMAXP /cygdrive/c/emacs/emacs-22.1/bin
> $ emacs -q
> bash: emacs: command not found

You mentioned having installed from a *.zip file.  Where did it get
installed?

There should be an emacs or emacs-VERSION directory where the base
install was done.  So inside the emacs* directory you will find a
`bin' directory inside that is both an emacs.exe and runemacs.exe

On windows I think you need to execute runemacs.exe

From a cygwin window run the command using address where you emacs is
installed in place of MYBASE_INSTALL

 MYBASE_INSTALL/emacs/bin/runemacs.exe -Q

Should start your emacs with out loading any of your init files.

This won't find your missing file but at least you can use emacs.

To find the missing file ... from windows explorer right click your
C:\ drive and select `search' from the menu.
(Continue reading)

reader | 1 May 06:27 2008

Re: init file help

reader <at> newsguy.com writes:

>> ndoyle <at> CMAXP /cygdrive/c/emacs/emacs-22.1/bin
>> $ emacs -q
>> bash: emacs: command not found

I think I see what the trouble was.
You were in /cygdrive/c/emacs/emacs-22.1/bin?

So in that case you must indicate the path with `./'

./runemacs.exe -Q

Ralf Angeli | 1 May 08:08 2008
Picon

Re: Documentation for doctex mode

* Christophe Jorssen (2008-04-30) writes:

> Le Wed, 30 Apr 2008 20:22:33 +0200, Ralf Angeli a écrit:
>
>> There are two DocTeX modes, one in Emacs and one in AUCTeX.  Both are
>> derived from the respective LaTeX modes, so you can refer to the
>> documentation of these modes.  (info "(emacs)TeX Mode") or (info
>> "(auctex)Top") respectively.
>
> I did not know there were two DocTeX modes. The only one I knew was the 
> AucTeX one. I've already done and I did again a search on "DocTeX" in the 
> AucTeX manual (html version http://www.gnu.org/software/auctex/manual/
> auctex.html) and the results can not help me. I mean I don't know how to 
> use it because I don't know what can be done with this mode and how?

As written before, the mode is derived from LaTeX mode.  That means you
can use the same commands as in LaTeX mode.  That also means that the
respective parts in the manual apply.

> For 
> instance, I'd like to know if there is a command to insert before and 
> after a region the macrocode environment
>
> %    \begin{macrocode}
> <Code region>
> %    \end{macroce}

Assuming you have parsing activated as described on the first page of
AUCTeX's manual and you use ltxdoc.cls or doc.sty in your document, you
can insert the environment exactly like any other environment (in LaTeX
(Continue reading)

Jason Rumney | 1 May 11:18 2008
Picon

Re: kannada text on emacs 23


> I am using GNU Emacs version 23.0.60.1 (i486-pc-linux-gnu, GTK+
> Version 2.12.0) (package emacs-snapshot-20080228
fromhttp://ppa.launchpad.net/avassalotti/ubuntualthough M-x version tells
> me the snapshot date is 2008-03-07) on Ubuntu Gutsy Gibbon (running on
> Thinkpad T41). I have installed font packages emacs-intl-fonts as per
> directions in the emacs manual online. I still can't see text written
> in the Kannada language. All I see are boxes. Please help.

The manual has not yet been updated for the ongoing font work in CVS
trunk. You probably need to use opentype fonts with the xft backend,
and have Emacs configured to use libotf and m17n-flt libraries, rather
than using the old bitmap intlfonts package. I have no idea if the
ubuntu package is configured to use those libraries, but in Debian
testing at least, the version of m17n is too old, so any Emacs
snapshot for Debian will not be capable of displaying Indic scripts
properly.

Johan Bockgård | 1 May 11:25 2008
Picon
Picon

Re: Basic Emacs Lisp question

Giorgos Keramidas <keramida <at> ceid.upatras.gr> writes:

> I am only beginning to grasp Lisp myself too, so I wasn't aware that
> '-quoting produces the list in the reader :)

It doesn't.  The parentheses produce the list in the reader.  The
`quote' special form returns its argument without evaluating it.

    (read "'(0 1 2)")  =>  (quote (0 1 2))
    (quote (0 1 2))    =>  (0 1 2)    ; Not a copy

--

-- 
Johan Bockgård

Peter Dyballa | 1 May 12:09 2008
Picon

Re: kannada text on emacs 23


Am 01.05.2008 um 02:10 schrieb Bala:

> I have installed font packages emacs-intl-fonts

I don't think this is a solution. GNU Emacs 23.0.60 is the Unicode  
Emacs. Therefore it's rather recommended to use Unicode encoded  
(vector) fonts (TrueType, OpenType). I can see good Indic scripts  
support only in Emacs.app, the Cocoa port of GNU Emacs 23.0.60 to Mac  
OS X ...

The online manual needs updating.

--
Greetings

   Pete

Build a man a fire and he'll be warm for a night, but set a man on  
fire and he'll be warm for the rest of his life.

Xah | 1 May 13:57 2008
Picon

Re: scrollbar and mouse buttons

On Apr 30, 9:14 am, giglio robbo' d'acciaio <dgig... <at> iol.it> wrote:
> In previous version mouse buttons left and right had a different behavior,
> left click on the scoll-bar was linked to PgDown, right click to PgUp and the
> middle click to go-to-the-point.
> How can I ripristinate this behavior.

untested, but you can do:

(global-set-key (kbd "<down-mouse-1>") 'func-name) ; left mouse button
(global-set-key (kbd "<down-mouse-2>") 'func-name) ; mid mouse button
(global-set-key (kbd "<down-mouse-3>") 'func-name) ; right mouse
button

Useful function to know are:

describe-key, describe-function.

Effectively, they let you find out what function is bind to what input
(keypress or menu or mouse click), and vice versa.

  Xah
  xah <at> xahlee.org
∑ http://xahlee.org/
Kevin Rodgers | 1 May 15:08 2008
Picon

Re: elisp question

harven wrote:
> I am trying to device a short command to
> interactively resize the current window:
> 
> (defun resize-window (key)
>  "resize interactively the window"
>  (interactive "c- widen, _ shrink")
>    (cond
>      ((eq key (string-to-char "-"))
>         (enlarge-window 1)
>         (call-interactively 'resize-window))
>      ((eq key (string-to-char "_"))
>         (enlarge-window -1)
>         (call-interactively 'resize-window))
>      (t (insert key))))
> 
> I type -/_ a number of times, the window enlarges/shrinks, and if I
> type another character, the window resizing stops and the character is
> inserted.
> 
> However, I would like the following effect.
> Any entry other than -/_ should end the resizing and be executed. How
> can I achieve such effect ?

See the unread-command-events variable.  Here's an iterative version to
compare to your recursive implementation:

(defvar enlarge-window-char ?_)		; or ?+
(defvar shrink-window-char ?-)

(Continue reading)


Gmane