Cthun | 1 Mar 2011 01:06
Picon

Re: What's your favourite *under_publicized* editing feature ofEmacs?

On 28/02/2011 3:04 PM, David Kastrup wrote:
> Cthun<cthun_117 <at> qmail.net.au>  writes:
>
>> On 28/02/2011 4:53 AM, David Kastrup wrote:
>>> Stefan Monnier<monnier <at> iro.umontreal.ca>   writes:
>>>
>>>>>> With me, it nowadays usually involves a git repository.  I used CVS
>>>>>> previously, but that is less convenient.
>>>>> You're insane.
>
> I should say _that_ would be an unsubstantiated claim.

What does your classic unsubstantiated and erroneous claim have to do 
with Lisp, Kastrup?

> Though being insane might have something to do with Lisp.

What does your classic unsubstantiated and erroneous claim have to do 
with Lisp, Kastrup? It is well known that it is all-caps languages like 
COBOL and BASIC that cause brain damage, Kastrup.

>>> I do this for work I do quite by myself (like theses and articles).
>>
>> How odd.
>
> Not at all.

What does your classic unsubstantiated and erroneous claim have to do 
with Lisp, Kastrup?

(Continue reading)

TheFlyingDutchman | 1 Mar 2011 01:14
Picon
Favicon

Re: What's your favourite *under_publicized* editing feature ofEmacs?

>
> What does your classic unsubstantiated and erroneous claim have to do
> with Lisp, Kastrup?

Can you be more specific? In what way was it unsubstantiated? How was
it erroneous? What made it classic?

Cthun | 1 Mar 2011 01:16
Picon

Re: What's your favourite *under_publicized* editing feature ofEmacs?

On 28/02/2011 7:14 PM, TheFlyingDutchman wrote:
>>
>> What does your classic unsubstantiated and erroneous claim have to do
>> with Lisp, Kastrup?
>
> Can you be more specific? In what way was it unsubstantiated? How was
> it erroneous? What made it classic?

What do your four questions have to do with Lisp, Dutchman?

TheFlyingDutchman | 1 Mar 2011 01:28
Picon
Favicon

Re: What's your favourite *under_publicized* editing feature ofEmacs?

On Feb 28, 4:16 pm, Cthun <cthun_... <at> qmail.net.au> wrote:
> On 28/02/2011 7:14 PM, TheFlyingDutchman wrote:
>
>
>
> >> What does your classic unsubstantiated and erroneous claim have to do
> >> with Lisp, Kastrup?
>
> > Can you be more specific? In what way was it unsubstantiated? How was
> > it erroneous? What made it classic?
>
> What do your four questions have to do with Lisp, Dutchman?

What does your one question have to do with Lisp, Cthun?

Drew Adams | 1 Mar 2011 02:25
Picon
Favicon

RE: Sorting Order of Completion Candidates

