all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joe Corneli <jcorneli@math.utexas.edu>
Subject: Re: Is Emacs becoming Word?
Date: Sun, 27 Mar 2005 18:54:12 -0600	[thread overview]
Message-ID: <E1DFiWC-0005pz-00@lab45.ma.utexas.edu> (raw)
In-Reply-To: <20050328001728.GA29944@dionysus.ucolick.org> (message from Greg Novak on Sun, 27 Mar 2005 16:17:28 -0800)


   > But now I'm thinking that it might be even nicer to be able to get
   > help on the last event, or sequence of events... 

   I was thinking along the same lines and was just about to try to throw
   together a proof-of-principle bit of code.  When something odd
   happens, the user would use something like "M-x what-just-happened"
   and get info about what Emacs thinks its doing, how to shut it off,
   etc.

I think it probably wouldn't be too ungodly hard to write a
`what-just-happened' function (but I'm not sure).  

Like you pointed out,

   Retrofitting existing code to actually provide good
   context-sensitive information would seem to be a herculean task.

But nevertheless, documentation of this sort _should_ exist.  Unless
we're told how to turn things off (for example) we'll get confused.
Writing the documentation would probably be the hard part, patching it
in to `what-just-happened' seems like it would be relatively easy.

One thing that would be especially useful would be code that would
show where exactly the variables relevant to a certain event were set.

It probably isn't hard to say where a given variable is set.  The
difficulty is in specifying internally which variables are relevant
to which events.

   2) This will only help Emacs users who know that the
   what-just-happened command exists.  That is, the situation which
   prompted this discussion was that Emacs was translating certain inputs
   into special characters and I didn't understand why.  If I didn't know
   about the what-just-happened command, I would remain confused.

I don't think this is a huge concern, because if the command existed
it would be listed by C-h ? and either you'd have figured that out, or
you'd have posted here and been told about the command, then used it,
and probably still found it to be useful quite useful.  (I.e. once you
learn of the command it would reduce confusion many times, and you
only have to learn it once.)

   Advantages of the second (verbose minibuffer messages for tentatively
   enabled functionality) approach include:
   1) By design, the information only has to be added to new user-visible
   functionality.  This seems much easier than trying to bring a fully
   general contextual help system to fruition.
   2) Presumably all Emacs users read messages in the minibuffer, so the
   information about new user-visible changes will reach everyone as they
   encounter it, rather than having to go digging for it in the NEWS
   file, for example.  One could think of this as a dynamic way of
   reading the NEWS file.

   Disadvantages include:
   1) This approach cannot be described as unobtrusive.  All Emacs users
   would see an increased number of messages in the minibuffer, at least
   until they decide to permanently enable the new functionality.  

But it could be turned off.

   I've only recently started digging through significant amounts of
   elisp code, so I defer to the judgment of others concerning the
   feasibility of either of these two ideas.


The second one requires appears to be technically no different from
`disable-command'.  The first one is harder, but if you can write a
`what-just-happened' prototype, certainly people can begin to do the
gruntwork (german/english pun :)) to further populate its output with
useful documentation.

  reply	other threads:[~2005-03-28  0:54 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-25 18:05 Is Emacs becoming Word? Greg Novak
2005-03-25 18:21 ` Joe Corneli
2005-03-25 18:35 ` nfreimann
     [not found] ` <mailman.224.1111776025.28103.help-gnu-emacs@gnu.org>
2005-03-25 21:20   ` David Kastrup
2005-03-25 21:30     ` Joe Corneli
2005-03-26 12:44       ` Eli Zaretskii
     [not found]     ` <mailman.238.1111787876.28103.help-gnu-emacs@gnu.org>
2005-03-25 22:29       ` David Kastrup
2005-03-25 22:58         ` Joe Corneli
2005-03-26  9:55           ` Gian Uberto Lauri
2005-03-26 11:24             ` Joe Corneli
     [not found]           ` <mailman.260.1111832868.28103.help-gnu-emacs@gnu.org>
2005-03-26 11:24             ` David Kastrup
2005-03-26 17:42             ` Bad iso-2022-jp encoding (was: Is Emacs becoming Word?) Reiner Steib
     [not found]         ` <mailman.245.1111792713.28103.help-gnu-emacs@gnu.org>
2005-03-25 23:37           ` Is Emacs becoming Word? David Kastrup
2005-03-26  1:30       ` Henrik Enberg
2005-03-26  2:06         ` Joe Corneli
2005-03-26 12:37         ` Eli Zaretskii
2005-03-26 12:53 ` Eli Zaretskii
2005-03-26 17:11   ` Joe Corneli
2005-03-26 17:32     ` Eli Zaretskii
2005-03-27  1:08   ` Greg Novak
2005-03-27  4:35     ` Eli Zaretskii
     [not found]   ` <mailman.300.1111886723.28103.help-gnu-emacs@gnu.org>
2005-03-27  2:02     ` David Kastrup
2005-03-27 10:05     ` Steinar Børmer
2005-03-27 17:08       ` Joe Corneli
2005-03-28  0:17         ` Greg Novak
2005-03-28  0:54           ` Joe Corneli [this message]
     [not found]           ` <mailman.370.1111972552.28103.help-gnu-emacs@gnu.org>
2005-03-28  2:13             ` Thomas A. Horsley
2005-03-28  3:13               ` Henrik Enberg
2005-03-28  4:39                 ` Joe Corneli
2005-03-31 20:52               ` Greg Novak
2005-03-31 21:26                 ` Joe Corneli
     [not found]               ` <mailman.808.1112304527.28103.help-gnu-emacs@gnu.org>
2005-04-01  0:35                 ` Thien-Thi Nguyen
     [not found] ` <mailman.272.1111843857.28103.help-gnu-emacs@gnu.org>
2005-03-26 16:45   ` Thomas A. Horsley
     [not found] <mailman.223.1111775070.28103.help-gnu-emacs@gnu.org>
2005-03-25 21:37 ` David Kastrup
2005-03-25 23:30   ` Jochen Küpper
2005-03-26  7:15   ` Greg Novak
2005-03-26 11:43     ` Eli Zaretskii
2005-03-26 12:04     ` Peter Dyballa
     [not found]   ` <mailman.257.1111822540.28103.help-gnu-emacs@gnu.org>
2005-03-26 11:08     ` Chong Yidong
2005-03-26 11:14     ` David Kastrup
2005-03-28 10:50 ` Olive
2005-03-28 21:04   ` Miles Bader
2005-03-28 22:52   ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1DFiWC-0005pz-00@lab45.ma.utexas.edu \
    --to=jcorneli@math.utexas.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.