all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* completion
@ 2007-08-21 22:30 Hadron
  2007-08-22 21:26 ` completion Nikolaj Schumacher
  0 siblings, 1 reply; 14+ messages in thread
From: Hadron @ 2007-08-21 22:30 UTC (permalink / raw)
  To: help-gnu-emacs


I'm a little overwhelmed with the choice in auto completion options for
emacs in buffers. What do you use and why?

Is hippy-expand the way? What about the predictive package's or the
completion-ui package here?

http://www.dr-qubit.org/emacs.php

Any advice appreciated.

--
Visit beautiful Wisconsin Dells.

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Completion
@ 2018-09-01  9:51 Lars Ingebrigtsen
  2018-09-01 14:49 ` Completion Drew Adams
  2018-09-01 15:14 ` Completion Stefan Monnier
  0 siblings, 2 replies; 14+ messages in thread
From: Lars Ingebrigtsen @ 2018-09-01  9:51 UTC (permalink / raw)
  To: emacs-devel

I've been looking at the completion functions and documentation for
pretty much the first time in my life this morning, and I've got some
questions.  :-/

1)

From

20.6.7 Programmed Completion

     ‘nil’
          This specifies a ‘try-completion’ operation.  The function
          should return ‘t’ if the specified string is a unique and
          exact match; if there is more than one match, it should return
          the common substring of all matches (if the string is an exact
          match for one completion alternative but also matches other
          longer alternatives, the return value is the string); if there
          are no matches, it should return ‘nil’.

Let's say the set is '("foo" "zot") and the string is "fo".  Then
there's one match, and it's unique, of course.  But it's not exact?  So
should it return nil, then?

2) The entire `completing-read' machinery is based on prefix, matches
and nothing else; is that right?  That is, if you want to do completion
on words inside strings (for instance, if you want "foo" to have a match
in a collection string like "zot foo bar", then there is no built-in
machinery in Emacs for this?

3) The completion selection machinery in simple.el is nice, but it would
be nice to be able to pass more information about the strings into it
and get it all back after the user has chosen something.  The obvious
thing is to put a text property on the strings, and that almost, almost
works, except for this:

(defun choose-completion (&optional event)
  "Choose the completion at point.
If EVENT, use EVENT's position to determine the starting position."

[...]

               (setq end (or (next-single-property-change end 'mouse-face)
                             (point-max)))
               (buffer-substring-no-properties beg end)))))

If that had been just `buffer-substring', then the information would
survive back to the caller.

`minibuffer-allow-text-properties' exists.  Would it make sense to add a
new variable, like `completion-allow-text-properties', to handle this
case as well?


Like I said, this entire area is new to me, so I may be misunderstanding
something here...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 14+ messages in thread
* Completion
@ 2021-05-03 13:25 wael-zwaiter
  2021-05-03 13:34 ` Completion Gregory Heytings
  2021-05-03 13:35 ` Completion Jean Louis
  0 siblings, 2 replies; 14+ messages in thread
From: wael-zwaiter @ 2021-05-03 13:25 UTC (permalink / raw)
  To: Help Gnu Emacs


I am using completion in emacs and get the following

M-x marshall-{centcom | vlog}

I know how to use C-, and C-. to make the selection.  But them how does one
execute the selection.





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

end of thread, other threads:[~2021-05-03 13:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-21 22:30 completion Hadron
2007-08-22 21:26 ` completion Nikolaj Schumacher
  -- strict thread matches above, loose matches on Subject: below --
2018-09-01  9:51 Completion Lars Ingebrigtsen
2018-09-01 14:49 ` Completion Drew Adams
2018-09-03 16:48   ` Completion Lars Ingebrigtsen
2018-09-01 15:14 ` Completion Stefan Monnier
2018-09-03 16:45   ` Completion Lars Ingebrigtsen
2018-09-03 17:19     ` Completion Stefan Monnier
2018-09-03 17:40       ` Completion Lars Ingebrigtsen
2018-09-05 23:03         ` Completion Stephen Leake
2021-05-03 13:25 Completion wael-zwaiter
2021-05-03 13:34 ` Completion Gregory Heytings
2021-05-03 13:48   ` Completion wael-zwaiter
2021-05-03 13:35 ` Completion Jean Louis

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.