From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4Dv0EtT2i2Bq7AAAgWs5BA (envelope-from ) for ; Fri, 30 Apr 2021 14:23:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id AGWqDtT2i2DNdQAAB5/wlQ (envelope-from ) for ; Fri, 30 Apr 2021 12:23:48 +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 5BDF61B26F for ; Fri, 30 Apr 2021 14:23:47 +0200 (CEST) Received: from localhost ([::1]:34516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcSBO-00017j-Ga for larch@yhetil.org; Fri, 30 Apr 2021 08:23:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcRVp-0004iZ-QG for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 07:40:49 -0400 Received: from forward500p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b7:110]:46748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcRVm-0003RS-8o; Fri, 30 Apr 2021 07:40:49 -0400 Received: from myt6-93965afc2133.qloud-c.yandex.net (myt6-93965afc2133.qloud-c.yandex.net [IPv6:2a02:6b8:c12:5525:0:640:9396:5afc]) by forward500p.mail.yandex.net (Yandex) with ESMTP id 179B69407D2; Fri, 30 Apr 2021 14:40:38 +0300 (MSK) Received: from mail.yandex.ru (mail.yandex.ru [89.110.27.19]) by myt6-93965afc2133.qloud-c.yandex.net (mxback/Yandex) with HTTP id becYPNFJt0U1-ebJ8jsH0; Fri, 30 Apr 2021 14:40:37 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1619782837; bh=ep2dsGD+Msku2Cxj/FlltbkzfpD6oP4+4iwwWOFD9q0=; h=Message-Id:Cc:Subject:In-Reply-To:Date:References:To:From; b=cywrJQxVFkUNmN/xt1KMzhpbManLgtX34l/vsHSCoBUVVT7xt0F4ZtZtv807kr2TC zmmS6yElK5a3l9IE30U/HypE5yDhMPPY+8Lti7FmKtZpZDdEomV+j5v/DsR+zY9kHD ZsGOT3Pp19etzc8YOR9jwCTEZVsOJeOCZO2IdjGs= Received: by myt2-b899cd0385f4.qloud-c.yandex.net with HTTP; Fri, 30 Apr 2021 14:40:37 +0300 From: Ivan Sokolov Envelope-From: ivan-p-sokolov@yandex.ru To: Bastien In-Reply-To: <877dkkckdi.fsf@gnu.org> References: <877dkxc6b1.fsf@ya.ru> <877dkkckdi.fsf@gnu.org> Subject: Re: [PATCH] ob-sql: blocks without :engine get stuck in org-edit-src-code on indent MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Fri, 30 Apr 2021 14:40:37 +0300 Message-Id: <2549801619782837@myt2-b899cd0385f4.qloud-c.yandex.net> Content-Transfer-Encoding: 7bit Content-Type: text/plain Received-SPF: pass client-ip=2a02:6b8:0:1472:2741:0:8b7:110; envelope-from=ivan-p-sokolov@ya.ru; helo=forward500p.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Cc: emacs-orgmode@gnu.org 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=1619785428; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ep2dsGD+Msku2Cxj/FlltbkzfpD6oP4+4iwwWOFD9q0=; b=A0dzhmq/OINEVsst4mfJxvS3/In3Y80OFTOpkH4RxjGAsjSe1n9rS78nXoQ8C3tyne1gET CbjlhY0aRplz/apcMZRYShPG42PNoTu4QGqtk5vglvqb0JYr4bWKLz/mGjBcde9a2Ja2SI pK+JPdmDCk/FqxKnl81BxLVeuxAhNPGSF1zwxMZhAB9c9r5vvWawIi6NqOrEI+AFJ1qrky Ya0fO0l1V/0xuIJZZ6fllUsekXffYGkYFsfsRY2+TTBAGvARAlCWOz/BRLeRspAjJucu5e 1PRAY1cGQeXXBmRBJolpuIsSphlQZQPl7JY5njpObHxgzHVU7yiYiY2u08ogBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619785428; a=rsa-sha256; cv=none; b=E3gzhL37RO3L30kXu8lntX7LDX4K7OCyG1OAILxxGBDTcfItjCABVTDyCTwSLZ5bYdCHtK qKlelh7pFvezJqcogG8VnFgZz8PwKi3PheDOinmnwa5xkpXw24Tbt323xfzXl2cZmM4TXm 1NQt7M0iSoqbURvUOfZBsgQ5fKnOWMF3iLmjCvofpeUbZbCE0pJUeT9GKz6kyV6b+LoAKz 0ICRIy8FeIw5UJiiUxsosZ9z8UfGTUj9WxidzeaKARyMBbmWEZ0M2VGOvizcqLxcfzhd5+ fVlWwP+AorMtM109PNH9e4REqh4izqsoVndd8jTB8jC5BLHxNV3aZCrK70EPvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ya.ru header.s=mail header.b=cywrJQxV; dmarc=pass (policy=none) header.from=ya.ru; 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: -3.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ya.ru header.s=mail header.b=cywrJQxV; dmarc=pass (policy=none) header.from=ya.ru; 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: 5BDF61B26F X-Spam-Score: -3.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9Y8A2pgUOpGs > what you want to do? I want to indent some sql in the src block in an org file. > what happens instead Buffer becomes unusable -- text is entered in the opposite direction until the Org-Src buffer is closed. NOTE: I am not opening this buffer myself, it is opened by org-indent-line, but is not closed because sql-set-product throws a user-error. > how the patch fixes the problem? It ignores user-error thrown by sql-set-product. --- Debugger entered--entering a function: * signal(user-error ("SQL product nil is not supported; treated as ANSI")) * user-error("SQL product %s is not supported; treated as ANSI" nil) * #f(compiled-function (product) "Set `sql-product' to PRODUCT and enable appropriate highlighting." (interactive #f(compiled-function () #)) #)(nil) * apply(#f(compiled-function (product) "Set `sql-product' to PRODUCT and enable appropriate highlighting." (interactive #f(compiled-function () #)) #) nil) * sql-set-product(nil) org-babel-edit-prep:sql(("sql" "select foo\n" ((:results . "replace") (:exports . "code") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no") (:session . "none")) "" nil 1 "(ref:%s)")) org-edit-src-code() org-babel-do-key-sequence-in-edit-buffer("\11") org-indent-line() indent-according-to-mode() electric-indent-post-self-insert-function() self-insert-command(1) newline(nil 1) org--newline(nil nil 1) org-return(nil nil 1) funcall-interactively(org-return nil nil 1) call-interactively(org-return nil nil) command-execute(org-return)