all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludwig, Mark" <ludwig.mark@siemens.com>
To: C K Kashyap <ckkashyap@gmail.com>,
	Jambunathan K <kjambunathan@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: dabbrev-expand ignores case sometimes
Date: Thu, 26 Jul 2012 21:03:09 +0000	[thread overview]
Message-ID: <BC5672F8AD4C054BAF167C9801500D1A9B9A92A2@USCIMMBX003.net.plm.eds.com> (raw)
In-Reply-To: <CAGdT1gq4qYHe0cVxJ-2SngVUk2QdPr83uuup3ofinX-Xwhjn-A@mail.gmail.com>

Did you figure this out?

I believe you're running into behavior I have also seen.  Consider the following scenario.

In an otherwise empty buffer, enter the following three non-blank lines (blanks here for readability):

Test1String
TEST2STRING
Test

Run the following tests, each with the cursor at the end of the third line.  (It does not matter if there is a newline after the third line.)

Firstly, invoke M-/ and what you will get is Test2string.
Secondly, delete the third line and replace it with "TEST1" before invoking M-/ and what you will get is TEST1STRING.
Thirdly, delete the third line and replace it with "test2" before invoking M-/ and what you will get is test2string.

I don't what this case-matching behavior is called, but it catches me occasionally too....

Cheers,
Mark

From: help-gnu-emacs-bounces+ludwig.mark=siemens.com@gnu.org [mailto:help-gnu-emacs-bounces+ludwig.mark=siemens.com@gnu.org] On Behalf Of C K Kashyap
Sent: Friday, July 20, 2012 12:06 AM
To: Jambunathan K
Cc: help-gnu-emacs@gnu.org
Subject: Re: dabbrev-expand ignores case sometimes

hmmm I am pretty sure its not M-I M-i or M-c . It's only M-/ and it simply expands in an unexplainable manner.

Regards,
Kashyap
On Thu, Jul 19, 2012 at 9:31 PM, Jambunathan K <kjambunathan@gmail.com> wrote:

Can you be more specific.  What is the guarantee that you haven't typed
M-l, M-u or M-c?

> I have not customized dabrrev ... I believe I run into this
> accidentally when I type in some control/alt combinations
> inadvertently.
>
> Regards,
> Kashyap
>
> On Thu, Jul 19, 2012 at 7:34 PM, Jambunathan K <
> kjambunathan@gmail.com> wrote:
>
>     C K Kashyap <ckkashyap@gmail.com> writes:
>
>     > Hi,
>     >
>     > I noticed that at times when I do a M-/ and try to complete a
>     word
>     > that already exists in the buffer (I assume, this is what I
>     need to
>     > do if I need to do what I did using C-p or C-n on vi), the word
>     > completion happens but with weird casing. Sometime all caps
>     etc. I
>     > wonder if there is some setting I need to do when I get into
>     this
>     > situation.
>
>     Have you customized dabrrev?
>
>     See (info "(emacs) Dabbrev Customization")
>
>
>     >
>     > Regards,
>     > Kashyap
>     >
>     >
>
>     --




  reply	other threads:[~2012-07-26 21:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19 13:09 dabbrev-expand ignores case sometimes C K Kashyap
2012-07-19 14:04 ` Jambunathan K
2012-07-19 15:03   ` C K Kashyap
2012-07-19 16:01     ` Jambunathan K
2012-07-20  5:06       ` C K Kashyap
2012-07-26 21:03         ` Ludwig, Mark [this message]
2012-08-05 19:43           ` Suvayu Ali

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=BC5672F8AD4C054BAF167C9801500D1A9B9A92A2@USCIMMBX003.net.plm.eds.com \
    --to=ludwig.mark@siemens.com \
    --cc=ckkashyap@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kjambunathan@gmail.com \
    /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.