unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* dabbrev-expand ignores case sometimes
@ 2012-07-19 13:09 C K Kashyap
  2012-07-19 14:04 ` Jambunathan K
  0 siblings, 1 reply; 7+ messages in thread
From: C K Kashyap @ 2012-07-19 13:09 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

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.

Regards,
Kashyap

[-- Attachment #2: Type: text/html, Size: 427 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dabbrev-expand ignores case sometimes
  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
  0 siblings, 1 reply; 7+ messages in thread
From: Jambunathan K @ 2012-07-19 14:04 UTC (permalink / raw)
  To: C K Kashyap; +Cc: help-gnu-emacs

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
>
>

-- 



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dabbrev-expand ignores case sometimes
  2012-07-19 14:04 ` Jambunathan K
@ 2012-07-19 15:03   ` C K Kashyap
  2012-07-19 16:01     ` Jambunathan K
  0 siblings, 1 reply; 7+ messages in thread
From: C K Kashyap @ 2012-07-19 15:03 UTC (permalink / raw)
  To: Jambunathan K; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

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
> >
> >
>
> --
>

[-- Attachment #2: Type: text/html, Size: 1348 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dabbrev-expand ignores case sometimes
  2012-07-19 15:03   ` C K Kashyap
@ 2012-07-19 16:01     ` Jambunathan K
  2012-07-20  5:06       ` C K Kashyap
  0 siblings, 1 reply; 7+ messages in thread
From: Jambunathan K @ 2012-07-19 16:01 UTC (permalink / raw)
  To: C K Kashyap; +Cc: help-gnu-emacs


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
>     >
>     >
>    
>     --



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dabbrev-expand ignores case sometimes
  2012-07-19 16:01     ` Jambunathan K
@ 2012-07-20  5:06       ` C K Kashyap
  2012-07-26 21:03         ` Ludwig, Mark
  0 siblings, 1 reply; 7+ messages in thread
From: C K Kashyap @ 2012-07-20  5:06 UTC (permalink / raw)
  To: Jambunathan K; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1277 bytes --]

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
> >     >
> >     >
> >
> >     --
>

[-- Attachment #2: Type: text/html, Size: 1999 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: dabbrev-expand ignores case sometimes
  2012-07-20  5:06       ` C K Kashyap
@ 2012-07-26 21:03         ` Ludwig, Mark
  2012-08-05 19:43           ` Suvayu Ali
  0 siblings, 1 reply; 7+ messages in thread
From: Ludwig, Mark @ 2012-07-26 21:03 UTC (permalink / raw)
  To: C K Kashyap, Jambunathan K; +Cc: help-gnu-emacs@gnu.org

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
>     >
>     >
>
>     --




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dabbrev-expand ignores case sometimes
  2012-07-26 21:03         ` Ludwig, Mark
@ 2012-08-05 19:43           ` Suvayu Ali
  0 siblings, 0 replies; 7+ messages in thread
From: Suvayu Ali @ 2012-08-05 19:43 UTC (permalink / raw)
  To: help-gnu-emacs

On Thu, Jul 26, 2012 at 09:03:09PM +0000, Ludwig, Mark wrote:
> 
> I don't what this case-matching behavior is called, but it catches me occasionally too....
> 

If you want dabbrev to respect the case while completing, try setting
this: (setq dabbrev-case-replace nil)

-- 
Suvayu

Open source is the future. It sets us free.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-05 19:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-08-05 19:43           ` Suvayu Ali

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).