emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: PENG Kevin <kevin.remegame@gmail.com>
To: PENG Kevin <kevin.remegame@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] insert C comment in c-babel case wrong result [9.6.15 (release_9.6.15 @ /opt/program/share/emacs/29.4/lisp/org/)]
Date: Wed, 16 Oct 2024 15:29:39 +0800	[thread overview]
Message-ID: <877ca8mrm4.fsf@gmail.com> (raw)
In-Reply-To: <87msj4mt28.fsf@gmail.com>


Some org-mode information not present in this email.
Please discard this email, a new one will be sent later.

PENG Kevin <kevin.remegame@gmail.com> writes:

> [2. text/html]
> 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. 
>
> -------------------------------------------------------------------------------------------------------------------------
>
> When insert /**/ comment in a C-src block, "," will be insert automticlly before * as flow: 
> emacs_org_issue.png
>
> Reproduce: 
>
> 1 Create one new .org file
> 2 Insert this content: 
>
>
> #+BEGIN_SRC C  
> /** @file  main.c
>  * @brief  项目主函数文件
>  * @details 主要包含协议应用栈程序框架,main函数入口
>  * @author 李长条
>  * @copyright Copyright (c) 2050
>  */
> #+END_SRC
> 3 In this block, type C-c ',which will call "org-edit-special"
> 4 In the opened *Org Src * buffer, do nothing and type C-c ' again
> 5 Then the "," are inserted in org file as shown in previous picture.
>
> Emacs : GNU Emacs 29.4 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-10-10
> Package: Org mode version 9.6.15 (release_9.6.15 @ opt/program/share/emacs/29.4/lisp/org) 
>
> current state: ============ (setq org-html-with-latex 'imagemagick org-agenda-prefix-format '((todo . " %i
> %-10:c%l%l") (agenda . " %i %-12:c%?-12t% s") (tags . " %i %-12:c") (search . " %i %-12:c"))
> org-link-elisp-confirm-function 'yes-or-no-p org-directory "~/.emacs.d/redef/org" org-roam-db-gc-threshold
> 100000000 org-hide-emphasis-markers t org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "(fn
> ENTRY)"] org-export-with-sub-superscripts '{} org-log-done 'time org-roam-dailies-capture-templates '(("d" "default"
> entry "* %<%I:%M %p> %?" :if-new (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>")) ) org-startup-folded
> 'content org-agenda-files '("~/.emacs.d/redef/org/captures.org" "home/pk/rdf/rdf-todo.org"
> "/home/pk/rdf./workspace//ruby/tool-site-r7/readme.org"
> "home/pk/rdf./workspace//ruby/remegame.site/org/index.org") org-publish-project-alist '(("org-html-theme" :
> base-directory "home/pk/rdf/bext/code/localize/examples/org-html-themes" :base-extension "css\\|js" :
> publishing-directory "home/pk/rdf./workspace//_tmp//rdoc/html/org-html-themes" :recursive t :
> publishing-function org-publish-attachment) ("org-notes-theme" :base-directory
> "home/pk/rdf./workspace//_tmp//rdoc/html/org-html-themes" :base-extension "css\\|js" :publishing-directory
> "home/pk/rdf./workspace//_tmp//rdoc/html/notes/" :recursive t :publishing-function org-publish-attachment)
> ("org-notes" :base-directory "home/pk/rdf/redef/repos/rdf-mix/roam" :base-extension "org" :publishing-directory
> "home/pk/rdf./workspace//_tmp//rdoc/html/notes/" :recursive t :publishing-function org-html-publish-to-html :
> headline-levels 4 :auto-preamble t) ("org-notes-static" :base-directory "home/pk/rdf/redef/repos/rdf-mix/roam" :
> base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory
> "home/pk/rdf./workspace//_tmp//rdoc/html/notes/" :recursive t :publishing-function org-publish-attachment)
> ("notes" :components ("org-html-theme" "org-notes-theme" "org-notes" "org-notes-static")) ("org-blogs" :
> base-directory "home/pk/rdf/workspace/jekyll/blog/__all" :base-extension "org" :publishing-directory
> "/home/pk/rdf/workspace/jekyll/blog/_posts" :recursive t :publishing-function org-html-publish-to-jekyll-html) )
> org-capture-templates '(("t" "Task to be done" entry (file+headline org-default-notes-file "TASK") "* TODO %U %?")
> ("i" "Idea to try" entry (file+headline org-default-notes-file "IDEA") "* About %? %U") ("p" "Plan to be done" entry
> (file+headline org-default-notes-file "PLAN") "* For %? %U") ) org-persist-after-read-hook '
> (org-element–cache-persist-after-read) org-export-before-parsing-hook '(org-attach-expand-links)
> org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-default-notes-file
> "~/.emacs.d/redef/org/captures.org" org-roam-find-file-hook '(org-roam-buffer–setup-redisplay-h
> org-roam–register-completion-functions-h org-roam–replace-roam-links-on-save-h
> org-roam-db-autosync–setup-update-on-save-h) org-archive-hook '(org-attach-archive-delete-maybe) org-file-apps '
> (("\\.pdf\\'" . "evince %s") ("\\.x?html?\\'" . "firefox %s") ("\\.\\'" . "xdg-open %s")) org-odt-format-inlinetask-function
> 'org-odt-format-inlinetask-default-function org-ascii-format-drawer-function #[771 "\207" [] 4 "(fn NAME CONTENTS
> WIDTH)"] org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
> org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images) org-persist-before-read-hook '
> (org-element–cache-persist-before-read) org-link-from-user-regexp "\\<pk@rainbow\\>\\|\\<pk\\>"
> org-image-actual-width nil org-mode-hook '(org-fragtog-mode r-ruby–run-top-level org-appear-mode #[0
> "\301\211\207" [imenu-create-index-function org-imenu-get-tree] 2] #[0 "\300\301\302\303\304$\207" [add-hook
> change-major-mode-hook org-fold-show-all append local] 5] #[0 "\300\301\302\303\304
> latexAaLZlk_89fb6c36e663ba05b453ab85514a3e4c0549629a.png
> {slug}.org" "#+title: ${title}") :unnarrowed t) ) org-metaup-hook '(org-babel-load-in-session-maybe)
> org-hugo-external-file-extensions-allowed-for-copying '("md" "jpg" "jpeg" "tiff" "png" "svg" "gif" "bmp" "mp4"
> "pdf" "odt" "doc" "ppt" "xls" "docx" "pptx" "xlsx") org-src-lang-modes '(("ein-julia" . julia) ("ein-r" . R) ("ein-R" . R)
> ("ein-python" . python) ("ein" . python) ("plantuml" . plantuml) ("dot" . graphviz-dot) ("C" . c) ("C++" . c++)
> ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("desktop" .
> conf-desktop) ("dot" . fundamental) ("elisp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh)
> ("sqlite" . sql) ("toml" . conf-toml)) org-roam-indirect-buffer-hook '(org-roam–register-completion-functions-h) ) 


-- 
Best Regards.


  reply	other threads:[~2024-10-16 12:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-16  6:58 [BUG] insert C comment in c-babel case wrong result [9.6.15 (release_9.6.15 @ /opt/program/share/emacs/29.4/lisp/org/)] PENG Kevin
2024-10-16  7:29 ` PENG Kevin [this message]
2024-10-16 19:53   ` Ihor Radchenko
  -- strict thread matches above, loose matches on Subject: below --
2024-10-16  7:31 PENG Kevin
2024-10-16 19:52 ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ca8mrm4.fsf@gmail.com \
    --to=kevin.remegame@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).