From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eGlBCoMTymXkxwAAe85BDQ:P1 (envelope-from ) for ; Mon, 12 Feb 2024 13:48:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id eGlBCoMTymXkxwAAe85BDQ (envelope-from ) for ; Mon, 12 Feb 2024 13:48:03 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="FNG/8eO5"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707742083; 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=5X2cAtJTFvHUDEDzyca5eL1FPEGe6BRdNIvufE0HOSs=; b=lCSrdlAPTnG5+xH94O3bKdYT7WgJWzf34NBRN9+C2fidTAwWe4x2rn1rCof+1riO+PlJH7 pQJwdyeNi1F3sVX0agKWFlO+uYWCsUD2QH6O++wJDcKlLac5vne2rTqmeBuXzvJlo9sdcU fvTNgdiSDY4VS/2kVvUzoUgKgdziKS6Q+fCENVxaHrOvcZBfjuknR0Twzo9hikRmVdC7pd 1StEu8BFoQ+TDCoMRIUWHgQtiNVaakltiRs3aHojsEhJKYMYtPKnK5PDvQ1tZm47WFdQxj s3/8RXsOOOK5AfvwEvvJghWSJ6QxmAN1EyrssSwLQ/3WRbFVsfsM04tNPuoMkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="FNG/8eO5"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707742083; a=rsa-sha256; cv=none; b=lzTBWVsaR2ruEN53kYJXO47xmaxYO2XkplS8tItyckle5YsNgOezE1J6ws1ZfjHWjoDWmk YFAZRMARF0/C0QCV4Ztj1sVdvq/K6Z21FZoUTgbGiMcJPmWGrikRskppsVjs8KR+bqG+iP biKF+DUrG3oq79ZWaVuVnPITlzCX82nz+GUg4J8yFUJTlOnieZuU6Piwtth/li0hRda5/u tptFkjQPIEJHvJcG0Z5Sxiw0uqrH+GsLxjATvZ8Oec3bHUrSkOCL2dPS/CbNgGe6HIsIXj SS5kAg5+VJwJqUPvSA10EHMbQjncnwH5T8OE75rG/wdPSMd27pSS3sb1n0osfA== 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 E3E8340746 for ; Mon, 12 Feb 2024 13:48:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZViG-0003Ak-8s; Mon, 12 Feb 2024 07:47:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZViE-00039c-Hq for emacs-orgmode@gnu.org; Mon, 12 Feb 2024 07:47:06 -0500 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZViC-0008PX-H1 for emacs-orgmode@gnu.org; Mon, 12 Feb 2024 07:47:06 -0500 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-51168addef1so5813149e87.1 for ; Mon, 12 Feb 2024 04:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707742020; x=1708346820; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=5X2cAtJTFvHUDEDzyca5eL1FPEGe6BRdNIvufE0HOSs=; b=FNG/8eO55boItCvVnhTTT9RyLMpzspc3413fluYUHMeA8tp/gH9jDbSXL0hJV/7/lO kps8pwGJ65R7IWMX8B9T0zzkYz1ARkpJivNETh/W6q1KNZz6g+nfAWgohmWT+CZABZMW F796L30WW1tGvI18KN+G2PpwJzT9qDQBvu0MaeIDPLvVogZ7D+lVyAf1uxEfQPdBcG8U m/nySEytN/+X9AqbqPY8F2ZHpijwsWAEcmsLnL2oUzhVtYCiOKRiduEzvgARTFjIEpDh C2ayOQu3hOEX1ojuWD7yUybAmXevxV19o9L6ruApPGr3uhTMdPQrM98lo2YEYR23NM5o LSWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707742020; x=1708346820; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5X2cAtJTFvHUDEDzyca5eL1FPEGe6BRdNIvufE0HOSs=; b=pE6IMrZroWvr5KWJm2pr6wgRk5aQVrA5Xk/iS5PfgOvhyAfzt3MUSnodGxI/ibmWN2 Jj4mT69uNlYD7y0f3+JWjAddju396LJzcnV+8PQ+QqllorJGxZHI2l9W023/2Yh2hsjH QpH9QUoMOxgvCTE1Gr00SrLeHKxtzJc57Gce9VqZRhGbGiQejQkOYp5vRQGEXHSzA8hW cRlnPhrgPY7t0nDfuev289VzN8K6hKh0atkl0wZmqVBUn2r66n44JgJ6C4bP3HOdXxx/ KwP8y/ZSNu22/zbZLImY90+ddFK9Z9eyWLGvNo38blN+PhdNmjFvG0adGUsvp0jy6z1G v8tw== X-Gm-Message-State: AOJu0YybAyr2Rmnx+a8rQF0NAKyeiOXBOKGC6ahmuAG79kyvlw/qNzXl kV1jOwUyLaqOJJSGvVeshVKr/UNFC4Mqf1paNoimajwGcVYH32nDX+SfaYEC X-Google-Smtp-Source: AGHT+IEQxbxXf6ewAe2Tf8J8NE9gLseSG75w/Tks3g72vTzbcPUxJH/ez4fj06fyawOawxlQaeT0/Q== X-Received: by 2002:ac2:5ec8:0:b0:511:76aa:3e37 with SMTP id d8-20020ac25ec8000000b0051176aa3e37mr4575408lfq.53.1707742019931; Mon, 12 Feb 2024 04:46:59 -0800 (PST) Received: from sonyvaio ([194.8.85.67]) by smtp.gmail.com with ESMTPSA id bp38-20020a05651215a600b005118653bc1esm675880lfb.26.2024.02.12.04.46.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 04:46:58 -0800 (PST) From: Ilya Chernyshov To: emacs-orgmode Subject: [PATCH] Fix formatting Date: Mon, 12 Feb 2024 18:46:56 +0600 Message-ID: <87v86tsvcv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=ichernyshovvv@gmail.com; helo=mail-lf1-x12e.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.99 X-Migadu-Queue-Id: E3E8340746 X-Spam-Score: -9.99 X-Migadu-Scanner: mx11.migadu.com X-TUID: Ar+pPowkibGo --=-=-= Content-Type: text/plain Hi, just wanted the code to be more elisp style guide compliant, so here's a patch that adds spaces before opening parentheses. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Fix-formatting.patch >From 0d9b7ce6d5e83d7758566dab6a17642fdf4b9b73 Mon Sep 17 00:00:00 2001 From: Ilya Chernyshov Date: Mon, 12 Feb 2024 18:33:29 +0600 Subject: [PATCH] Fix formatting * lisp/ob-haskell.el (org-babel-interpret-haskell): * lisp/ol-bibtex.el (org-bibtex-store-link): * lisp/ol.el (org-link--fontify-links-to-this-file): * lisp/org-agenda.el (org-agenda-open-link): (org-agenda-reapply-filters): * lisp/org-element.el (org-element-timestamp-interpreter): * lisp/org-macs.el (org-buffer-list): * lisp/org-pcomplete.el (pcomplete/org-mode/block-option/src): Fix formatting. --- lisp/ob-haskell.el | 2 +- lisp/ol-bibtex.el | 2 +- lisp/ol.el | 6 +++--- lisp/org-agenda.el | 4 ++-- lisp/org-element.el | 2 +- lisp/org-macs.el | 2 +- lisp/org-pcomplete.el | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lisp/ob-haskell.el b/lisp/ob-haskell.el index 00be6d52c..178e08424 100644 --- a/lisp/ob-haskell.el +++ b/lisp/ob-haskell.el @@ -188,7 +188,7 @@ This function should only be called by `org-babel-execute:haskell'." (send-eoe))) ;; We now display and capture the value. (comint-with-output - (lambda() + (lambda () (send-txt-to-ghci "__LAST_VALUE_IMPROBABLE_NAME__\n") (send-eoe)))))) (results (mapcar #'org-strip-quotes diff --git a/lisp/ol-bibtex.el b/lisp/ol-bibtex.el index c5a950e2d..b7bfe3059 100644 --- a/lisp/ol-bibtex.el +++ b/lisp/ol-bibtex.el @@ -514,7 +514,7 @@ ARG, when non-nil, is a universal prefix argument. See (link (concat "file:" (abbreviate-file-name buffer-file-name) "::" search)) (entry (mapcar ; repair strings enclosed in "..." or {...} - (lambda(c) + (lambda (c) (if (string-match "^\\(?:{\\|\"\\)\\(.*\\)\\(?:}\\|\"\\)$" (cdr c)) (cons (car c) (match-string 1 (cdr c))) c)) diff --git a/lisp/ol.el b/lisp/ol.el index ef3e6addc..00bfaf13a 100644 --- a/lisp/ol.el +++ b/lisp/ol.el @@ -716,14 +716,14 @@ followed by another \"%[A-F0-9]{2}\" group." (defun org-link--fontify-links-to-this-file () "Fontify links to the current file in `org-stored-links'." (let ((f (buffer-file-name)) a b) - (setq a (mapcar (lambda(l) + (setq a (mapcar (lambda (l) (let ((ll (car l))) (when (and (string-match "^file:\\(.+\\)::" ll) (equal f (expand-file-name (match-string 1 ll)))) ll))) org-stored-links)) (when (featurep 'org-id) - (setq b (mapcar (lambda(l) + (setq b (mapcar (lambda (l) (let ((ll (car l))) (when (and (string-match "^id:\\(.+\\)$" ll) (equal f (expand-file-name @@ -731,7 +731,7 @@ followed by another \"%[A-F0-9]{2}\" group." (match-string 1 ll)) "")))) ll))) org-stored-links))) - (mapcar (lambda(l) + (mapcar (lambda (l) (put-text-property 0 (length l) 'face 'font-lock-comment-face l)) (delq nil (append a b))))) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 514359b62..121ac11f6 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -9469,7 +9469,7 @@ It also looks at the text of the entry itself." trg) (cond ((and buffer lk) - (mapcar (lambda(l) + (mapcar (lambda (l) (with-current-buffer buffer (setq trg (and (string-match org-link-bracket-re l) (match-string 1 l))) @@ -11000,7 +11000,7 @@ current HH:MM time." (defun org-agenda-reapply-filters () "Re-apply all agenda filters." (mapcar - (lambda(f) (when (car f) (org-agenda-filter-apply (car f) (cadr f) t))) + (lambda (f) (when (car f) (org-agenda-filter-apply (car f) (cadr f) t))) `((,org-agenda-tag-filter tag) (,org-agenda-category-filter category) (,org-agenda-regexp-filter regexp) diff --git a/lisp/org-element.el b/lisp/org-element.el index e6df9743a..b8e0fc6dc 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -4383,7 +4383,7 @@ Assume point is at the beginning of the timestamp." (defun org-element-timestamp-interpreter (timestamp _) "Interpret TIMESTAMP object as Org syntax." - (let((type (org-element-property :type timestamp))) + (let ((type (org-element-property :type timestamp))) (if (member type '(active inactive inactive-range active-range)) (let ((day-start (org-element-property :day-start timestamp)) (month-start (org-element-property :month-start timestamp)) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index f14323d23..f713f4b8f 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -336,7 +336,7 @@ If EXCLUDE-TMP is non-nil, ignore temporary buffers." (buffer-name b))))))))) (delq nil (mapcar - (lambda(b) + (lambda (b) (if (and (funcall filter b) (or (not exclude-tmp) (not (string-match "tmp" (buffer-name b))))) diff --git a/lisp/org-pcomplete.el b/lisp/org-pcomplete.el index f1bc34966..f02c63e40 100644 --- a/lisp/org-pcomplete.el +++ b/lisp/org-pcomplete.el @@ -428,7 +428,7 @@ Complete a language in the first field, the header arguments and switches." (pcomplete-here (mapcar - (lambda(x) (symbol-name (nth 3 x))) + (lambda (x) (symbol-name (nth 3 x))) (cdr (car (cdr (memq :key-type (plist-get (symbol-plist 'org-babel-load-languages) -- 2.41.0 --=-=-=--