all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pankaj Jangid <pankaj@codeisgreat.org>
To: help-gnu-emacs@gnu.org
Subject: Re: [EBDB] How to create a role (record)?
Date: Fri, 02 Jul 2021 17:01:35 +0530	[thread overview]
Message-ID: <m2y2apdka0.fsf@codeisgreat.org> (raw)
In-Reply-To: 87im1ut457.fsf@ericabrahamsen.net

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Pankaj Jangid <pankaj@optimizory.com> writes:
>
>> How to create a new Role type of record? I could not find a command in
>> the help. And the one mentioned in ‘section 4.4.1 Role’ fields is not
>> working. This section specifies ‘F’. But this is bound to
>> ‘ebdb-format-these-records’.
>
> Huh, something went wrong in the manual there. "Using the 'F'"? The
> proper key is "R", to both create a new record, and give the record
> under point a role in that new record.

Ok. I should have found that out.

> A role is a field type, not a record type, so you can create a role as
> normal by hitting "i" and then selecting "role" as the type. That
> requires both records (person and organization) to already exist.
>
> That reminds me, I've been meaning to add a hook so that, after a new
> record is created, EBDB checks if its mail addresses matches any
> organization domain, and offers to create a role field. I'll see if I
> can add that today, and release a new version.
>

I am happy with the a similar functionality that already
exists. i.e. when I assign a role, EBDB already checks if the main
email-ID matches with the organization’s domain and pulls the email-ID
to associate it with the user-role relationship. It works perfectly. But
I was stuck in a scenario where I wanted to assign a role which is not
already existing. i.e. I want to create a new Organization; either
on-the-fly (hit ‘i’ while on a record, select ‘role’, “assign or create
role”) or create a top level organization type record.

And I have completely forgot how I created the roles that are already in
my database. In this thread, I wanted to know only this. How to create
new organization records?

-- 
Regards ~Pankaj




  reply	other threads:[~2021-07-02 11:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-01  8:27 [EBDB] How to create a role (record)? Pankaj Jangid
2021-07-01 16:01 ` Eric Abrahamsen
2021-07-02 11:31   ` Pankaj Jangid [this message]
2021-07-02 15:40     ` Eric Abrahamsen
2021-07-03  2:56       ` Pankaj Jangid

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=m2y2apdka0.fsf@codeisgreat.org \
    --to=pankaj@codeisgreat.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.