From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MAn/F/tCHmFbmwAAgWs5BA (envelope-from ) for ; Thu, 19 Aug 2021 13:39:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EHfOE/tCHmE2UAAA1q6Kng (envelope-from ) for ; Thu, 19 Aug 2021 11:39:39 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B155312E56 for ; Thu, 19 Aug 2021 13:39:38 +0200 (CEST) Received: from localhost ([::1]:36774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGgOX-0007HP-Nt for larch@yhetil.org; Thu, 19 Aug 2021 07:39:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFT7e-0001Oo-8C for emacs-orgmode@gnu.org; Sun, 15 Aug 2021 23:17:10 -0400 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]:39837) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFT7c-0005tk-8t for emacs-orgmode@gnu.org; Sun, 15 Aug 2021 23:17:10 -0400 Received: by mail-il1-x12b.google.com with SMTP id y3so17139740ilm.6 for ; Sun, 15 Aug 2021 20:17:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=asnCdcG2bQewoSjciiZr5uN/wjxcKJo1oevnrZ2wH60=; b=ekbTTQuvEYO3mOT7TrEK3/ShfCr6lBmirfqojMsroU7EIH1EJDDzTGj//lZJZeh4AH 0NtthP+mzwLUAeYVJ5sVszBDGNmQT3wVmRECXQ2lU5Zp9wZvRuYe3UXyBpYhkMTdWEzI kog6Byp5F7qVX7IK3Z42Xbt8Y+kQ0dVmWabj7bZ95bUyZ7rso6nzSoi1irMAmcGTQpd7 1ISxkE7OjlbQYDatBQX+ZxH+z6cK9S2H3WTytHWMdkCoeR9v27jOXONovzM/N90Le7IU 6sdQH89DoreGo8y5oTChfO02QUqduIt8Pw69iQrbgHZvrV3JG4qqUOirVYzazTK41oxr cxzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=asnCdcG2bQewoSjciiZr5uN/wjxcKJo1oevnrZ2wH60=; b=fQwTQmwxmxqQRuK5gyx+p1WnXqRgihxslPPz4pM2jp9Xm59IIiMfRDD17nAxMmsXmi XuDthPu+JzaHnzcXonwpFA0OlRdMLT7SyFethSR9vYYm9g23m2Xf72qgSitF3qJ+6pJ6 g8+KyZsu6S53Z59wUDjyaYuG4d1cGsL/LacVdZpSmpRnqY3oafocttCCGAiZektjngsg ALhH7TcgoF2FzpyBRRc4N9nSfOpL3yhFZYmwr+i0HV7i9UGyRWuorum0GsWN5RXXap++ rpqoG5PCQIXxRPsYPKGD5q3EAOAWu0ugYQ4FYwXEbHscB7uugnQmT8huWYe7lE+Mkc2s EdWg== X-Gm-Message-State: AOAM5310oQmBSwR7HFuEnVH1hYWI6VjP48015+El5S6fJ2NLssNGcLkG qF8OTkDydLnrnzVEazj52d2OgU3KKhGlpKYsJt4ek/vX X-Google-Smtp-Source: ABdhPJzKE/RvxtOAdy7rOgpctvvFfDlHMqleD9uccPGsZRiXN0Io3eJRNc/u/87JR7qPePnnvu7C+v/NrOicqEEZKMQ= X-Received: by 2002:a92:b112:: with SMTP id t18mr10384886ilh.36.1629083826009; Sun, 15 Aug 2021 20:17:06 -0700 (PDT) MIME-Version: 1.0 From: C K Date: Sun, 15 Aug 2021 22:16:55 -0500 Message-ID: Subject: Bug: campany-capf throwing an error in org-mode, while entering header args [9.4.6 (9.4.6-12-gdcc3a8-elpaplus @ /home/mypc/.emacs.d/elpa/org-plus-contrib-20210809/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000c237c305c9a4a22f" Received-SPF: pass client-ip=2607:f8b0:4864:20::12b; envelope-from=hadoopchetan@gmail.com; helo=mail-il1-x12b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 19 Aug 2021 07:36:42 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629373178; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=asnCdcG2bQewoSjciiZr5uN/wjxcKJo1oevnrZ2wH60=; b=PbhcWovXD+vN4gK63mT/eFeOky+zkacu6I2rF3ERVHmSeV4yDV1qbXGBa/vB4z+/v7Bc64 x1uuxQfJCc5uc3zQcgz3qm/h1URuK4ewPY7LJB20VKAkbcfjtA6SXK0LJ2vjRD0f6eQfNL ONOKWuRD91MmPH/7UvCKjpSX10wCQTYR3cm+TP8nfNo9bitYd0/gpKWvqHqg7ORDmgeSJM W4ttJp931sK16+wj4PMXdCQBJSDx2AsHcUNf2RbFp9XcdHT6rJXXadW96i+9pjZPqm//Q/ 381X3rrHBtqNSTpdXkQg+C5iT4VFgM3mmmFrd/L1Z3reM4Tr3LeCwi36NMh2TQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629373178; a=rsa-sha256; cv=none; b=qX407OUj4alOoDaWhh4Pz/w8dnumJOoHTvdsmGrlZFG/7ZC7xqAdSqiudPcGz7RF1qQu1l psce19yzUXateRUF1QJuAmHqwi36188/nZiw4BcqU7JzS2K9AsR28ZfdCT9ENkoi0he4ix P1nv255ay2N0qY2bJQFYT7/ZLvuzzTupWQCQ2I/6OPLG0fY1rlE0JtBJEQXK7aLKw0rwda xB/Qdlcu98ABm8ulpKpyg2bwz8UBzRAqF3EFZ/cYfJRYTVakhZZaJsZ4q9KCYPK55omFJ3 5SSbXuL7vd52aisznAs94f8C9pw+NefuJTM6LSLx6OEPk5xfiLC7WIUL3xudSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ekbTTQuv; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ekbTTQuv; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B155312E56 X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: T7hC6wPuGAhi --000000000000c237c305c9a4a22f Content-Type: text/plain; charset="UTF-8" Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ campany-capf throwing an error in org-mode, while entering header args #### Error in `*Messages*` buffer ``` Company: backend company-capf error "Wrong type argument: char-or-string-p, nil" with args (prefix) ``` #### Steps to reproduce - emacs -Q - `(add-to-list 'load-path "~/.emacs.d/elpa/company-20210811.214/")` - `M-x load-library` `company` - Open a org-mode buffer - enable `company-mode` - enter the example below, you will get the error when typing `:var` ``` #+Name: get-env #+begin_src emacs-lisp (print "hello") #+end_src #+begin_src emacs-lisp :var env=get-env() (print env) #+end_src ``` #### Expected behavior This should not trigger an error. #### The error backtrace ``` Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) org-babel-balanced-split(nil 32) #f(compiled-function (pair) #)((:var)) org-babel-parse-multiple-vars(((:var))) org-babel-parse-header-arguments(":var" light) #f(compiled-function (h) #)(":var") org-babel-get-src-block-info(light) pcomplete/org-mode/block-option/src() pcomplete-completions() pcomplete-completions-at-point() completion--capf-wrapper(pcomplete-completions-at-point optimist) company--capf-data-real() company--capf-data() company-capf(prefix) apply(company-capf prefix) company-call-backend-raw(prefix) company--force-sync(company-call-backend-raw (prefix) company-capf) company-call-backend(prefix) company--continue() company--perform() company-post-command() ``` with `C-M-i` I get this error in messages buffer ``` Error in post-command-hook (completion-in-region--postch): (wrong-type-argument char-or-string-p nil) ``` trace - ``` Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) org-babel-balanced-split(nil 32) #f(compiled-function (pair) #)((:var)) org-babel-parse-multiple-vars(((:var))) org-babel-parse-header-arguments(":var" light) #f(compiled-function (h) #)(":var") org-babel-get-src-block-info(light) pcomplete/org-mode/block-option/src() pcomplete-completions() pcomplete-completions-at-point() completion--capf-wrapper(pcomplete-completions-at-point optimist) company--capf-data-real() company--capf-data() company-capf(prefix) apply(company-capf prefix) company-call-backend-raw(prefix) company--force-sync(company-call-backend-raw (prefix) company-capf) company-call-backend(prefix) company--begin-new() company--perform() company-auto-begin() company-idle-begin(# # 230 95) apply(company-idle-begin (# # 230 95)) timer-event-handler([t 24857 34109 966818 nil company-idle-begin (# # 230 95) nil 848000]) ``` Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-07-22 Package: Org mode version 9.4.6 (9.4.6-12-gdcc3a8-elpaplus @ /home/mypc/.emacs.d/elpa/org-plus-contrib-20210809/) --000000000000c237c305c9a4a22f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Remember to cover the basics, that is, what you ex= pected to happen and
what in fact did happen.=C2=A0 You don't know h= ow to make a good report?=C2=A0 See