> While writing some code to index my notes I have run into a problem.
> I have a carefully crafted list of keywords sorted in order of 
> frequency. (When assigning new keywords I want to consider the most 
> frequent keywords first.) However
> (completing-read "Prompt: " '("a" "c" "b"))  gives me
> 
>  Possible completions are:
>  a
>  b
>  c
> 
> whereas I want
> 
>  Possible completions are:
>  a
>  c
>  b
> 
> If there is no option or hook, if guess I could just modify the 
> *Completions* buffer. Any hints how/where it is set up?

1. Stefan can probably steer you as to how to do what you want with a recent
version of vanilla Emacs.

2. An alternative is to use Icicles.  Then all you need to do is bind
`icicle-sort-comparer' to nil around the call to `completing-read'.  A nil value
means do not sort.  (You can also customize `icicle-sort-comparer' to use any
default sort order you like.)

You can also change sort orders on the fly anytime during completion, and that
(Continue reading)

Sean Sieger | 1 Mar 2011 02:49
Picon

Re: What's your favourite *under_publicized* editing feature ofEmacs?

TheFlyingDutchman <zzbbaadd <at> aol.com> writes:

    On Feb 28, 4:16 pm, Cthun <cthun_... <at> qmail.net.au> wrote:

    > What do your four questions have to do with Lisp, Dutchman?

    What does your one question have to do with Lisp, Cthun?

Does he speak this way in real life??  Astonishing.

TheFlyingDutchman | 1 Mar 2011 03:21
Picon
Favicon

F2

If I do "ctrl-h k <f2>"   I get "f2-"  in the message area, as if
Emacs is waiting for me to press another key. If I set a command to
<f2> with global-set-key and then hit the <f2> key, nothing happens.
If I again hit <f2> it tells me that "<f2> <f2> is undefined". It is
like <f2> is set to be used in a key combination. How can I get rid of
that and just assign a single keypress to <f2>?

Livin Stephen Sharma | 1 Mar 2011 03:25
Picon

Mac OS X / Emacs 23.2.93; help needed with term window behaviour

Hello, emacs Gurus!
This is something that has been an occasional annoyance while using term-mode shells within emacs.
 Now I think I finally know at least the circumstances under which the problem occurs.. I'd appreciate your help in resolving this :)





When I execute commands like 'ifconfig' from within a 'term-mode' bash session,
 emacs rings the error bell and the text and cursor-position in the term window get mixed up.
Below is the info from the emacs bug-reporter tool.


On the other hand printing "\t" (printf "\t" or echo -e "a\tb") does not seem to cause any problems whatsoever.

In addition to the steps outlined in the pseudo bug-report below,
 + I have tried removing /etc/bashrc and $HOME/.bashrc to see if my customisations there were the root cause.
 But I still see the problem within 'emacs -Q' with these files out of the picture.

Why does emacs/term appear to be trying to 'interpret' the TABs in the o/p (looks like it tries to do file-name autocompletion on something?)
 Any clues on what I could try next?



--text follows this line--
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your report will be posted to the bug-gnu-emacs <at> gnu.org mailing list
and the gnu.emacs.bug news group, and at http://debbugs.gnu.org.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug.  If you can, give
a recipe starting from `emacs -Q':

      1. launch emacs: "/Applications/Emacs.app/Contents/MacOS/Emacs -Q"

      2. start a bash shell within emacs: M-x term RET RET (/bin/bash is offered as default shell in my setup)

      3. type a command like ifconfig
1) now, shell gets messed up:

   + an "error in process filter: cd-absolute: /Users/li/: no such directory" message is displayed

   + the current-line/cursor gets thrown backwards so that 'ifconfig' o/p and current-line in term are overlapping

2) need to execute 'clear' (C-l) or 'reset' in shell to make things usable again
      4. In case 'ifconfig' does not reproduce the error, try to do execute "echo 'MY_SAMPLE_OUTPUT'" in a term buffer within emacs where MY_SAMPLE_OUTPUT is:
--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--
lo9: flags=9999<UP,LOOPBACK,RUNNING,MULTICAST> mtu 99999
inet9 ::9 prefixlen 999 
inet9 fe99::9%lo9 prefixlen 99 scopeid 9x9 
inet 999.9.9.9 netmask 9xff999999 
gif9: flags=9999<POINTOPOINT,MULTICAST> mtu 9999
stf9: flags=9<> mtu 9999
en9: flags=9999<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 9999
ether 99:b9:e9:cb:db:a9 
media: autoselect
status: inactive
en9: flags=9999<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 9999
ether 99:99:bb:9b:99:9f 
inet9 fe99::999:bbff:fe9b:999f%en9 prefixlen 99 scopeid 9x9 
inet 999.999.9.9 netmask 9xffffff99 broadcast 999.999.9.999
media: autoselect
status: active
fw9: flags=9999<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 9999
lladdr 99:b9:e9:ff:fe:cb:db:a9 
media: autoselect <full-duplex>
status: inactive
en9: flags=9999<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 9999
ether 99:99:99:9c:99:99 
media: autoselect
status: inactive
vboxnet9: flags=9999<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 9999
ether 9a:99:99:99:99:99
-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8--
      5. lines like these: " inet9: " contain leading TAB characters. I believe those are the ones that cause the error to be triggered.



