unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Wolfgang Jenkner <wjenkner@inode.at>
Subject: Re: conf-space-mode
Date: Tue, 12 Sep 2006 07:32:42 +0200	[thread overview]
Message-ID: <m27j093b0l.fsf@gaston.none> (raw)
In-Reply-To: E1GMruq-0007ry-L2@fencepost.gnu.org

Richard Stallman <rms@gnu.org> writes:

>     The way you state this suggests that perhaps you forgot that I
>     actually sent a patch?
>
> I saw your patch but decided to fix the problem a different way.

Not very different, though.

>     You didn't address the problematic use of `current-prefix-arg'.
>
> Yes I did, in the second change.

I'm afraid we are not talking of the same problem here.

I think what you call the `second change' is making C-u C-c SPC work.

I meant the part where I remarked that, e.g., `find-file-at-point'
uses `current-prefix-arg'.  A call to `conf-space-mode' while
'find-file-at-point' is being executed may still see the same prefix
argument which was passed to `find-file-at-point'.  I gave a rather
surprising example of this situation, where the user might not be
aware of some config file being inserted in a buffer.  That example is
slightly bogus however since it actually works correctly with
'ffap-bindings'.  Here is something that should ahem... not work:

(ffap-bindings)
(setq ffap-require-prefix t)

Place point after the colon of ftp.foo.bar: and do C-u C-x C-f

My patch makes `conf-space-mode' heed the prefix argument only if it
is the actual command being executed.  I think this is enough since
you can always visit a config file and then do C-u C-c SPC to adjust
`conf-space-keywords'.  But then again, I never use this feature.

> The first one fixes the other problem you mentioned, that of asking
> for confirmation twice.  You used the words "by design" and I took
> that to mean you thought this was a feature, so I assumed you had
> not tried to change this.

You assumed?

>  But I considered it a bug.  So the first thing I did was fix this.

The imenu stuff is slightly broken now (given my test file x, try C-x
C-f x <return> y and observe that `imenu-generic-expression' has two
"Parameters" entries).

  reply	other threads:[~2006-09-12  5:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-10 13:04 conf-space-mode Richard Stallman
2006-09-11  1:06 ` conf-space-mode Wolfgang Jenkner
2006-09-11 19:58   ` conf-space-mode Richard Stallman
2006-09-12  5:32     ` Wolfgang Jenkner [this message]
2006-09-15 14:29       ` conf-space-mode Richard Stallman
2006-09-16 13:45         ` conf-space-mode Wolfgang Jenkner
2006-09-16 19:05           ` conf-space-mode Richard Stallman
2006-09-18 11:00             ` conf-space-mode Wolfgang Jenkner
2006-09-18 18:52               ` conf-space-mode Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m27j093b0l.fsf@gaston.none \
    --to=wjenkner@inode.at \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).