davep / boxquote.el Goto Github PK
View Code? Open in Web Editor NEWQuote text with a semi-box.
License: GNU General Public License v3.0
Quote text with a semi-box.
License: GNU General Public License v3.0
Good evening,
Tonight I am writing to humbly put in a request for you to tag this project.
The reason is that a lot of users want to rely on the most "stable" release, by
the most broad definition of the term. For me, it is really simple, I am setting
up a "stable" Emacs configuration of my system here https://github.com/grettke/home/blob/master/.emacs.el
and I would like to rely 100% upon MELPA Stable http://stable.melpa.org/#/ .
I've used your package for a long time, love it, and so do many, many others.
This is a way to get that project out to the other thousands and thousands of
users who also rely upon MELPA stable.
All it takes is for you to create a tag, and within hours, it will show up on
MELPA stable.
Can't wait to hear about what you think and whether or not a tag is in this
project's future!
Kind regards,
Grant Rettke
P.S.
How does anyone work with snippets in emails without this package? It is critical. It oughta be out
there for the melpa stable users, too :).
If this sounds like a feature you want, I'll send a PR.
The functions boxquote-describe-function
and boxquote-describe-variable
currently assume that the function or variable being described are the current car
of minibuffer-history
(on GNU Emacs). This assumption has been correct in the past but might not be true anymore. Concretely, emacs users may use a custom completing-read-function
(e.g., a home-brewn one, ido-completing-read
from the builtin ido mode, or ivy-mode
from https://github.com/abo-abo/swiper), and that doesn't neccessarily need to populate minibuffer-history
. FWIW, at least ivy-mode
does not use minibuffer-history
and thus the title of a boxquoted variable or function description is always nil
(or whatever something else has pushed onto minibuffer-history
; it's at least never the variable or function name).
So it would be great if the assumption that the variable/function name are the first element in some history list could be removed. I've tested that the describe-*
functions also return the description as a string (in addition to creating a *Help*
buffer) in GNU Emacs 22, 24, 25, and XEmacs 21.4.22 and 21.5 beta. The described variable or function is always the very first word in the string. The only difference between Emacs and XEmacs is that the latter quotes the function/variable whereas the former doesn't.
I have tested that the following regular expression matches the variable/function name no matter if and how it might be quoted.
(let (l)
(dolist (desc '("`--th/foo-insert--` is a built-in function in `C source code'."
"`--th/foo-insert--' is a built-in function in `C source code'."
"‘--th/foo-insert--’ is a built-in function in `C source code'."
"--th/foo-insert-- is a built-in function in `C source code'.")
l)
(string-match "^[^-/:\\s_\\sw]?\\(\\(?:\\s_\\|\\sw\\|/\\)+\\)[^-/:\\s_\\sw]?" desc)
(push (match-string 1 desc) l)))
;=> ("--th/foo-insert--" "--th/foo-insert--" "--th/foo-insert--" "--th/foo-insert--")
So string-match
with that regexp could be used instead of relying that the symbol name is the car
of minibuffer-history
. I've tested that with all Emacs and XEmacs versions cited above. I don't have Emacs 23 handy but I'm very sure that it'll work there, too.
If you think this is the right approach, feel free to request a pull request.
Hi,
many thanks for this package. The latest Emacs 29 has obsoleted some generalized variable resulting in some warnings when compiling boxquote.el
:
In toplevel form:
boxquote.el:232:12: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
boxquote.el:243:18: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
boxquote.el:249:16: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
boxquote.el:267:14: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
boxquote.el:291:18: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
boxquote.el:294:20: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
boxquote.el:298:40: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
boxquote.el:282:26: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
boxquote.el:362:22: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
boxquote.el:369:35: Warning: `buffer-string' is an obsolete generalized variable.
boxquote.el:497:32: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
boxquote.el:501:32: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
boxquote.el:529:14: Warning: `point' is an obsolete generalized variable; use `goto-char' instead.
Would it be possible to fix them? I'm not familiar with the code, hence no PR. TIA.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.