all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* What standard library to use to provide settings editing to user?
@ 2013-02-20 19:56 Oleksandr Gavenko
  2013-02-28 18:52 ` Oleksandr Gavenko
  0 siblings, 1 reply; 2+ messages in thread
From: Oleksandr Gavenko @ 2013-02-20 19:56 UTC (permalink / raw)
  To: help-gnu-emacs

I write blogging mode and want to provide ability to users to list and edit
connection settings.

As I use external program to do actual authentication and network jobs so I
don't use Emacs variables for storing settings.

External process send list of parameters and their values. I should show them
to user and return user modifications back to external process.

Every parameter have a name and string value (possibly multi-line).

What libraries or code examples are usable for solving such task?

-- 
Best regards!




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

* Re: What standard library to use to provide settings editing to user?
  2013-02-20 19:56 What standard library to use to provide settings editing to user? Oleksandr Gavenko
@ 2013-02-28 18:52 ` Oleksandr Gavenko
  0 siblings, 0 replies; 2+ messages in thread
From: Oleksandr Gavenko @ 2013-02-28 18:52 UTC (permalink / raw)
  To: help-gnu-emacs

On 2013-02-20, Oleksandr Gavenko wrote:

> I write blogging mode and want to provide ability to users to list and edit
> connection settings.
>
> As I use external program to do actual authentication and network jobs so I
> don't use Emacs variables for storing settings.
>
> External process send list of parameters and their values. I should show them
> to user and return user modifications back to external process.
>
> Every parameter have a name and string value (possibly multi-line).
>
> What libraries or code examples are usable for solving such task?

Firstly I try use low level API:

  (info "(elisp) Text Properties")

but stuck with:

  (info "(elisp) Sticky Properties")

when I need to code boundary between editable and read-only areas...

After looking how is work "M-x customize-mode" I found:

  (info "(widget)")

Some practice and I get working code. Most useful feature is 'widget-value'
function.

But some parts are very hard to understand. For example how can I make custom
face in widget-insert? I use such code, it work but I don't know if this right
usage:

    (put-text-property 0 (length blog4y*conf-header-id) 'face 'bold blog4y*conf-header-id)
    (widget-insert blog4y*conf-header-id id "\n\n")

-- 
Best regards!




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

end of thread, other threads:[~2013-02-28 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-20 19:56 What standard library to use to provide settings editing to user? Oleksandr Gavenko
2013-02-28 18:52 ` Oleksandr Gavenko

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.