=C2=A0 =C2=A0 =C2=A0https://orgmode.org/manua= l/Feedback.html#Feedback

Your bug report will be posted to the O= rg mailing list.
-------------------------------------------------------= -----------------

campany-capf throwing an error in org-mode, while = entering header args

#### Error in `*Messages*` buffer

```Company: backend company-capf error "Wrong type argument: char-or-str= ing-p, nil" with args (prefix)
```

#### Steps to reproduce
- emacs -Q
- `(add-to-list 'load-path "~/.emacs.d/elpa/co= mpany-20210811.214/")`
- `M-x load-library` `company`
- Open a o= rg-mode buffer
- enable `company-mode`
- enter the example below, you= will get the error when typing `:var`

```
#+Name: get-env
#+b= egin_src emacs-lisp
(print "hello")
#+end_src

#+begi= n_src emacs-lisp :var env=3Dget-env()
(print env)
#+end_src
```
#### Expected behavior
This should not trigger an error.

###= # The error backtrace

```
Debugger entered--Lisp error: (wrong-ty= pe-argument char-or-string-p nil)
=C2=A0 org-babel-balanced-split(nil 32= )
=C2=A0 #f(compiled-function (pair) #<bytecode -0x58ac6fff72dc116>= ;)((:var))
=C2=A0 org-babel-parse-multiple-vars(((:var)))
=C2=A0 org-= babel-parse-header-arguments(":var" light)
=C2=A0 #f(compiled-= function (h) #<bytecode -0x1422a9568baa5a8e>)(":var")
= =C2=A0 org-babel-get-src-block-info(light)
=C2=A0 pcomplete/org-mode/blo= ck-option/src()
=C2=A0 pcomplete-completions()
=C2=A0 pcomplete-compl= etions-at-point()
=C2=A0 completion--capf-wrapper(pcomplete-completions-= at-point optimist)
=C2=A0 company--capf-data-real()
=C2=A0 company--c= apf-data()
=C2=A0 company-capf(prefix)
=C2=A0 apply(company-capf pref= ix)
=C2=A0 company-call-backend-raw(prefix)
=C2=A0 company--force-syn= c(company-call-backend-raw (prefix) company-capf)
=C2=A0 company-call-ba= ckend(prefix)
=C2=A0 company--continue()
=C2=A0 company--perform()=C2=A0 company-post-command()

```

