emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/markdown-mode 12e67d3 1/2: Fix executing markdown-table-so


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode 12e67d3 1/2: Fix executing markdown-table-sort-lines via menu bar issue
Date: Fri, 13 Aug 2021 22:57:29 -0400 (EDT)

branch: elpa/markdown-mode
commit 12e67d3d8a8e9eaa73bd5edf38496b5db4fd35bb
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: Shohei YOSHIDA <syohex@gmail.com>

    Fix executing markdown-table-sort-lines via menu bar issue
    
    This issue is fixed in latest emacs.
---
 CHANGES.md       | 2 ++
 markdown-mode.el | 8 ++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/CHANGES.md b/CHANGES.md
index 135777f..7b9a1a0 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -70,6 +70,7 @@
     -   Fix list highlighting issue in code block [GH-631][]
     -   Fix exception when inserting code block at end of buffer [GH-634][]
     -   Fix table operations when table column contains escaped vertical bars 
[GH-635][]
+    -   Fix issue that executing `markdown-table-sort-lines` via menu-bar with 
older Emacs(< 28) [GH-641][]
 
   [gh-290]: https://github.com/jrblevin/markdown-mode/issues/290
   [gh-311]: https://github.com/jrblevin/markdown-mode/issues/311
@@ -101,6 +102,7 @@
   [gh-631]: https://github.com/jrblevin/markdown-mode/issues/631
   [gh-634]: https://github.com/jrblevin/markdown-mode/issues/634
   [gh-635]: https://github.com/jrblevin/markdown-mode/issues/635
+  [gh-641]: https://github.com/jrblevin/markdown-mode/issues/641
 
 # Markdown Mode 2.4
 
diff --git a/markdown-mode.el b/markdown-mode.el
index b42760e..801f35a 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -9446,8 +9446,12 @@ indicate that sorting should be done in reverse order."
                         (t 1))))
         (sorting-type
          (or sorting-type
-             (read-char-exclusive
-              "Sort type: [a]lpha [n]umeric (A/N means reversed): "))))
+             (progn
+               ;; workaround #641
+               ;; Emacs < 28 hides prompt message by another message. This 
erases it.
+               (message "")
+               (read-char-exclusive
+                "Sort type: [a]lpha [n]umeric (A/N means reversed): ")))))
     (save-restriction
       ;; Narrow buffer to appropriate sorting area
       (if (region-active-p)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]