From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: [EBDB] How to create a role (record)? Date: Fri, 02 Jul 2021 08:40:44 -0700 Message-ID: <87im1siv0j.fsf@ericabrahamsen.net> References: <87im1ut457.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3130"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Pankaj Jangid Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 02 17:42:06 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzLIr-0000d3-65 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 17:42:05 +0200 Original-Received: from localhost ([::1]:51980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzLIq-0005VP-8A for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 11:42:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzLHq-0004gb-6Z for help-gnu-emacs@gnu.org; Fri, 02 Jul 2021 11:41:02 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:45960 helo=mail.ericabrahamsen.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzLHm-0001nS-T1 for help-gnu-emacs@gnu.org; Fri, 02 Jul 2021 11:41:01 -0400 Original-Received: from localhost (c-71-197-184-122.hsd1.wa.comcast.net [71.197.184.122]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 241F8FEB2F; Fri, 2 Jul 2021 15:40:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1625240446; bh=nvPsrSJIpY07A3iqfPbIUSDCDe00yrHn3ix50bXr/sA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=avBftx0sGR0E1Rwta2c7LX01yxfyvANmnFeS+FHhvQgZ2ISpfZHF5riQE4Ulk5o0k zQEP6O3R1IH4O4nKfhRqMYzN2u9AXf2GduGjWq0LkKGGOoMr3kx8acVfegovsQX/yN j2o0LnJ//JeTExO49Dv1JMCbw2NoVG2AU7DCcz4Y= In-Reply-To: (Pankaj Jangid's message of "Fri, 02 Jul 2021 17:01:35 +0530") Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131404 Archived-At: Pankaj Jangid writes: > Eric Abrahamsen writes: > >> Pankaj Jangid writes: >> >>> How to create a new Role type of record? I could not find a command in >>> the help. And the one mentioned in =E2=80=98section 4.4.1 Role=E2=80=99= fields is not >>> working. This section specifies =E2=80=98F=E2=80=99. But this is bound = to >>> =E2=80=98ebdb-format-these-records=E2=80=99. >> >> 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=E2=80=99s domain and pulls the ema= il-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 =E2=80=98i=E2=80=99 while on a record, select =E2=80=98ro= le=E2=80=99, =E2=80=9Cassign or create > role=E2=80=9D) or create a top level organization type record. Yep, that's exactly what "R" is for. And if you use it on an organization record, it will offer to create a person, instead. > 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? If you create new records with "C" rather than "c", you'll get more options, including which record type to create. Eric