with `C-M-i` I get this er= ror in messages buffer

```
Error in post-command-hook (completion= -in-region--postch): (wrong-type-argument char-or-string-p nil)
```
<= br>trace -

```
Debugger entered--Lisp error: (wrong-type-argument= char-or-string-p nil)
=C2=A0 org-babel-balanced-split(nil 32)
=C2=A0= #f(compiled-function (pair) #<bytecode 0x1086521bcdc902ea>)((:var))<= br>=C2=A0 org-babel-parse-multiple-vars(((:var)))
=C2=A0 org-babel-parse= -header-arguments(":var" light)
=C2=A0 #f(compiled-function (h= ) #<bytecode -0x1422a956b59ad8ce>)(":var")
=C2=A0 org-ba= bel-get-src-block-info(light)
=C2=A0 pcomplete/org-mode/block-option/src= ()
=C2=A0 pcomplete-completions()
=C2=A0 pcomplete-completions-at-poi= nt()
=C2=A0 completion--capf-wrapper(pcomplete-completions-at-point opti= mist)
=C2=A0 company--capf-data-real()
=C2=A0 company--capf-data()=C2=A0 company-capf(prefix)
=C2=A0 apply(company-capf prefix)
=C2=A0= company-call-backend-raw(prefix)
=C2=A0 company--force-sync(company-cal= l-backend-raw (prefix) company-capf)
=C2=A0 company-call-backend(prefix)=
=C2=A0 company--begin-new()
=C2=A0 company--perform()
=C2=A0 comp= any-auto-begin()
=C2=A0 company-idle-begin(#<buffer test.org> #<window 3 on te= st.org> 230 95)
=C2=A0 apply(company-idle-begin (#<buffer test.org> #<window 3 on test.org> 230 95))
=C2=A0 timer-event-handler([t 24857= 34109 966818 nil company-idle-begin (#<buffer test.org> #<window 3 on test.org> 230 95) nil 848000])

```

Emacs =C2=A0: GNU Emacs 28.0.= 50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.= 0)
=C2=A0of 2021-07-22
Package: Org mode version 9.4.6 (9.4.6-12-gdcc= 3a8-elpaplus @ /home/mypc/.emacs.d/elpa/org-plus-contrib-20210809/)
--000000000000c237c305c9a4a22f--