zevlg / telega.el

GNU Emacs telegram client (unofficial)
https://zevlg.github.io/telega.el/
GNU General Public License v3.0
1.1k stars 86 forks source link

`telega-report-bug` starts in `help-mode` #391

Open a13 opened 1 year ago

a13 commented 1 year ago

When I run M-x telega-report-bug the resulting buffer ends up running help-mode, which

Telega Setup

OS: Ubuntu 22.04.1 LTS Emacs: GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) Features: svg ffmpeg Telega: telega v0.8.81 (TDLib v1.8.8) (telega-server v0.8.2 [docker])

Current Behavior

*Telega Bug Report* is in help mode.

Steps to Reproduce

  1. M-x telega-report-bug

Possible Solution

  1. turn readonly mode off (optional, probably we don't want to use with-help-window at all)
  2. (require 'markdown nil t) to check if the mode is available
  3. run gfm-mode
a13 commented 1 year ago

P.S. another thought, as an atomic-chrome user, I usually already have an issue skeleton opened in a buffer, but I don't want to run all commands manually, so I'd like to have a function telega-report-bug-generate which would fill the current buffer with all needed information (nothing smart, just replacing the current buffer content).