From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chunyang Xu Subject: Re: Bug: link formating problem [9.0.5 (9.0.5-elpaplus @ /Users/mistkafka/.emacs.d/elpa/org-plus-contrib-20170210/)] Date: Fri, 26 May 2017 16:09:11 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEAJG-0004gb-8p for emacs-orgmode@gnu.org; Fri, 26 May 2017 04:09:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEAJC-0005j8-Vz for emacs-orgmode@gnu.org; Fri, 26 May 2017 04:09:22 -0400 Received: from smtpbguseast2.qq.com ([54.204.34.130]:38071) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dEAJC-0005iK-Qq for emacs-orgmode@gnu.org; Fri, 26 May 2017 04:09:18 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: =?utf-8?B?5p6X6ZWH5Zu9?= , emacs-orgmode@gnu.org I changed `org-plain-link-re' to make it not longer think "[" and "]" are valid characters in a URL, which solves the problem. diff -u --label /Users/xcy/.emacs.d/elpa-25.2.1/org-plus-contrib-20170515/o= rg.el --label \#\ /Users/xcy/.emacs.d/elpa-25.2.1/org-plus= -contrib-20170515/org.el /var/folders/7f/s191h4q97p90374yw15ssrs00000gn/T/b= uffer-content-71053Vt --- /Users/xcy/.emacs.d/elpa-25.2.1/org-plus-contrib-20170515/org.el +++ # @@ -5847,7 +5847,7 @@ org-plain-link-re (concat "\\<" types-re ":" - "\\([^ \t\n()<>]+\\(?:([[:word:]0-9_]+)\\|\\([^[:punct:] \t\n]\\|/\\)\= \)\\)") + "\\([^][ \t\n()<>]+\\(?:([[:word:]0-9_]+)\\|\\([^[:punct:] \t\n]\\|/\\= )\\)\\)") ;; "\\([^]\t\n\r<>() ]+[^]\t\n\r<>,.;() ]\\)") org-bracket-link-regexp "\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]" Diff finished. Fri May 26 16:01:30 2017 =E6=9E=97=E9=95=87=E5=9B=BD writes: > 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 > > http://orgmode.org/manual/Feedback.html#Feedback > > Your bug report will be posted to the Org mailing list. > ------------------------------------------------------------------------ > > Hi! > > When I insert a link to my note, such as=E2=80=9C=E8=BF=99=E6=98=AF=E4=B8= =80=E4=B8=AA[[link][=E9=93=BE=E6=8E=A5]]=E5=95=A6~=E2=80=9D=EF=BC=8C > the text after the link, "=E5=95=A6~", will be formatting as link style. > > Space participe is not work in some language, such as Chinese and > Japanese. If I use a space to participe the link the the text after > it, that's really ugly in Chinese. > > And I wonder even in English, must we add a space after a link? > > By the way, it just a formatting problem(with org-hide-emphasis-markers > is t), not export problem, the link export to html is ok! > > Emacs : GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, Carbon Version 157 = AppKit 1265.21) > of 2017-02-06 > Package: Org mode version 9.0.5 (9.0.5-elpaplus @ /Users/mistkafka/.emacs= .d/elpa/org-plus-contrib-20170210/) > > current state: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (setq > org-id-locations-file "/Users/mistkafka/.emacs.d/.cache/.org-id-locations" > org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-= arg-expand) > org-clock-persist-file "/Users/mistkafka/.emacs.d/.cache/org-clock-save.e= l" > org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-c= ommand-hook) > org-time-clocksum-format '(:hours "%d" :require-hours t :minutes ":%02d" = :require-minutes t) > org-occur-hook '(org-first-headline-recenter) > org-imenu-depth 8 > org-metaup-hook '(org-babel-load-in-session-maybe) > org-html-format-drawer-function '(closure > (htmlize-buffer-places org-html-format= -table-no-css htmlize-css-name-prefix htmlize-output-type htmlize-output-ty= pe > htmlize-css-name-prefix t) > (_name contents) contents) > org-log-done t > org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default= -function > org-confirm-shell-link-function 'yes-or-no-p > org-image-actual-width nil > org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default > org-link-translation-function 'toc-org-unhrefify > org-present-mode-hook '(spacemacs//org-present-start) > org-agenda-restore-windows-after-quit t > org-latex-format-headline-function 'org-latex-format-headline-default-fun= ction > org-default-notes-file "notes.org" > org-todo-keyword-faces '(("NEXT" :inherit warning) ("PROJECT" :inherit fo= nt-lock-string-face)) > org-after-todo-state-change-hook '(org-clock-out-if-current) > org-latex-format-drawer-function '(closure (t) (_ contents) contents) > org-odt-format-headline-function 'org-odt-format-headline-default-function > org-todo-repeat-to-state "NEXT" > org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-conf= igure-edit-buffer) > org-agenda-before-write-hook '(org-agenda-add-entry-text) > org-babel-pre-tangle-hook '(save-buffer) > org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mo= de-hook org-show-block-all append local] 5] > #[0 "\300\301\302\303\304$\207" [add-hook change-major-m= ode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-s= pec > org-babel-hide-all-hashes spacemacs/load-yasnippet toc-o= rg-enable org-download-enable org-bullets-mode spacemacs//org-babel-do-load= -languages flyspell-mode > spacemacs/add-org-surrounds evil-org-mode org-eldoc-load= spacemacs//init-company-org-mode company-mode) > org-archive-hook '(org-attach-archive-delete-maybe) > org-ascii-format-drawer-function '(closure (t) (_name contents _width) co= ntents) > org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-fun= ction > org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers = org-cycle-show-empty-lines org-optimize-window-after-visibility-change) > org-publish-timestamp-directory "/Users/mistkafka/.emacs.d/.cache/.org-ti= mestamps/" > org-present-mode-quit-hook '(spacemacs//org-present-end) > org-export-async-init-file "/Users/mistkafka/.emacs.d/layers/+emacs/org/l= ocal/org-async-init.el" > org-download-annotate-function 'org-download-annotate-default > org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d@/!)") (sequ= ence "PROJECT(p)" "|" "DONE(d@/!)" "CANCELLED(c@/!)") > (sequence "WAITING(w@/!)" "DELEGATED(e!)" "HOLD(h)" = "|" "CANCELLED(c@/!)")) > org-hide-emphasis-markers t > org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el") ("el= isp" . "el")) > org-confirm-elisp-link-function 'yes-or-no-p > org-startup-with-inline-images t > org-metadown-hook '(org-babel-pop-to-session-maybe) > org-log-into-drawer t > org-odt-format-drawer-function '(closure > (hfy-user-sheet-assoc hfy-html-quote-re= gex hfy-html-quote-map hfy-face-to-css hfy-begin-span-handler hfy-end-span-= handler > archive-zip-extract nxml-auto-insert-x= ml-declaration-flag t) > (_name contents) contents) > org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images) > org-html-format-headline-function 'org-html-format-headline-default-funct= ion > org-link-parameters '(("id" :follow org-id-open) ("rmail" :follow org-rma= il-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org= -mhe-store-link) > ("irc" :follow org-irc-visit :store org-irc-store-= link) ("info" :follow org-info-open :export org-info-export :store org-info= -store-link) > ("gnus" :follow org-gnus-open :store org-gnus-stor= e-link) > ("docview" :follow org-docview-open :export org-do= cview-export :store org-docview-store-link) > ("bibtex" :follow org-bibtex-open :store org-bibte= x-store-link) > ("bbdb" :follow org-bbdb-open :export org-bbdb-exp= ort :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :st= ore org-w3m-store-link) > ("file+sys") ("file+emacs") ("doi" :follow org--op= en-doi-link) ("elisp" :follow org--open-elisp-link) ("file" :complete org-f= ile-complete-link) > ("ftp" :follow (lambda (path) (browse-url (concat = "ftp:" path)))) ("help" :follow org--open-help-link) > ("http" :follow (lambda (path) (browse-url (concat= "http:" path)))) ("https" :follow (lambda (path) (browse-url (concat "http= s:" path)))) > ("mailto" :follow (lambda (path) (browse-url (conc= at "mailto:" path)))) ("message" :follow (lambda (path) (browse-url (concat= "message:" path)))) > ("news" :follow (lambda (path) (browse-url (concat= "news:" path)))) ("shell" :follow org--open-shell-link)) > org-babel-load-languages '((python . t) (emacs-lisp . t)) > org-html-format-inlinetask-function 'org-html-format-inlinetask-default-f= unction > org-agenda-files '("~/gtd/work.org" "~/gtd/project.org" "~/gtd/tasks.org") > org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > org-clock-out-remove-zero-time-clocks t > org-publish-project-alist '(("gitpage" :base-directory "~/mistkafka.githu= b.io/org/" :base-extension "org" :publishing-directory "~/mistkafka.github.= io/_posts/" :recursive > t :publishing-function org-html-publish-to-= html :html-extension "html" :body-only t :with-toc nil :section-numbers nil) > ) > ) > > > =E6=9E=97=E9=95=87=E5=9B=BD > mistkafka@gmail.com