From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id QGYsD8NHFma4BAAAqHPOHw:P1 (envelope-from ) for ; Wed, 10 Apr 2024 10:03:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id QGYsD8NHFma4BAAAqHPOHw (envelope-from ) for ; Wed, 10 Apr 2024 10:03:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712736195; 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; bh=0vFlVrg3hxjujlqc7ZCfR69hV8Hx9wYO0O918Yg8DuU=; b=cAkm7ff5TwXCoLDzOzWXqN9aoo+E/F2NIwtSqQjMOzOjyZItjR9rRIZK3iASYBP7Ao22cU OjLhTg3vMHnNKGlKUWV7xF3LrsG2rB04RmmIfYHyUyVhxUutnlkLICg6XmAE1C1ohm9q/w rN6C9wkWAHDVptO2eR5GamZh5wiklTkgkOTBKOHIcCAPr2lB50M3B5yoQyzTnaPelIgSxm kpObo7s3XUghA6O0q/MaPyhFRV+8VrPWG+ECEnq+dOohpRb8/+8o6QqMnvgSHgm/S7Peu0 8keVJV5pBoKvr5TKrrz5iQd6d/0GwVXd1Y7elGbJbdIbaLA6ht4FGGhcUOlglw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712736195; a=rsa-sha256; cv=none; b=WuwRV/50DpcHkA5pnVer5QuKUrZztmR2s7QE/cw316V42iYPli8DL5PG/7u/5Mrn0i2oYt TGhUZ2Yl2E2nfW0l+rae0xZa2Zdp5ITWtRkwqrTE7CcYa9Z+3TXxu1/X1DIyuvrONrSeJE /MIxW7l1hSPIcOrVgRgJz0CPh2jGBJnSFJ8NtCUvVNjup7YLVYr+/WiF4FBMUxXoSrALDA QT7eJINmyPHzpTfVCcgCxUzyUaRvM4Cn8/1qcc/9l3LMATHqfC0+K8kv0Mq6XRYsJQCc09 gA/efLUSsp+dyx4GgQTE8RZQGNcmfsXt6Z6Uruju0yWW6l9jjKnvKqSJmpt0nA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=none 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 A8A3624220 for ; Wed, 10 Apr 2024 10:03:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruSuM-0005ag-MZ; Wed, 10 Apr 2024 04:02:14 -0400 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 1ruSuI-0005a5-EU for emacs-orgmode@gnu.org; Wed, 10 Apr 2024 04:02:10 -0400 Received: from r3-24.sinamail.sina.com.cn ([202.108.3.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ruSuF-0002kQ-Re for emacs-orgmode@gnu.org; Wed, 10 Apr 2024 04:02:10 -0400 X-SMAIL-HELO: PWRD-20230207OU Received: from unknown (HELO PWRD-20230207OU)([111.207.225.84]) by sina.com (10.182.253.25) with ESMTP id 6616452C00001A3A; Wed, 10 Apr 2024 15:52:20 +0800 (CST) X-Sender: drcxd@sina.com X-Auth-ID: drcxd@sina.com X-SMAIL-MID: 32758712059037 X-SMAIL-UIID: 85F8C15BD25046BABDA35559E91348CA-20240410-155220-1 From: Chang Xiaoduan To: emacs-orgmode@gnu.org Subject: [BUG] Customizing org-emphasis-alist does not work as expected [9.6.15 (release_9.6.15 @ d:/emacs_home/program/emacs/share/emacs/29.2/lisp/org/)] Date: Wed, 10 Apr 2024 15:52:13 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=202.108.3.24; envelope-from=drcxd@sina.com; helo=r3-24.sinamail.sina.com.cn X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.999, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: -6.18 X-Spam-Score: -6.18 X-Migadu-Queue-Id: A8A3624220 X-Migadu-Scanner: mx12.migadu.com X-TUID: 4SOfPBshiwXV 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. ------------------------------------------------------------------------ Hello, I am trying to customizing `org-emphasis-alist` so that ` can replace ~ as the code marker. I use the following code in my configuration file: ``` emacs-lisp (setq org-emphasis-alist '(("*" bold) ("/" italic) ("_" underline) ("=" org-verbatim verbatim) ("`" org-code verbatim) ("+" (:strike-through t)))) ``` After I restart Emacs, things does not work as I expected. Text surrounded by ` is not rendered using the faces for code, and text surrounded by ~ is rendered using a different face for code (different from the faces before the customizing is applied). Also, I have set `org-hide-emphasis-marker` to `t`, and ~ gets hidden but ` not. This can be reproduced by launching Emacs using `emacs -Q`. Then evaluate the code above in the *scratch* buffer. Then open an org-mode buffer which contains text like "`code`" and "~code~". You can tell the difference by launching Emacs using `emacs -Q` but does not evaluate the above code. Thank you Emacs : GNU Emacs 29.2 (build 2, x86_64-w64-mingw32) of 2024-02-02 Package: Org mode version 9.6.15 (release_9.6.15 @ d:/emacs_home/program/emacs/share/emacs/29.2/lisp/org/)