[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: completion should not inherit read-only property

From: T. V. Raman
Subject: Re: completion should not inherit read-only property
Date: Tue, 12 Dec 2006 19:12:29 -0800

Somewhat surprized by the question "what is this command
`complete'" my emacs says:
complete is an interactive compiled Lisp function in `completion.el'.
It is bound to  CONTROL RETURN ,  META SPACE .
(complete &optional ARG)

Fill out a completion of the word before point.
Point is left at end.  Consecutive calls rotate through all possibilities.
Prefix args ::
  control-u :: leave the point at the beginning of the completion rather
               than at the end.
  a number  :: rotate through the possible completions by that amount
  `-'       :: same as -1 (insert previous completion)
 {See the comments at the top of `completion.el' for more info.}

This function is advised.

Around-advice `emacspeak':
Say what you completed.


>>>>> "Kevin" == Kevin Rodgers <address@hidden> writes:
    Kevin> T. V. Raman wrote:
    >> I've noticed that recently, completion has started
    >> inheriting the read-only property.
    >> Test: if you have a string in a read-only buffer
    >> e.g. foobarbasbar
    >> and you then type foo and complete it to foobarbasbar
    >> using command `complete' then the completed string ends up
    >> read-only.
    Kevin> What is this command `complete'?  What major and minor
    Kevin> modes are you using and how do you invoke `complete'?
    >> This is an irritant because if this happens to you in a
    >> mail composition buffer (I use vm) then sending mail fails
    >> because part of the buffer is read-only --- you end up
    >> having to eval the appropriate lisp expression to remove
    >> the read-only property with something like: (let
    >> ((inhibit-read-only t)) (put-text-property start end
    >> 'read-only nil))
    Kevin> -- Kevin
    Kevin> _______________________________________________
    Kevin> Emacs-devel mailing list address@hidden
    Kevin> http://lists.gnu.org/mailman/listinfo/emacs-devel

Best Regards,

Email:  address@hidden
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: address@hidden
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

reply via email to

[Prev in Thread] Current Thread [Next in Thread]