If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Applications/Emacs.app/Contents/Resources/etc/DEBUG.


In GNU Emacs 23.2.93.1 (x86_64-apple-darwin, NS apple-appkit-1038.35)
 of 2011-02-01 on black.porkrind.org
Windowing system distributor `Apple', version 10.3.1038
configured using `configure  '--host=x86_64-apple-darwin' '--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin' 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Term

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x t e r m <return> <return> i f c o n f i g <return> 
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
error in process filter: cd-absolute: /Users/li/: no such directory
error in process filter: /Users/li/: no such directory

Load-path shadows:
None found.

Features:
(shadow sort mail-extr message ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc
time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1
hex-util hashcash mail-utils emacsbug term disp-table ehelp electric
ring tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
minibuffer faces cus-face files text-properties overlay md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process ns multi-tty emacs)

Regards
--LSS
rusi | 1 Mar 2011 03:43
Picon

Re: What's your favourite *under_publicized* editing feature ofEmacs?

On Mar 1, 4:31 am, Stefan Monnier <monn... <at> iro.umontreal.ca> wrote:

> > I use nted
> > http://vsr.informatik.tu-chemnitz.de/~jan/nted/nted.xhtml
> > to enter music and I have a hell of a time versioning and diffing.
>
> Right: since this uses WYSIWYG you basically get the same problem: only
> nted can do the diff and merge-conflict display in a way that can make
> sense to the user.
> If you care about revision control, you're generally better off without
> WYSIWYG (I tend to think you're better off without it in any
> circumstance, but that's a different discussion ;-).
>

How do you enter *and play* music textually??? I would sure like a
tool that does not make me go clicking all over to get notes entered.
Something like abc http://abc.sourceforge.net/ or lilypond.
But I need something that can do this http://vimeo.com/16894001/ and
allows me to change the score live in front of a (singing) class.  Do
you know of any??

In fact I have spent some time wondering what it would mean to add
emacs' scripting functionality to nted.  In short, we would start by
factorizing emacs into 2 parts:
1. the 'pure lisp' scripting glue -- things like car, cdr, defun, cond
setq etc
2. the buffers, characters, input-methods etc that are *text* editor
specific.

For music, 2' would be provided with something like nted and then 1
can be 'married' to 2' to get a scriptable music editor/player.

With a text editor there is a clear set of 'atoms'
- "a key that is typed"
- "a character that is displayed."

For music there is no such set (at least to me) -- its too
multidimensional with staves, voices, real time rendering with etc

> > For Emacs (and such) this may be the way to go and is welcome.
> > For git (and such) however it may be preferable to have generic diff/
> > merge plugin capability; specifically for 'xml-container' formats like
> > odt and docx  but also more generically.
>
> Versioning documents in formats like odt is indeed a different issue:
> for diffs and merges you don't want to do it at the line-level of
> course, but neither do you necessarily want to do it at the XML level
> itself: maybe automatic merging can be done at the XML level, but when
> conflicts or diffs need to be shown to users, they have to be shown in
> terms that the user can understand and most users have no idea about
> odt's underlying XML representation other than that it exists.  So you
> need something like OpenOffice to do the diff for you.

Thats why I said plugin capability.  SW like openoffice (or nted)
would know how to diff 2 docs or merge 3.  The revision control
system's plugin would present it the 2 or 3 docs to diff or merge --
what vc does for emacs.

despen | 1 Mar 2011 04:16
Picon

Re: F2

TheFlyingDutchman <zzbbaadd <at> aol.com> writes:

> If I do "ctrl-h k <f2>"   I get "f2-"  in the message area, as if
> Emacs is waiting for me to press another key. If I set a command to
> <f2> with global-set-key and then hit the <f2> key, nothing happens.
> If I again hit <f2> it tells me that "<f2> <f2> is undefined". It is
> like <f2> is set to be used in a key combination. How can I get rid of
> that and just assign a single keypress to <f2>?

I don't know that you have to get rid of anything.
This works as an override for me:

(define-key global-map [(f2)] 'next-error)

Emacs 23.2.1.


Gmane